annotate test/call_suite_aggrs/Makefile.embedded @ 663:127b569978cc default tip

- another tweak handling clang trying to be too smart (see last commit)
author Tassilo Philipp
date Sun, 24 Mar 2024 13:52:44 +0100
parents 22e4e3f06797
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 TARGET = call_suite_aggrs ${OBJS}
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
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
4 SRCDIR = ../..
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
5 BLDDIR = ${SRCDIR}
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
6 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
7
602
Tassilo Philipp
parents: 520
diff changeset
8 CFLAGS += -I${SRCDIR}/dyncall
Tassilo Philipp
parents: 520
diff changeset
9 LDFLAGS += -L${BLDDIR}/dyncall
Tassilo Philipp
parents: 520
diff changeset
10 LDLIBS += -ldyncall_s
432
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
11
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
12 .PHONY: all clean 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
13
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
14 all: ${TARGET}
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
15 call_suite_aggrs: ${OBJS}
602
Tassilo Philipp
parents: 520
diff changeset
16 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
432
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
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
19 config-random:
520
bb4933eab7d6 - call_suite_aggrs: makefile fix
Tassilo Philipp
parents: 510
diff changeset
20 # need two versions for platforms allowing empty aggregates (non-standard) or not
bb4933eab7d6 - call_suite_aggrs: makefile fix
Tassilo Philipp
parents: 510
diff changeset
21 # nonemptyaggrs.txt version differs only if config.lua's minaggrfields=0
bb4933eab7d6 - call_suite_aggrs: makefile fix
Tassilo Philipp
parents: 510
diff changeset
22 cp config.lua config.lua.cases
bb4933eab7d6 - call_suite_aggrs: makefile fix
Tassilo Philipp
parents: 510
diff changeset
23 sed -e '/minaggrfields[[:space:]]*=[[:space:]]*0/s/=.*/=1/;t' -e d config.lua.cases >> config.lua
bb4933eab7d6 - call_suite_aggrs: makefile fix
Tassilo Philipp
parents: 510
diff changeset
24 ${LUA} rand-sig.lua >nonemptyaggrs.txt
bb4933eab7d6 - call_suite_aggrs: makefile fix
Tassilo Philipp
parents: 510
diff changeset
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
bb4933eab7d6 - call_suite_aggrs: makefile fix
Tassilo Philipp
parents: 510
diff changeset
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
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
29 cases.o: cases.h
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
30 clean:
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
31 rm -f ${TARGET}
167faab0c0be first usable version of test suite for aggregates, handling only non-nested struct params, at the moment;
Tassilo Philipp
parents:
diff changeset
32