test: make opts

This commit is contained in:
tg(x) 2011-05-15 21:20:58 +02:00
parent 4512c1ae9d
commit f9bc1099a2
1 changed files with 3 additions and 4 deletions

View File

@ -3,7 +3,6 @@ DEBUG = 2
CFLAGS = -I../include -I../src -Wall -std=c99 ${OPT}
LDFLAGS = -L../lib
LOADLIBES = -lpsyc -lm
LOADLIBES_NET = ${LOADLIBES}
TARGETS = testPsyc testParser testMatch testRender testText isRoutingVar getVarType
O = test.o
WRAPPER =
@ -13,14 +12,14 @@ NC = nc
DIFF = diff
ifeq ($(shell uname),SunOS)
LOADLIBES_NET := ${LOADLIBES_NET} -lsocket -lnsl
LOADLIBES_NET := -lsocket -lnsl
DIFF = gdiff
endif
all: ${TARGETS}
it: all
testPsyc: LOADLIBES := ${LOADLIBES_NET}
testPsyc: LOADLIBES := ${LOADLIBES} ${LOADLIBES_NET}
testPsyc: test.o
diet: WRAPPER = ${DIET}
@ -67,7 +66,7 @@ pkterr:
srvstart:
pkill -x testPsyc; exit 0
./testPsyc -p ${PORT} ${srv_args} &
./testPsyc -p ${PORT} -S ${srv_args} &
srvkill:
pkill -x testPsyc