comparison test/callback_suite_aggrs/Makefile.embedded @ 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
4 SRCTOP = ../..
5 BLDTOP = ${SRCTOP}
6 CFLAGS += -I${SRCTOP}/dyncall -I${SRCTOP}/dyncallback
7 LDFLAGS += -L${BLDTOP}/dyncall -L${BLDTOP}/dyncallback
8 LDLIBS += -ldyncall_s -ldyncallback_s
9
10 all: ${APP}
11
12 .PHONY: all clean install
13
14 ${APP}: ${OBJS}
15 ${CC} ${OBJS} ${LDFLAGS} ${LDLIBS} -o ${APP}
16
17 config:
18 ${LUA} mk-cases.lua <design.txt >cases.h
19 config-random:
20 # need two versions for platforms allowing empty aggregates (non-standard) or not
21 # nonemptyaggrs.txt version differs only if config.lua's minaggrfields=0
22 cp config.lua config.lua.cases
23 sed -e '/minaggrfields[[:space:]]*=[[:space:]]*0/s/=.*/=1/;t' -e d config.lua.cases >> config.lua
24 ${LUA} rand-sig.lua >nonemptyaggrs.txt
25 mv config.lua.cases config.lua
26 ${LUA} rand-sig.lua >cases.txt
27 ${LUA} mk-cases.lua <nonemptyaggrs.txt >nonemptyaggrs.h
28 ${LUA} mk-cases.lua <cases.txt >cases.h
29 cases.o: cases.h
30 clean:
31 rm -f ${APP} ${OBJS}
32