mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
makefile fixes for solaris
This commit is contained in:
parent
a8f35be057
commit
07d7a1626e
3 changed files with 15 additions and 9 deletions
|
@ -2,13 +2,22 @@ OPT = -O2
|
|||
DEBUG = 2
|
||||
CFLAGS = -I../include -Wall -std=c99 ${OPT}
|
||||
LDFLAGS = -L../lib
|
||||
LOADLIBES = -lpsyc -lm
|
||||
TARGETS = testServer testParser testMatch testRender testText isRoutingVar getVarType
|
||||
WRAPPER =
|
||||
DIET = diet
|
||||
PORT = 4440
|
||||
|
||||
LOADLIBES = -lpsyc -lm
|
||||
ifeq ($(shell uname),SunOS)
|
||||
LOADLIBES_NET = ${LOADLIBES} -lsocket -lnsl
|
||||
else
|
||||
LOADLIBES_NET = ${LOADLIBES}
|
||||
endif
|
||||
|
||||
all: ${TARGETS}
|
||||
it: all
|
||||
|
||||
testServer: LOADLIBES := ${LOADLIBES_NET}
|
||||
|
||||
diet: WRAPPER = ${DIET}
|
||||
diet: all
|
||||
|
@ -20,8 +29,6 @@ debug: all
|
|||
clean:
|
||||
rm -f ${TARGETS}
|
||||
|
||||
it: all
|
||||
|
||||
test: ${TARGETS}
|
||||
./testRender
|
||||
./testMatch
|
||||
|
@ -53,4 +60,4 @@ srvstartr:
|
|||
./testServer ${PORT} -r &
|
||||
|
||||
srvkill:
|
||||
killall testServer
|
||||
pkill -x testServer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue