view test/call_suite/Makefile.embedded @ 602:22e4e3f06797

tests: - removed stale test/sharedlib (which built a dll, but is unused now, dynload_plain prob used it but provides such libs itself, now) - sync'ed some embedded Makefiles w/ generic ones - suite3: fixed C++ flags
author Tassilo Philipp
date Wed, 21 Sep 2022 13:25:35 +0200
parents 2b708397bba1
children
line wrap: on
line source

TARGET	= call_suite ${OBJS} 
OBJS	= globals.o cases.o main.o

SRCDIR 	= ../..
BLDDIR 	= ${SRCDIR}
LUA	= lua

CFLAGS	+= -I${SRCDIR}/dyncall
LDFLAGS	+= -L${BLDDIR}/dyncall
LDLIBS	+= -ldyncall_s

.PHONY: all clean config config-random

all: ${TARGET}
call_suite: ${OBJS}
	${CC} ${CFLAGS} ${LDFLAGS} ${OBJS} ${LDLIBS} -o $@
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
cases.o: cases.h 
clean:
	rm -f ${TARGET}