$FreeBSD$ --- test/Makefile.orig Thu Jun 17 19:21:57 2004 +++ test/Makefile Thu Jun 17 18:37:59 2004 @@ -1,13 +1,18 @@ # $Id: Makefile,v 1.6 2004/06/16 15:58:11 gonzo Exp $ -CFLAGS += -I/usr/local/include -I../zaptel -I../ztcfg +CFLAGS += -I${LOCALBASE}/include -I../zaptel -I../ztcfg all: zttool fxo_test ztmonitor fxo_test: fxo_test.o - gcc -o fxo_test fxo_test.o -ltonezone -L../ztcfg + ${CC} ${CFLAGS} -o fxo_test fxo_test.o -L../ztcfg -ltonezone ztmonitor: ztmonitor.o - gcc -o ztmonitor ztmonitor.o -ltonezone -L../ztcfg + ${CC} ${CFLAGS} -o ztmonitor ztmonitor.o -L../ztcfg -ltonezone zttool: zttool.o - gcc -o zttool zttool.o -ltonezone -L/usr/local/lib -lnewt -L../ztcfg + ${CC} ${CFLAGS} -o zttool zttool.o -L../ztcfg -ltonezone -L${LOCALBASE}/lib -lnewt + +install: + ${BSD_INSTALL_PROGRAM} fxo_test ${PREFIX}/bin + ${BSD_INSTALL_PROGRAM} ztmonitor ${PREFIX}/bin + ${BSD_INSTALL_PROGRAM} zttool ${PREFIX}/bin