Mercurial > pub > dyncall > dyncall
annotate test/call_suite_aggrs/Makefile.generic @ 520:bb4933eab7d6
- call_suite_aggrs: makefile fix
author | Tassilo Philipp |
---|---|
date | Mon, 11 Apr 2022 22:49:04 +0200 |
parents | f0080b53635d |
children | 22e4e3f06797 |
rev | line source |
---|---|
485
0c68b3f91367
- renamed suite_aggrs to call_suite_aggrs for consistency (callback version will be called callback_suite_aggrs)
Tassilo Philipp
parents:
432
diff
changeset
|
1 APP = call_suite_aggrs |
432
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
2 OBJS = globals.o cases.o main.o |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
3 SRCTOP = ${VPATH}/../.. |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
4 BLDTOP = ../.. |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
5 CFLAGS += -I${SRCTOP}/dyncall |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
6 LDLIBS += -L${BLDTOP}/dyncall -ldyncall_s |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
7 LUA = lua |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
8 .PHONY: all clean install config config-random |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
9 all: ${APP} |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
10 ${APP}: ${OBJS} |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
11 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP} |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
12 clean: |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
13 rm -f ${APP} ${OBJS} |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
14 install: |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
15 mkdir -p ${PREFIX}/test |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
16 cp ${APP} ${PREFIX}/test |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
17 config: |
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
18 ${LUA} mk-cases.lua <design.txt >cases.h |
502 | 19 config-random: |
520 | 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 | |
432
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
26 ${LUA} rand-sig.lua >cases.txt |
520 | 27 ${LUA} mk-cases.lua <nonemptyaggrs.txt >nonemptyaggrs.h |
432
167faab0c0be
first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff
changeset
|
28 ${LUA} mk-cases.lua <cases.txt >cases.h |