1
0
Fork 0
mirror of git://git.psyc.eu/libpsyc synced 2024-08-15 03:19:02 +00:00

test: make opts

This commit is contained in:
tg(x) 2011-05-15 21:20:58 +02:00
parent 4512c1ae9d
commit f9bc1099a2

View file

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