Mercurial > pub > dyncall > dyncall
diff test/callback_suite/Makefile.generic @ 505:049e04af13c8
test/callback_suite:
- greatly simplified
- refactored to look more like other test cases (especially call_suite{,_aggrs} for consistency/maintainablity/future code sharing
author | Tassilo Philipp |
---|---|
date | Sat, 09 Apr 2022 13:53:58 +0200 |
parents | d8f0e6cecdab |
children | 71c884e610f0 |
line wrap: on
line diff
--- a/test/callback_suite/Makefile.generic Fri Apr 08 20:33:14 2022 +0200 +++ b/test/callback_suite/Makefile.generic Sat Apr 09 13:53:58 2022 +0200 @@ -1,14 +1,12 @@ APP = callback_suite -OBJS = env.o do_test.o main.o +OBJS = globals.o cases.o main.o SRCTOP = ${VPATH}/../.. BLDTOP = ../.. CFLAGS += -I${SRCTOP}/dyncall -I${SRCTOP}/dyncallback LDLIBS += -L${BLDTOP}/dyncall -ldyncall_s -L${BLDTOP}/dyncallback -ldyncallback_s LUA = lua -AUTOS = _auto_config.h _auto_sigstrings.h _auto_invokers.h \ - _auto_invoke_macros.h _auto_invoke_table.h _auto_signatures.txt -.PHONY: all clean install config clean-config +.PHONY: all clean install config all: ${APP} ${APP}: ${OBJS} ${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP} @@ -17,34 +15,15 @@ install: mkdir -p ${PREFIX}/test cp ${APP} ${PREFIX}/test -config: clean-config ${AUTOS} +config: + ${LUA} make-signatures.lua >cases.txt + ${LUA} mk-cases.lua <cases.txt >cases.h config-random: - echo "-- auto-generated file from template config-random.lua (created by GNUmake)" >config.lua + echo "-- auto-generated file from template config-random.lua (created by make)" >config.lua cat config-random.lua >>config.lua ${MAKE} config config-stress1: - echo "-- auto-generated file from template config-stress1.lua (created by GNUmake)" >config.lua + echo "-- auto-generated file from template config-stress1.lua (created by make)" >config.lua cat config-stress1.lua >>config.lua ${MAKE} config -clean-config: clean - rm -f ${AUTOS} - -_auto_signatures.txt: - ${LUA} make-signatures.lua >$@ - -_auto_invokers.h: _auto_signatures.txt - ${LUA} make-invokers.lua <$> >$@ - -_auto_sigstrings.h: _auto_signatures.txt - ${LUA} make-cstrings.lua <$> >$@ - -_auto_config.h: - ${LUA} make-config.lua >$@ - -_auto_invoke_macros.h: - ${LUA} make-invoke-macros.lua >$@ - -_auto_invoke_table.h: - ${LUA} make-invoke-table.lua >$@ -