1*7c478bd9Sstevel@tonic-gate# 2*7c478bd9Sstevel@tonic-gate# Copyright 2004 Sun Microsystems, Inc. All rights reserved. 3*7c478bd9Sstevel@tonic-gate# Use is subject to license terms. 4*7c478bd9Sstevel@tonic-gate# 5*7c478bd9Sstevel@tonic-gate# ident "%Z%%M% %I% %E% SMI" 6*7c478bd9Sstevel@tonic-gate# 7*7c478bd9Sstevel@tonic-gate 8*7c478bd9Sstevel@tonic-gate# Note, to build SASL msg file go to $SRC/lib/libsasl and make _msg 9*7c478bd9Sstevel@tonic-gate# target there. Messages in sasl_plugins will be picked up from there. 10*7c478bd9Sstevel@tonic-gate 11*7c478bd9Sstevel@tonic-gateinclude ../Makefile.lib 12*7c478bd9Sstevel@tonic-gate 13*7c478bd9Sstevel@tonic-gateSUBDIRS = cram digestmd5 gssapi plain 14*7c478bd9Sstevel@tonic-gate 15*7c478bd9Sstevel@tonic-gateall := TARGET= all 16*7c478bd9Sstevel@tonic-gateclean := TARGET= clean 17*7c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 18*7c478bd9Sstevel@tonic-gateinstall := TARGET= install 19*7c478bd9Sstevel@tonic-gatelint := TARGET= lint 20*7c478bd9Sstevel@tonic-gate 21*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 22*7c478bd9Sstevel@tonic-gate 23*7c478bd9Sstevel@tonic-gateall clean clobber install: $(SUBDIRS) 24*7c478bd9Sstevel@tonic-gate 25*7c478bd9Sstevel@tonic-gatelint: $(SUBDIRS) 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gateinstall_h check: 28*7c478bd9Sstevel@tonic-gate 29*7c478bd9Sstevel@tonic-gate$(SUBDIRS) spec: FRC 30*7c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 31*7c478bd9Sstevel@tonic-gate 32*7c478bd9Sstevel@tonic-gateFRC: 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate# EXPORT DELETE START 35*7c478bd9Sstevel@tonic-gate# CRYPT DELETE START 36*7c478bd9Sstevel@tonic-gate# Special target to clean up the source tree for export distribution 37*7c478bd9Sstevel@tonic-gate# Warning: This target changes the source tree 38*7c478bd9Sstevel@tonic-gateEXPORT_SRC: 39*7c478bd9Sstevel@tonic-gate $(RM) Makefile+ \ 40*7c478bd9Sstevel@tonic-gate digestmd5/digestmd5.c+ \ 41*7c478bd9Sstevel@tonic-gate gssapi/gssapi.c+ 42*7c478bd9Sstevel@tonic-gate 43*7c478bd9Sstevel@tonic-gate $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 44*7c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 45*7c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 46*7c478bd9Sstevel@tonic-gate 47*7c478bd9Sstevel@tonic-gate $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 48*7c478bd9Sstevel@tonic-gate < digestmd5/digestmd5.c > digestmd5/digestmd5.c+ 49*7c478bd9Sstevel@tonic-gate $(MV) digestmd5/digestmd5.c+ digestmd5/digestmd5.c 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gate $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 52*7c478bd9Sstevel@tonic-gate < gssapi/gssapi.c > gssapi/gssapi.c+ 53*7c478bd9Sstevel@tonic-gate $(MV) gssapi/gssapi.c+ gssapi/gssapi.c 54*7c478bd9Sstevel@tonic-gate 55*7c478bd9Sstevel@tonic-gate $(CHMOD) 444 \ 56*7c478bd9Sstevel@tonic-gate Makefile \ 57*7c478bd9Sstevel@tonic-gate digestmd5/digestmd5.c \ 58*7c478bd9Sstevel@tonic-gate gssapi/gssapi.c 59*7c478bd9Sstevel@tonic-gate 60*7c478bd9Sstevel@tonic-gateCRYPT_SRC: 61*7c478bd9Sstevel@tonic-gate $(RM) Makefile+ 62*7c478bd9Sstevel@tonic-gate 63*7c478bd9Sstevel@tonic-gate $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 64*7c478bd9Sstevel@tonic-gate < digestmd5/digestmd5.c | $(SED) -e "/EXPORT DELETE/d" \ 65*7c478bd9Sstevel@tonic-gate > digestmd5/digestmd5.c+ 66*7c478bd9Sstevel@tonic-gate $(MV) digestmd5/digestmd5.c+ digestmd5/digestmd5.c 67*7c478bd9Sstevel@tonic-gate 68*7c478bd9Sstevel@tonic-gate $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 69*7c478bd9Sstevel@tonic-gate < gssapi/gssapi.c | $(SED) -e "/EXPORT DELETE/d" \ 70*7c478bd9Sstevel@tonic-gate > gssapi/gssapi.c+ 71*7c478bd9Sstevel@tonic-gate $(MV) gssapi/gssapi.c+ gssapi/gssapi.c 72*7c478bd9Sstevel@tonic-gate 73*7c478bd9Sstevel@tonic-gate $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \ 74*7c478bd9Sstevel@tonic-gate < Makefile | $(SED) -e "/^# EXPORT DELETE/d" > Makefile+ 75*7c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 76*7c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile digestmd5/digestmd5.c gssapi/gssapi.c 77*7c478bd9Sstevel@tonic-gate 78*7c478bd9Sstevel@tonic-gate# CRYPT DELETE END 79*7c478bd9Sstevel@tonic-gate# EXPORT DELETE END 80*7c478bd9Sstevel@tonic-gate 81*7c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 82*7c478bd9Sstevel@tonic-gate 83*7c478bd9Sstevel@tonic-gate.PARALLEL: $(SUBDIRS) 84