#################################################################### ##### This file is automatically generated -- edit at your own risk ##### Built by root@darwintel ##### on Mon Jan 7 17:58:05 EST 2008 using template OS/Darwin.8.x ##### including /mnt/gmirror/ports/mail/sendmail-ldap/work/sendmail-8.14.2/devtools/Site/site.config.m4 ##### in /mnt/gmirror/ports/mail/sendmail-ldap/work/sendmail-8.14.2/libsm #################################################################### # C compiler CC= cc -pipe ${Extra_CC_Flags} CCOPTS= # Linker for executables CCLINK = cc -pipe ${Extra_CC_Flags} # Linker for libraries LD= cc -pipe ${Extra_CC_Flags} LDOPTS= ${Extra_LD_Flags} LDOPTS_SO= ${LDOPTS} -shared # Shell SHELL= /bin/sh # use O=-O (usual) or O=-g (debugging) O= -O3 # Object archiver AR= ar AROPTS= crv # Remove command RM= rm RMOPTS= -f # Link command LN= ln LNOPTS= -f -s # Ranlib (or echo) RANLIB= ranlib RANLIBOPTS= -c # Object stripper STRIP= strip STRIPOPTS= # environment definitions (e.g., -D_AIX3) ENVDEF= -DNEWDB -DNIS -DMAP_REGEX -DDARWIN=80000 -DBIND_8_COMPAT -DNETINET6 -I/usr/local/include -DLDAPMAP # location of the source directory SRCDIR= ../.. # include directories INCDIRS= -I${SRCDIR}/include # library directories LIBDIRS= -L/usr/local/lib -L/usr/local/lib # Additional libs needed LIBADD= -lldap -llber # libraries required on your system LIBS= ${LIBADD} # location of sendmail binary (usually /usr/sbin or /usr/lib) BINDIR= /usr/sbin # location of "user" binaries (usually /usr/bin or /usr/ucb) UBINDIR=/usr/bin # location of "root" binaries (usually /usr/sbin or /usr/etc) SBINDIR=/usr/sbin # location of "root" binaries (usually /usr/sbin or /usr/etc) MBINDIR=/usr/sbin # location of "libexec" binaries (usually /usr/libexec or /usr/etc) EBINDIR=/usr/libexec # where to install include files (usually /usr/include) INCLUDEDIR=/usr/include # where to install library files (usually /usr/lib) LIBDIR=/usr/lib # additional .c files needed SRCADD= # additional .o files needed OBJADD= libsmOBJADD= # copy files CP= cp # In some places windows wants nmake where unix would just want make NMAKE=${MAKE} ################### end of user configuration flags ###################### BUILDBIN=${SRCDIR}/devtools/bin COPTS= -I. ${INCDIRS} ${ENVDEF} ${CCOPTS} CFLAGS= $O ${COPTS} BEFORE= sm_os.h LINKS= libsmSRCS= assert.c debug.c errstring.c exc.c heap.c match.c rpool.c strdup.c strerror.c strl.c clrerr.c fclose.c feof.c ferror.c fflush.c fget.c fpos.c findfp.c flags.c fopen.c fprintf.c fpurge.c fput.c fread.c fscanf.c fseek.c fvwrite.c fwalk.c fwrite.c get.c makebuf.c put.c refill.c rewind.c setvbuf.c smstdio.c snprintf.c sscanf.c stdio.c strio.c ungetc.c vasprintf.c vfprintf.c vfscanf.c vprintf.c vsnprintf.c wbuf.c wsetup.c string.c stringf.c xtrap.c strto.c test.c path.c strcasecmp.c strrevcmp.c signal.c clock.c config.c shm.c sem.c mbdb.c strexit.c cf.c ldap.c niprop.c mpeix.c memstat.c util.c ${SRCADD} libsmOBJS= assert.o debug.o errstring.o exc.o heap.o match.o rpool.o strdup.o strerror.o strl.o clrerr.o fclose.o feof.o ferror.o fflush.o fget.o fpos.o findfp.o flags.o fopen.o fprintf.o fpurge.o fput.o fread.o fscanf.o fseek.o fvwrite.o fwalk.o fwrite.o get.o makebuf.o put.o refill.o rewind.o setvbuf.o smstdio.o snprintf.o sscanf.o stdio.o strio.o ungetc.o vasprintf.o vfprintf.o vfscanf.o vprintf.o vsnprintf.o wbuf.o wsetup.o string.o stringf.o xtrap.o strto.o test.o path.o strcasecmp.o strrevcmp.o signal.o clock.o config.o shm.o sem.o mbdb.o strexit.o cf.o ldap.o niprop.o mpeix.o memstat.o util.o ${OBJADD} ${libsmOBJADD} libsmSMDEPLIBS= libsmTARGET_LINKS= NROFF= groff -Tascii MANDOC= -man INSTALL=install # User binary ownership/permissions UBINOWN=root UBINGRP=wheel UBINMODE=555 # Setuid binary ownership/permissions SBINOWN=root SBINGRP=wheel SBINMODE=4555 # Setgid binary ownership/permissions GBINOWN=root GBINGRP=smmsp GBINMODE=2555 # owner of MSP queue MSPQOWN=smmsp # MTA binary ownership/permissions MBINOWN=root MBINGRP=bin MBINMODE=550 # Library ownership/permissions LIBOWN=root LIBGRP=bin LIBMODE=0444 # Include file ownership/permissions INCOWN=root INCGRP=bin INCMODE=0444 ALL=${BEFORE} ${LINKS} libsm.a all: ${ALL} clean: libsm-clean t-event-clean t-exc-clean t-rpool-clean t-string-clean t-smstdio-clean t-match-clean t-strio-clean t-heap-clean t-fopen-clean t-strl-clean t-strrevcmp-clean t-types-clean t-path-clean t-float-clean t-scanf-clean t-shm-clean t-sem-clean t-qic-clean SRCS=${libsmSRCS} OBJS=${libsmOBJS} check_PROGRAMS=t-event t-exc t-rpool t-string t-smstdio t-match t-strio t-heap t-fopen t-strl t-strrevcmp t-types t-path t-float t-scanf t-shm t-sem t-qic TESTS=t-event t-exc t-rpool t-string t-smstdio t-match t-strio t-heap t-fopen t-strl t-strrevcmp t-types t-path t-float t-scanf t-shm t-sem t-qic VPATH=${srcdir} check-TESTS: $(TESTS) @failed=0; all=0; xfail=0; xpass=0; \ list='$(TESTS)'; \ srcdir=$(srcdir); export srcdir; \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ elif test -f $$tst; then dir=; \ else dir="$(srcdir)/"; fi; \ if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *" $$tst "*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ echo "XPASS: $$tst"; \ ;; \ *) \ echo "PASS: $$tst"; \ ;; \ esac; \ elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ *" $$tst "*) \ xfail=`expr $$xfail + 1`; \ echo "XFAIL: $$tst"; \ ;; \ *) \ failed=`expr $$failed + 1`; \ echo "FAIL: $$tst"; \ ;; \ esac; \ fi; \ done; \ if test "$$failed" -eq 0; then \ if test "$$xfail" -eq 0; then \ banner="All $$all tests passed"; \ else \ banner="All $$all tests behaved as expected ($$xfail expected failures)"; \ fi; \ else \ if test "$$xpass" -eq 0; then \ banner="$$failed of $$all tests failed"; \ else \ banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \ fi; \ fi; \ dashes=`echo "$$banner" | sed s/./=/g`; \ echo "$$dashes"; \ echo "$$banner"; \ echo "$$dashes"; \ test "$$failed" -eq 0; \ fi check-am: all $(MAKE) $(check_PROGRAMS) $(MAKE) check-TESTS check: check-am SRCS_CHK=${t-eventSRCS_CHK} ${t-excSRCS_CHK} ${t-rpoolSRCS_CHK} ${t-stringSRCS_CHK} ${t-smstdioSRCS_CHK} ${t-matchSRCS_CHK} ${t-strioSRCS_CHK} ${t-heapSRCS_CHK} ${t-fopenSRCS_CHK} ${t-strlSRCS_CHK} ${t-strrevcmpSRCS_CHK} ${t-typesSRCS_CHK} ${t-pathSRCS_CHK} ${t-floatSRCS_CHK} ${t-scanfSRCS_CHK} ${t-shmSRCS_CHK} ${t-semSRCS_CHK} ${t-qicSRCS_CHK} OBJS_CHK=${t-eventOBJS} ${t-excOBJS} ${t-rpoolOBJS} ${t-stringOBJS} ${t-smstdioOBJS} ${t-matchOBJS} ${t-strioOBJS} ${t-heapOBJS} ${t-fopenOBJS} ${t-strlOBJS} ${t-strrevcmpOBJS} ${t-typesOBJS} ${t-pathOBJS} ${t-floatOBJS} ${t-scanfOBJS} ${t-shmOBJS} ${t-semOBJS} ${t-qicOBJS} install: install-libsm install-strip: install-libsm sm_os.h: ${CP} /dev/null sm_os.h ################ Dependency scripts # $Id: CC-M.m4,v 8.5 1999/05/27 22:03:28 peterh Exp $ depend: ${BEFORE} ${LINKS} @mv Makefile Makefile.old @sed -e '/^# Do not edit or remove this line or anything below it.$$/,$$d' < Makefile.old > Makefile @echo "# Do not edit or remove this line or anything below it." >> Makefile ${CC} -M ${COPTS} ${SRCS} >> Makefile # End of $RCSfile: CC-M.m4,v $ ################ End of dependency scripts libsm.a: ${BEFORE} ${libsmOBJS} ${AR} ${AROPTS} libsm.a ${libsmOBJS} ${RANLIB} ${RANLIBOPTS} libsm.a install-libsm: libsm.a libsm-clean: rm -f ${OBJS} libsm.a ${MANPAGES} t-eventSRCS=t-event.c t-event: ${BEFORE} t-event.o libsm.a ${CC} -o t-event ${LDOPTS} ${LIBDIRS} t-event.o libsm.a ${LIBS} t-event-clean: rm -f t-event t-event.o t-excSRCS=t-exc.c t-exc: ${BEFORE} t-exc.o libsm.a ${CC} -o t-exc ${LDOPTS} ${LIBDIRS} t-exc.o libsm.a ${LIBS} t-exc-clean: rm -f t-exc t-exc.o t-rpoolSRCS=t-rpool.c t-rpool: ${BEFORE} t-rpool.o libsm.a ${CC} -o t-rpool ${LDOPTS} ${LIBDIRS} t-rpool.o libsm.a ${LIBS} t-rpool-clean: rm -f t-rpool t-rpool.o t-stringSRCS=t-string.c t-string: ${BEFORE} t-string.o libsm.a ${CC} -o t-string ${LDOPTS} ${LIBDIRS} t-string.o libsm.a ${LIBS} t-string-clean: rm -f t-string t-string.o t-smstdioSRCS=t-smstdio.c t-smstdio: ${BEFORE} t-smstdio.o libsm.a ${CC} -o t-smstdio ${LDOPTS} ${LIBDIRS} t-smstdio.o libsm.a ${LIBS} t-smstdio-clean: rm -f t-smstdio t-smstdio.o t-matchSRCS=t-match.c t-match: ${BEFORE} t-match.o libsm.a ${CC} -o t-match ${LDOPTS} ${LIBDIRS} t-match.o libsm.a ${LIBS} t-match-clean: rm -f t-match t-match.o t-strioSRCS=t-strio.c t-strio: ${BEFORE} t-strio.o libsm.a ${CC} -o t-strio ${LDOPTS} ${LIBDIRS} t-strio.o libsm.a ${LIBS} t-strio-clean: rm -f t-strio t-strio.o t-heapSRCS=t-heap.c t-heap: ${BEFORE} t-heap.o libsm.a ${CC} -o t-heap ${LDOPTS} ${LIBDIRS} t-heap.o libsm.a ${LIBS} t-heap-clean: rm -f t-heap t-heap.o t-fopenSRCS=t-fopen.c t-fopen: ${BEFORE} t-fopen.o libsm.a ${CC} -o t-fopen ${LDOPTS} ${LIBDIRS} t-fopen.o libsm.a ${LIBS} t-fopen-clean: rm -f t-fopen t-fopen.o t-strlSRCS=t-strl.c t-strl: ${BEFORE} t-strl.o libsm.a ${CC} -o t-strl ${LDOPTS} ${LIBDIRS} t-strl.o libsm.a ${LIBS} t-strl-clean: rm -f t-strl t-strl.o t-strrevcmpSRCS=t-strrevcmp.c t-strrevcmp: ${BEFORE} t-strrevcmp.o libsm.a ${CC} -o t-strrevcmp ${LDOPTS} ${LIBDIRS} t-strrevcmp.o libsm.a ${LIBS} t-strrevcmp-clean: rm -f t-strrevcmp t-strrevcmp.o t-typesSRCS=t-types.c t-types: ${BEFORE} t-types.o libsm.a ${CC} -o t-types ${LDOPTS} ${LIBDIRS} t-types.o libsm.a ${LIBS} t-types-clean: rm -f t-types t-types.o t-pathSRCS=t-path.c t-path: ${BEFORE} t-path.o libsm.a ${CC} -o t-path ${LDOPTS} ${LIBDIRS} t-path.o libsm.a ${LIBS} t-path-clean: rm -f t-path t-path.o t-floatSRCS=t-float.c t-float: ${BEFORE} t-float.o libsm.a ${CC} -o t-float ${LDOPTS} ${LIBDIRS} t-float.o libsm.a ${LIBS} t-float-clean: rm -f t-float t-float.o t-scanfSRCS=t-scanf.c t-scanf: ${BEFORE} t-scanf.o libsm.a ${CC} -o t-scanf ${LDOPTS} ${LIBDIRS} t-scanf.o libsm.a ${LIBS} t-scanf-clean: rm -f t-scanf t-scanf.o t-shmSRCS=t-shm.c t-shm: ${BEFORE} t-shm.o libsm.a ${CC} -o t-shm ${LDOPTS} ${LIBDIRS} t-shm.o libsm.a ${LIBS} t-shm-clean: rm -f t-shm t-shm.o t-semSRCS=t-sem.c t-sem: ${BEFORE} t-sem.o libsm.a ${CC} -o t-sem ${LDOPTS} ${LIBDIRS} t-sem.o libsm.a ${LIBS} t-sem-clean: rm -f t-sem t-sem.o t-qicSRCS=t-qic.c t-qic: ${BEFORE} t-qic.o libsm.a ${CC} -o t-qic ${LDOPTS} ${LIBDIRS} t-qic.o libsm.a ${LIBS} t-qic-clean: rm -f t-qic t-qic.o