xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dummy/Makefile (revision d0f40dc6a997c84bacf5f9ba83d57a95495c399b)
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#
23# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26
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
72# include library targets
73# include ../../Makefile.targ
74
75$(MACH) $(MACH64):      FRC
76	@cd $@; pwd; $(MAKE) $(TARGET)
77
78FRC:
79
80
81# EXPORT DELETE START
82# Special target to clean up the source tree for export distribution
83# Warning: This target changes the source tree
84EXPORT_SRC:
85	$(RM) Makefile+ mech/dmech.c+
86	sed -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \
87		< mech/dmech.c > mech/dmech.c+
88	$(MV) mech/dmech.c+ mech/dmech.c
89	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
90		< Makefile > Makefile+
91	$(MV) Makefile+ Makefile
92	$(CHMOD) 444 Makefile mech/dmech.c
93
94# CRYPT DELETE START
95# Special target to clean up the source tree for export distribution
96# Warning: This target changes the source tree
97CRYPT_SRC:
98	$(RM) Makefile+ mech/dmech.c+
99	sed -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \
100		< mech/dmech.c > mech/dmech.c+
101	$(MV) mech/dmech.c+ mech/dmech.c
102	sed -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
103		< Makefile > Makefile+
104	$(MV) Makefile+ Makefile
105	$(CHMOD) 444 Makefile mech/dmech.c
106
107# CRYPT DELETE END
108# EXPORT DELETE END
109
110