view test/call_suite_aggrs/Makefile.generic @ 519:99819b874bac

test/call_suite_aggrs: - refactored generator code a bit to be simpler, write cleaner output, have better shareability and clarity - added rtypes w/ default value nil to config.lua, to self document - shared some code under test/common/ - fixed nonemptyaggrs sigs and cases.h (accidentally overwritten with cases having empty aggrs)
author Tassilo Philipp
date Mon, 11 Apr 2022 22:26:07 +0200
parents f0080b53635d
children bb4933eab7d6
line wrap: on
line source

APP     = call_suite_aggrs
OBJS    = globals.o cases.o main.o
SRCTOP  = ${VPATH}/../..
BLDTOP  = ../..
CFLAGS += -I${SRCTOP}/dyncall
LDLIBS += -L${BLDTOP}/dyncall -ldyncall_s 
LUA     = lua
.PHONY: all clean install config config-random
all: ${APP}
${APP}: ${OBJS} 
	${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o ${APP} 
clean:
	rm -f ${APP} ${OBJS}
install:
	mkdir -p ${PREFIX}/test
	cp ${APP} ${PREFIX}/test
config:
	${LUA} mk-cases.lua <design.txt >cases.h
config-random:
	${LUA} rand-sig.lua >cases.txt
	${LUA} mk-cases.lua <cases.txt >cases.h
config-random-nonemptyaggrs:
	${LUA} rand-sig.lua >nonemptyaggrs.txt
	${LUA} mk-cases.lua <nonemptyaggrs.txt >nonemptyaggrs.h