srcdir = @srcdir@ VPATH = @srcdir@ include ../../Mk/macports.autoconf.mk OBJS= \ Pextlib.o \ adv-flock.o \ base32cmd.o \ curl.o \ fgetln.o \ filemap.o \ fs-traverse.o \ md5cmd.o \ mktemp.o \ pipe.o \ readdir.o \ readline.o \ realpath.o \ rmd160cmd.o \ setmode.o \ sha1cmd.o \ sha256cmd.o \ sip_copy_proc.o \ strcasecmp.o \ strsed.o \ system.o \ tracelib.o \ tty.o \ uid.o \ vercomp.o \ xinstall.o ifneq (@ac_cv_func_strlcat@,yes) OBJS+=strlcat.o endif SHLIB_NAME= Pextlib${SHLIB_SUFFIX} INSTALLDIR= ${DESTDIR}${TCL_PACKAGE_PATH}/pextlib1.0 include $(srcdir)/../../Mk/macports.tea.mk # tracelib.o has an additional dependency tracelib.o: ../darwintracelib1.0/sandbox_actions.h CFLAGS+= ${CURL_CFLAGS} ${MD5_CFLAGS} ${READLINE_CFLAGS} LIBS+= ${CURL_LIBS} ${MD5_LIBS} ${READLINE_LIBS} ifeq ($(shell uname), Darwin) LIBS+= ../registry2.0/registry${SHLIB_SUFFIX} SHLIB_LDFLAGS+= -install_name ${TCL_PACKAGE_PATH}/pextlib1.0/${SHLIB_NAME} ${SHLIB_NAME}: ../registry2.0/registry${SHLIB_SUFFIX} endif .PHONY: test test:: ${SHLIB_NAME} ${TCLSH} $(srcdir)/tests/checksums.tcl ./${SHLIB_NAME} ${TCLSH} $(srcdir)/tests/curl.tcl ./${SHLIB_NAME} ${TCLSH} $(srcdir)/tests/filemap.tcl ./${SHLIB_NAME} ${TCLSH} $(srcdir)/tests/fs-traverse.tcl ./${SHLIB_NAME} ${TCLSH} $(srcdir)/tests/symlink.tcl ./${SHLIB_NAME} ${TCLSH} $(srcdir)/tests/unsetenv.tcl ./${SHLIB_NAME} ${TCLSH} $(srcdir)/tests/vercomp.tcl ./${SHLIB_NAME} distclean:: rm -f Makefile