Mercurial > pub > dyncall > dyncall
comparison test/callback_suite_aggrs/Makefile.generic @ 523:cd46e111bc4c
- new test/callback_suite_aggrs (currently ahead of checked-in dyncall code and won't compile, though, as with call_suite_aggrs; dc code will be checked in, soon)
author | Tassilo Philipp |
---|---|
date | Wed, 13 Apr 2022 14:59:57 +0200 |
parents | |
children | 71c884e610f0 |
comparison
equal
deleted
inserted
replaced
522:f7fec6699e21 | 523:cd46e111bc4c |
---|---|
1 APP = callback_suite_aggrs | |
2 OBJS = globals.o cases.o main.o | |
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 | |
9 .PHONY: all clean install config | |
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 | |
18 config: | |
19 ${LUA} mk-cases.lua <design.txt >cases.h | |
20 config-random: | |
21 # need two versions for platforms allowing empty aggregates (non-standard) or not | |
22 # nonemptyaggrs.txt version differs only if config.lua's minaggrfields=0 | |
23 cp config.lua config.lua.cases | |
24 sed -e '/minaggrfields[[:space:]]*=[[:space:]]*0/s/=.*/=1/;t' -e d config.lua.cases >> config.lua | |
25 ${LUA} rand-sig.lua >nonemptyaggrs.txt | |
26 mv config.lua.cases config.lua | |
27 ${LUA} rand-sig.lua >cases.txt | |
28 ${LUA} mk-cases.lua <nonemptyaggrs.txt >nonemptyaggrs.h | |
29 ${LUA} mk-cases.lua <cases.txt >cases.h | |
30 |