xref: /illumos-gate/usr/src/cmd/sckmd/sparc/sun4u/Makefile (revision 689b9301078f0c35c7f198fcee8032a0d30eff3a)
1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License (the "License").
6# You may not use this file except in compliance with the License.
7#
8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9# or http://www.opensolaris.org/os/licensing.
10# See the License for the specific language governing permissions
11# and limitations under the License.
12#
13# When distributing Covered Code, include this CDDL HEADER in each
14# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15# If applicable, add the following below this CDDL HEADER, with the
16# fields enclosed by brackets "[]" replaced with your own identifying
17# information: Portions Copyright [yyyy] [name of copyright owner]
18#
19# CDDL HEADER END
20#
21#
22# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24# Copyright 2019 Peter Tribble.
25#
26# Makefile definitions for Sun Fire 15000 Key Management Daemon (sckmd)
27#
28
29PROG=		sckmd
30
31PLATFORM=	sun4u
32
33CLASS=		32
34
35SRCS=		$(PROG:%=%.c)
36
37OBJS=		$(SRCS:%.c=%.o)
38
39LINT_SRCS=	$(SRCS)
40LINT_FILES=	$(LINT_SRCS:%.c=%.ln)
41
42
43include ../../../Makefile.cmd
44include ../../../../Makefile.psm
45
46
47USRPSMPROG=	$(USR_PSM_LIB_DIR)/$(PROG)
48$(USRPSMPROG) :=	FILEMODE =	0755
49
50
51#
52# FLAGS:
53#
54CPPFLAGS=	-I$(USR_PSM_INCL_DIR) -I$(SRC)/uts/sun4u/opl $(CPPFLAGS.master)
55
56LINT_FLAGS=	-c -Nlevel=4 -Ncheck
57
58
59#
60# LIBRARIES:
61#
62LDLIBS +=	-lsocket -lipsecutil
63
64#
65# Build rules
66#
67.KEEP_STATE:
68
69
70all: $(PROG)
71
72$(PROG): $(OBJS)
73	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
74	$(POST_PROCESS)
75
76install: all .WAIT $(USRPSMPROG)
77
78lint:
79	$(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(LINT_SRCS)
80
81clean:
82	$(RM) $(PROG) $(OBJS) *.po $(LINT_FILES)
83
84
85include ../../../Makefile.targ
86include ../../../../Makefile.psm.targ
87