1 0 stevel # 2 2522 raf # CDDL HEADER START 3 2522 raf # 4 2522 raf # The contents of this file are subject to the terms of the 5 2522 raf # Common Development and Distribution License (the "License"). 6 2522 raf # You may not use this file except in compliance with the License. 7 2522 raf # 8 2522 raf # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 2522 raf # or http://www.opensolaris.org/os/licensing. 10 2522 raf # See the License for the specific language governing permissions 11 2522 raf # and limitations under the License. 12 2522 raf # 13 2522 raf # When distributing Covered Code, include this CDDL HEADER in each 14 2522 raf # file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 2522 raf # If applicable, add the following below this CDDL HEADER, with the 16 2522 raf # fields enclosed by brackets "[]" replaced with your own identifying 17 2522 raf # information: Portions Copyright [yyyy] [name of copyright owner] 18 2522 raf # 19 2522 raf # CDDL HEADER END 20 2522 raf # 21 4162 kupfer 22 2522 raf # 23 4162 kupfer # Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24 0 stevel # Use is subject to license terms. 25 0 stevel # 26 0 stevel # ident "%Z%%M% %I% %E% SMI" 27 0 stevel # 28 0 stevel 29 0 stevel include ../Makefile.lib 30 0 stevel 31 0 stevel HDRS= sasl.h saslplug.h saslutil.h prop.h 32 0 stevel HDRDIR= include 33 0 stevel ROOTHDRDIR= $(ROOT)/usr/include/sasl 34 0 stevel 35 0 stevel SUBDIRS = $(MACH) 36 0 stevel $(BUILD64)SUBDIRS += $(MACH64) 37 0 stevel 38 0 stevel all := TARGET= all 39 0 stevel clean := TARGET= clean 40 0 stevel clobber := TARGET= clobber 41 0 stevel install := TARGET= install 42 0 stevel lint := TARGET= lint 43 0 stevel 44 0 stevel LIBRARY= libsasl.a 45 0 stevel POFILE= $(LIBRARY:.a=.po) 46 0 stevel MSGFILES= lib/canonusr.c lib/checkpw.c lib/client.c lib/common.c \ 47 0 stevel lib/external.c lib/server.c lib/seterror.c \ 48 0 stevel plugin/plugin_common.c \ 49 0 stevel $(SRC)/lib/sasl_plugins/cram/cram.c \ 50 0 stevel $(SRC)/lib/sasl_plugins/digestmd5/digestmd5.c \ 51 0 stevel $(SRC)/lib/sasl_plugins/gssapi/gssapi.c \ 52 0 stevel $(SRC)/lib/sasl_plugins/plain/plain.c 53 0 stevel 54 0 stevel .KEEP_STATE: 55 0 stevel 56 2522 raf all clean clobber install lint: $(SUBDIRS) 57 0 stevel 58 4162 kupfer all install: THIRDPARTYLICENSE 59 4162 kupfer 60 0 stevel install_h: $(ROOTHDRS) 61 0 stevel 62 0 stevel check: $(CHECKHDRS) 63 0 stevel 64 0 stevel $(POFILE): $(MSGFILES) 65 0 stevel $(BUILDPO.msgfiles) 66 0 stevel 67 0 stevel _msg: $(MSGDOMAINPOFILE) 68 0 stevel 69 0 stevel include $(SRC)/Makefile.msg.targ 70 0 stevel 71 2522 raf $(SUBDIRS): FRC 72 0 stevel @cd $@; pwd; $(MAKE) $(TARGET) 73 0 stevel 74 0 stevel FRC: 75 4162 kupfer 76 4162 kupfer THIRDPARTYLICENSE: LICENSE.txt 77 4162 kupfer $(SED) -n '/Carnegie Mellon/,$$p' LICENSE.txt > $@ 78 4162 kupfer 79 4162 kupfer CLOBBERFILES += THIRDPARTYLICENSE 80 0 stevel 81 0 stevel # EXPORT DELETE START 82 0 stevel # CRYPT DELETE START 83 0 stevel # Special target to clean up the source tree for export distribution 84 0 stevel # Warning: This target changes the source tree 85 0 stevel EXPORT_SRC: 86 0 stevel $(RM) Makefile+ \ 87 0 stevel lib/client.c+ \ 88 0 stevel lib/server.c+ \ 89 0 stevel lib/common.c+ \ 90 0 stevel lib/saslint.h+ \ 91 0 stevel include/plugin_common.h+ 92 0 stevel 93 0 stevel $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 94 0 stevel < lib/client.c > lib/client.c+ 95 0 stevel $(MV) lib/client.c+ lib/client.c 96 0 stevel 97 0 stevel $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 98 0 stevel < lib/server.c > lib/server.c+ 99 0 stevel $(MV) lib/server.c+ lib/server.c 100 0 stevel 101 0 stevel $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 102 0 stevel < lib/common.c > lib/common.c+ 103 0 stevel $(MV) lib/common.c+ lib/common.c 104 0 stevel 105 0 stevel $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 106 0 stevel < lib/saslint.h > lib/saslint.h+ 107 0 stevel $(MV) lib/saslint.h+ lib/saslint.h 108 0 stevel 109 0 stevel $(SED) -e "/EXPORT DELETE START/,/EXPORT DELETE END/d" \ 110 0 stevel < include/plugin_common.h > include/plugin_common.h+ 111 0 stevel $(MV) include/plugin_common.h+ include/plugin_common.h 112 0 stevel 113 0 stevel $(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 114 0 stevel < Makefile > Makefile+ 115 0 stevel $(MV) Makefile+ Makefile 116 0 stevel 117 0 stevel $(CHMOD) 444 Makefile \ 118 0 stevel lib/client.c \ 119 0 stevel lib/server.c \ 120 0 stevel lib/common.c \ 121 0 stevel lib/saslint.h \ 122 0 stevel include/plugin_common.h 123 0 stevel 124 0 stevel CRYPT_SRC: 125 0 stevel $(RM) Makefile+ lib/common.c+ 126 0 stevel 127 0 stevel $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 128 0 stevel < lib/common.c | $(SED) -e "/EXPORT DELETE/d" \ 129 0 stevel > lib/common.c+ 130 0 stevel $(MV) lib/common.c+ lib/common.c 131 0 stevel 132 0 stevel $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 133 0 stevel < lib/client.c | $(SED) -e "/EXPORT DELETE/d" \ 134 0 stevel > lib/client.c+ 135 0 stevel $(MV) lib/client.c+ lib/client.c 136 0 stevel 137 0 stevel $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 138 0 stevel < lib/server.c | $(SED) -e "/EXPORT DELETE/d" \ 139 0 stevel > lib/server.c+ 140 0 stevel $(MV) lib/server.c+ lib/server.c 141 0 stevel 142 0 stevel $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 143 0 stevel < lib/saslint.h | $(SED) -e "/EXPORT DELETE/d" \ 144 0 stevel > lib/saslint.h+ 145 0 stevel $(MV) lib/saslint.h+ lib/saslint.h 146 0 stevel 147 0 stevel $(SED) -e "/CRYPT DELETE START/,/CRYPT DELETE END/d" \ 148 0 stevel < include/plugin_common.h | $(SED) -e "/EXPORT DELETE/d" \ 149 0 stevel > include/plugin_common.h+ 150 0 stevel $(MV) include/plugin_common.h+ include/plugin_common.h 151 0 stevel 152 0 stevel $(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \ 153 0 stevel < Makefile | $(SED) -e "/^# EXPORT DELETE/d" > Makefile+ 154 0 stevel $(MV) Makefile+ Makefile 155 0 stevel 156 0 stevel $(CHMOD) 444 Makefile \ 157 0 stevel lib/client.c \ 158 0 stevel lib/server.c \ 159 0 stevel lib/common.c \ 160 0 stevel lib/saslint.h \ 161 0 stevel include/plugin_common.h 162 0 stevel 163 0 stevel # CRYPT DELETE END 164 0 stevel # EXPORT DELETE END 165 0 stevel 166 0 stevel include ../Makefile.targ 167 0 stevel 168 0 stevel .PARALLEL: $(SUBDIRS) 169