xref: /titanic_50/usr/src/lib/gss_mechs/mech_dummy/Makefile (revision 275c9da86e89f8abf71135cf63d9fc23671b2e60)
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, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26#pragma ident	"%Z%%M%	%I%	%E% SMI"
27#
28# lib/gss_mechs/mech_dummy/Makefile
29#
30#
31# This make file will build mech_dummy.so.1. This shared object
32# contains all the functionality needed to support the Dummy GSS-API
33# mechanism.
34#
35
36include ../../../Makefile.master
37
38SUBDIRS= $(MACH) $(BUILD64) $(MACH64)
39
40# include library definitions
41include ../../Makefile.lib
42
43HDRS=
44
45CHECKHDRS= $(HDRS:%.h=%.check)
46
47$(ROOTDIRS)/%:	%
48	$(INS.file)
49
50all :=		TARGET= all
51clean :=	TARGET= clean
52clobber :=	TARGET= clobber
53install :=	TARGET= install
54lint :=		TARGET= lint
55
56.KEEP_STATE:
57
58all:	.WAIT $(SUBDIRS)
59
60lint:	.WAIT $(SUBDIRS)
61
62install: all
63
64install_h:
65
66DUPLICATE_SRC = dmech.c
67
68clean clobber:  $(SUBDIRS)
69
70check: $(CHECKHDRS)
71
72do_pkg:
73	cd pkg ; pwd ; $(MAKE) install
74
75
76# include library targets
77# include ../../Makefile.targ
78
79$(MACH) $(MACH64):      FRC
80	@cd $@; pwd; $(MAKE) $(TARGET)
81
82FRC:
83
84
85# EXPORT DELETE START
86# Special target to clean up the source tree for export distribution
87# Warning: This target changes the source tree
88EXPORT_SRC:
89	$(RM) Makefile+ mech/dmech.c+
90	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
91		< mech/dmech.c > mech/dmech.c+
92	$(MV) mech/dmech.c+ mech/dmech.c
93	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
94		< Makefile > Makefile+
95	$(MV) Makefile+ Makefile
96	$(CHMOD) 444 Makefile mech/dmech.c
97
98# CRYPT DELETE START
99# Special target to clean up the source tree for export distribution
100# Warning: This target changes the source tree
101CRYPT_SRC:
102	$(RM) Makefile+ mech/dmech.c+
103	sed -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
104		< mech/dmech.c > mech/dmech.c+
105	$(MV) mech/dmech.c+ mech/dmech.c
106	sed -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
107		< Makefile > Makefile+
108	$(MV) Makefile+ Makefile
109	$(CHMOD) 444 Makefile mech/dmech.c
110
111# CRYPT DELETE END
112# EXPORT DELETE END
113
114