# # make port -- compile the pipeline component # BINARIES=port CFLAGS=-g LINTFLAGS=-s -errtags #-erroff=E_GLOBAL_COULD_BE_STATIC2 port: port.c lint ${LINTFLAGS} port.c cc ${CFLAGS} -o port port.c test: port for i in tests/*; do ./port -v -I. $$i; done package: port rm -rf DCWport mkdir -p DCWport/opt/DCWport/bin DCWport/opt/DCWport/databases \ DCWport/opt/DCWport/src DCWport/opt/DCWport/man/man1 \ DCWport/opt/DCWport/man/man4 DCWport/opt/DCWport/src \ DCWport/opt/DCWport/src/tests cp port port2* DCWport/opt/DCWport/bin cp ../Databases/*.ref DCWport/opt/DCWport/databases # cp Makefile port.* port2* DCWport/opt/DCWport/src # cp tests/* DCWport/opt/DCWport/src/tests cp port*.1 DCWport/opt/DCWport/man/man1 cp port.4 DCWport/opt/DCWport/man/man4 pkg DCWport install: package suid -c 'pkgadd -d ./DCWport-1.0.pkg DCWport' # su root -c 'pkgadd -d ./DCWport-1.0.pkg DCWport' clean: rm -rf *.o port ./DCWport*