xref: /titanic_52/usr/src/cmd/sckmd/sparc/sun4u/Makefile (revision b02e9a2d4d2071d770e5aa9ae8f83f2bbe1f2ced)
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27# Makefile definitions for Sun Fire 15000 Key Management Daemon (sckmd)
28#
29
30PROG=		sckmd
31
32PLATFORM=	sun4u
33
34CLASS=		32
35
36SRCS=		$(PROG:%=%.c)
37
38OBJS=		$(SRCS:%.c=%.o)
39
40LINT_SRCS=	$(SRCS)
41LINT_FILES=	$(LINT_SRCS:%.c=%.ln)
42
43
44include ../../../Makefile.cmd
45include ../../../../Makefile.psm
46
47
48OWNER=		root
49GROUP=		sys
50
51USRPSMPROG=	$(USR_PSM_LIB_DIR)/$(PROG)
52$(USRPSMPROG) :=	FILEMODE =	0755
53
54
55#
56# FLAGS:
57#
58CPPFLAGS= 	-I$(USR_PSM_INCL_DIR) -I$(SRC)/uts/sun4u/starcat $(CPPFLAGS.master)
59
60LINT_FLAGS=	-c -Nlevel=4 -Ncheck
61
62
63#
64# LIBRARIES:
65#
66LDLIBS +=	-lsocket -lipsecutil
67
68#
69# Build rules
70#
71.KEEP_STATE:
72
73
74all: $(PROG)
75
76$(PROG): $(OBJS)
77	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
78	$(POST_PROCESS)
79
80install: all .WAIT $(USRPSMPROG)
81
82lint:
83	$(LINT) $(LINT_FLAGS) $(CPPFLAGS) $(LINT_SRCS)
84
85clean:
86	$(RM) $(PROG) $(OBJS) *.po $(LINT_FILES) core
87
88
89include ../../../Makefile.targ
90include ../../../../Makefile.psm.targ
91