annotate test/call_suite/Makefile.generic @ 611:d94b053311a7

test/plain_c++: - refactored to share code - extended to treat default this calls and explicitly as cdecl declared ones, separately - prev point fixes implicitly on x86 a wrong dcMode setting (assumed that cdecl for methods would default to the native this call convention, but actually does not, applies cdecl verbatim) - extended aggr tests to also test explicit cdecl as well as MS thiscalls on x86 - simplified
author Tassilo Philipp
date Thu, 29 Sep 2022 11:47:54 +0200
parents 2b708397bba1
children ef356272a1c7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 APP = call_suite
429
2b708397bba1 - simplified and decluttered test/call_suite
Tassilo Philipp
parents: 0
diff changeset
2 OBJS = globals.o cases.o main.o
0
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 SRCTOP = ${VPATH}/../..
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 BLDTOP = ../..
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 CFLAGS += -I${SRCTOP}/dyncall
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6 LDLIBS += -L${BLDTOP}/dyncall -ldyncall_s
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 LUA = lua
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 .PHONY: all clean install config config-random
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 all: ${APP}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 ${APP}: ${OBJS}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 clean:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 rm -f ${APP} ${OBJS}
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14 install:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 mkdir -p ${PREFIX}/test
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16 cp ${APP} ${PREFIX}/test
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 config:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 ${LUA} mk-cases.lua <design.txt >cases.h
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 config-random:
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 ${LUA} rand-sig.lua >cases.txt
3e629dc19168 initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 ${LUA} mk-cases.lua <cases.txt >cases.h