annotate test/callback_plain_c++/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 (2022-09-29)
parents 09bf0470ed50
children ef356272a1c7
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
562
09bf0470ed50 - callback_plain_c++ build fix for some platforms (setting correct c++ flags)
Tassilo Philipp
parents: 557
diff changeset
1 APP = callback_plain_c++
09bf0470ed50 - callback_plain_c++ build fix for some platforms (setting correct c++ flags)
Tassilo Philipp
parents: 557
diff changeset
2 OBJS = test_main.o
09bf0470ed50 - callback_plain_c++ build fix for some platforms (setting correct c++ flags)
Tassilo Philipp
parents: 557
diff changeset
3 SRCTOP = ${VPATH}/../..
09bf0470ed50 - callback_plain_c++ build fix for some platforms (setting correct c++ flags)
Tassilo Philipp
parents: 557
diff changeset
4 BLDTOP = ../..
09bf0470ed50 - callback_plain_c++ build fix for some platforms (setting correct c++ flags)
Tassilo Philipp
parents: 557
diff changeset
5 CXXFLAGS += -I${SRCTOP}/dyncall
09bf0470ed50 - callback_plain_c++ build fix for some platforms (setting correct c++ flags)
Tassilo Philipp
parents: 557
diff changeset
6 LDLIBS += -L${BLDTOP}/dyncallback -ldyncallback_s -L${BLDTOP}/dyncall -ldyncall_s
545
ca28e9e3c644 - test/callback_plain_c++, to test C++ non-trivial aggrs by value, as well as method callback handlers
Tassilo Philipp
parents:
diff changeset
7 .PHONY: all clean install
ca28e9e3c644 - test/callback_plain_c++, to test C++ non-trivial aggrs by value, as well as method callback handlers
Tassilo Philipp
parents:
diff changeset
8 all: ${APP}
ca28e9e3c644 - test/callback_plain_c++, to test C++ non-trivial aggrs by value, as well as method callback handlers
Tassilo Philipp
parents:
diff changeset
9 ${APP}: ${OBJS}
562
09bf0470ed50 - callback_plain_c++ build fix for some platforms (setting correct c++ flags)
Tassilo Philipp
parents: 557
diff changeset
10 ${CXX} ${CXXFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP}
545
ca28e9e3c644 - test/callback_plain_c++, to test C++ non-trivial aggrs by value, as well as method callback handlers
Tassilo Philipp
parents:
diff changeset
11 clean:
ca28e9e3c644 - test/callback_plain_c++, to test C++ non-trivial aggrs by value, as well as method callback handlers
Tassilo Philipp
parents:
diff changeset
12 rm -f ${APP} ${OBJS}
ca28e9e3c644 - test/callback_plain_c++, to test C++ non-trivial aggrs by value, as well as method callback handlers
Tassilo Philipp
parents:
diff changeset
13 install:
ca28e9e3c644 - test/callback_plain_c++, to test C++ non-trivial aggrs by value, as well as method callback handlers
Tassilo Philipp
parents:
diff changeset
14 mkdir -p ${PREFIX}/test
ca28e9e3c644 - test/callback_plain_c++, to test C++ non-trivial aggrs by value, as well as method callback handlers
Tassilo Philipp
parents:
diff changeset
15 cp ${APP} ${PREFIX}/test