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# lib/libsasl/Makefile 8*7c478bd9Sstevel@tonic-gate# 9*7c478bd9Sstevel@tonic-gate 10*7c478bd9Sstevel@tonic-gateinclude ../Makefile.lib 11*7c478bd9Sstevel@tonic-gate 12*7c478bd9Sstevel@tonic-gateHDRS= sasl.h saslplug.h saslutil.h prop.h 13*7c478bd9Sstevel@tonic-gateHDRDIR= include 14*7c478bd9Sstevel@tonic-gateROOTHDRDIR= $(ROOT)/usr/include/sasl 15*7c478bd9Sstevel@tonic-gate 16*7c478bd9Sstevel@tonic-gateSUBDIRS = $(MACH) 17*7c478bd9Sstevel@tonic-gate 18*7c478bd9Sstevel@tonic-gate$(BUILD64)SUBDIRS += $(MACH64) 19*7c478bd9Sstevel@tonic-gate 20*7c478bd9Sstevel@tonic-gateall := TARGET= all 21*7c478bd9Sstevel@tonic-gateclean := TARGET= clean 22*7c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 23*7c478bd9Sstevel@tonic-gateinstall := TARGET= install 24*7c478bd9Sstevel@tonic-gatelint := TARGET= lint 25*7c478bd9Sstevel@tonic-gate 26*7c478bd9Sstevel@tonic-gateLIBRARY= libsasl.a 27*7c478bd9Sstevel@tonic-gatePOFILE= $(LIBRARY:.a=.po) 28*7c478bd9Sstevel@tonic-gateMSGFILES= lib/canonusr.c lib/checkpw.c lib/client.c lib/common.c \ 29*7c478bd9Sstevel@tonic-gate lib/external.c lib/server.c lib/seterror.c \ 30*7c478bd9Sstevel@tonic-gate plugin/plugin_common.c \ 31*7c478bd9Sstevel@tonic-gate $(SRC)/lib/sasl_plugins/cram/cram.c \ 32*7c478bd9Sstevel@tonic-gate $(SRC)/lib/sasl_plugins/digestmd5/digestmd5.c \ 33*7c478bd9Sstevel@tonic-gate $(SRC)/lib/sasl_plugins/gssapi/gssapi.c \ 34*7c478bd9Sstevel@tonic-gate $(SRC)/lib/sasl_plugins/plain/plain.c 35*7c478bd9Sstevel@tonic-gate 36*7c478bd9Sstevel@tonic-gate.KEEP_STATE: 37*7c478bd9Sstevel@tonic-gate 38*7c478bd9Sstevel@tonic-gateall clean clobber install: spec .WAIT $(SUBDIRS) 39*7c478bd9Sstevel@tonic-gate 40*7c478bd9Sstevel@tonic-gatelint: $(SUBDIRS) 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gateinstall_h: $(ROOTHDRS) 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gatecheck: $(CHECKHDRS) 45*7c478bd9Sstevel@tonic-gate 46*7c478bd9Sstevel@tonic-gate$(POFILE): $(MSGFILES) 47*7c478bd9Sstevel@tonic-gate $(BUILDPO.msgfiles) 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate_msg: $(MSGDOMAINPOFILE) 50*7c478bd9Sstevel@tonic-gate 51*7c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.msg.targ 52*7c478bd9Sstevel@tonic-gate 53*7c478bd9Sstevel@tonic-gate$(SUBDIRS) spec: FRC 54*7c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 55*7c478bd9Sstevel@tonic-gate 56*7c478bd9Sstevel@tonic-gateFRC: 57*7c478bd9Sstevel@tonic-gate 58*7c478bd9Sstevel@tonic-gate# EXPORT DELETE START 59*7c478bd9Sstevel@tonic-gate# CRYPT DELETE START 60*7c478bd9Sstevel@tonic-gate# Special target to clean up the source tree for export distribution 61*7c478bd9Sstevel@tonic-gate# Warning: This target changes the source tree 62*7c478bd9Sstevel@tonic-gateEXPORT_SRC: 63*7c478bd9Sstevel@tonic-gate $(RM) Makefile+ \ 64*7c478bd9Sstevel@tonic-gate lib/client.c+ \ 65*7c478bd9Sstevel@tonic-gate lib/server.c+ \ 66*7c478bd9Sstevel@tonic-gate lib/common.c+ \ 67*7c478bd9Sstevel@tonic-gate lib/saslint.h+ \ 68*7c478bd9Sstevel@tonic-gate include/plugin_common.h+ 69*7c478bd9Sstevel@tonic-gate 70*7c478bd9Sstevel@tonic-gate $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 71*7c478bd9Sstevel@tonic-gate < lib/client.c > lib/client.c+ 72*7c478bd9Sstevel@tonic-gate $(MV) lib/client.c+ lib/client.c 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gate $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 75*7c478bd9Sstevel@tonic-gate < lib/server.c > lib/server.c+ 76*7c478bd9Sstevel@tonic-gate $(MV) lib/server.c+ lib/server.c 77*7c478bd9Sstevel@tonic-gate 78*7c478bd9Sstevel@tonic-gate $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 79*7c478bd9Sstevel@tonic-gate < lib/common.c > lib/common.c+ 80*7c478bd9Sstevel@tonic-gate $(MV) lib/common.c+ lib/common.c 81*7c478bd9Sstevel@tonic-gate 82*7c478bd9Sstevel@tonic-gate $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 83*7c478bd9Sstevel@tonic-gate < lib/saslint.h > lib/saslint.h+ 84*7c478bd9Sstevel@tonic-gate $(MV) lib/saslint.h+ lib/saslint.h 85*7c478bd9Sstevel@tonic-gate 86*7c478bd9Sstevel@tonic-gate $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 87*7c478bd9Sstevel@tonic-gate < include/plugin_common.h > include/plugin_common.h+ 88*7c478bd9Sstevel@tonic-gate $(MV) include/plugin_common.h+ include/plugin_common.h 89*7c478bd9Sstevel@tonic-gate 90*7c478bd9Sstevel@tonic-gate $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 91*7c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 92*7c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 93*7c478bd9Sstevel@tonic-gate 94*7c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile \ 95*7c478bd9Sstevel@tonic-gate lib/client.c \ 96*7c478bd9Sstevel@tonic-gate lib/server.c \ 97*7c478bd9Sstevel@tonic-gate lib/common.c \ 98*7c478bd9Sstevel@tonic-gate lib/saslint.h \ 99*7c478bd9Sstevel@tonic-gate include/plugin_common.h 100*7c478bd9Sstevel@tonic-gate 101*7c478bd9Sstevel@tonic-gateCRYPT_SRC: 102*7c478bd9Sstevel@tonic-gate $(RM) Makefile+ lib/common.c+ 103*7c478bd9Sstevel@tonic-gate 104*7c478bd9Sstevel@tonic-gate $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 105*7c478bd9Sstevel@tonic-gate < lib/common.c | $(SED) -e "/EXPORT DELETE/d" \ 106*7c478bd9Sstevel@tonic-gate > lib/common.c+ 107*7c478bd9Sstevel@tonic-gate $(MV) lib/common.c+ lib/common.c 108*7c478bd9Sstevel@tonic-gate 109*7c478bd9Sstevel@tonic-gate $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 110*7c478bd9Sstevel@tonic-gate < lib/client.c | $(SED) -e "/EXPORT DELETE/d" \ 111*7c478bd9Sstevel@tonic-gate > lib/client.c+ 112*7c478bd9Sstevel@tonic-gate $(MV) lib/client.c+ lib/client.c 113*7c478bd9Sstevel@tonic-gate 114*7c478bd9Sstevel@tonic-gate $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 115*7c478bd9Sstevel@tonic-gate < lib/server.c | $(SED) -e "/EXPORT DELETE/d" \ 116*7c478bd9Sstevel@tonic-gate > lib/server.c+ 117*7c478bd9Sstevel@tonic-gate $(MV) lib/server.c+ lib/server.c 118*7c478bd9Sstevel@tonic-gate 119*7c478bd9Sstevel@tonic-gate $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 120*7c478bd9Sstevel@tonic-gate < lib/saslint.h | $(SED) -e "/EXPORT DELETE/d" \ 121*7c478bd9Sstevel@tonic-gate > lib/saslint.h+ 122*7c478bd9Sstevel@tonic-gate $(MV) lib/saslint.h+ lib/saslint.h 123*7c478bd9Sstevel@tonic-gate 124*7c478bd9Sstevel@tonic-gate $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 125*7c478bd9Sstevel@tonic-gate < include/plugin_common.h | $(SED) -e "/EXPORT DELETE/d" \ 126*7c478bd9Sstevel@tonic-gate > include/plugin_common.h+ 127*7c478bd9Sstevel@tonic-gate $(MV) include/plugin_common.h+ include/plugin_common.h 128*7c478bd9Sstevel@tonic-gate 129*7c478bd9Sstevel@tonic-gate $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \ 130*7c478bd9Sstevel@tonic-gate < Makefile | $(SED) -e "/^# EXPORT DELETE/d" > Makefile+ 131*7c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 132*7c478bd9Sstevel@tonic-gate 133*7c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile \ 134*7c478bd9Sstevel@tonic-gate lib/client.c \ 135*7c478bd9Sstevel@tonic-gate lib/server.c \ 136*7c478bd9Sstevel@tonic-gate lib/common.c \ 137*7c478bd9Sstevel@tonic-gate lib/saslint.h \ 138*7c478bd9Sstevel@tonic-gate include/plugin_common.h 139*7c478bd9Sstevel@tonic-gate 140*7c478bd9Sstevel@tonic-gate# CRYPT DELETE END 141*7c478bd9Sstevel@tonic-gate# EXPORT DELETE END 142*7c478bd9Sstevel@tonic-gate 143*7c478bd9Sstevel@tonic-gateinclude ../Makefile.targ 144*7c478bd9Sstevel@tonic-gate 145*7c478bd9Sstevel@tonic-gate.PARALLEL: $(SUBDIRS) 146