0
|
1 APP = callback_suite
|
505
|
2 OBJS = globals.o cases.o main.o
|
0
|
3 SRCTOP = ${VPATH}/../..
|
|
4 BLDTOP = ../..
|
|
5 CFLAGS += -I${SRCTOP}/dyncall -I${SRCTOP}/dyncallback
|
|
6 LDLIBS += -L${BLDTOP}/dyncall -ldyncall_s -L${BLDTOP}/dyncallback -ldyncallback_s
|
|
7 LUA = lua
|
|
8
|
505
|
9 .PHONY: all clean install config
|
0
|
10 all: ${APP}
|
|
11 ${APP}: ${OBJS}
|
|
12 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP}
|
|
13 clean:
|
|
14 rm -f ${APP} ${OBJS}
|
|
15 install:
|
|
16 mkdir -p ${PREFIX}/test
|
|
17 cp ${APP} ${PREFIX}/test
|
505
|
18 config:
|
|
19 ${LUA} make-signatures.lua >cases.txt
|
|
20 ${LUA} mk-cases.lua <cases.txt >cases.h
|
0
|
21 config-random:
|
505
|
22 echo "-- auto-generated file from template config-random.lua (created by make)" >config.lua
|
0
|
23 cat config-random.lua >>config.lua
|
|
24 ${MAKE} config
|
|
25 config-stress1:
|
505
|
26 echo "-- auto-generated file from template config-stress1.lua (created by make)" >config.lua
|
0
|
27 cat config-stress1.lua >>config.lua
|
|
28 ${MAKE} config
|
|
29
|