view test/call_suite_aggrs/Makefile.generic @ 606:85b7a117b807

- more statics in test code (this is partly needed on an experimental freebsd sparc64 build where the elf cleanup code crashes for some reason ... it's probably that experimental build, but a good change to do regardless)
author Tassilo Philipp
date Wed, 21 Sep 2022 15:20:58 +0200
parents 22e4e3f06797
children
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:
	# need two versions for platforms allowing empty aggregates (non-standard) or not
	# nonemptyaggrs.txt version differs only if config.lua's minaggrfields=0
	cp config.lua config.lua.cases
	sed -e '/minaggrfields[[:space:]]*=[[:space:]]*0/s/=.*/=1/;t' -e d config.lua.cases >> config.lua
	${LUA} rand-sig.lua >nonemptyaggrs.txt
	mv config.lua.cases config.lua
	${LUA} rand-sig.lua >cases.txt
	${LUA} mk-cases.lua <nonemptyaggrs.txt >nonemptyaggrs.h
	${LUA} mk-cases.lua <cases.txt >cases.h