view test/callback_suite/Makefile.embedded @ 525:cc607f753178

- callback_suite_aggrs: added some cases that failed and/or are still failing to design.txt, as they showcase more subtle things like structs right on the reg-stack split, alignment issues, etc.
author Tassilo Philipp
date Wed, 13 Apr 2022 15:55:50 +0200
parents 049e04af13c8
children 71c884e610f0
line wrap: on
line source

APP = callback_suite
OBJS = globals.o cases.o main.o

SRCTOP   = ../..
BLDTOP   = ${SRCTOP}
CFLAGS  += -I${SRCTOP}/dyncall -I${SRCTOP}/dyncallback
LDFLAGS += -L${BLDTOP}/dyncall -L${BLDTOP}/dyncallback
LDLIBS  += -ldyncall_s -ldyncallback_s

all: ${APP}

.PHONY: all clean install

${APP}: ${OBJS} 
	${CC} ${OBJS} ${LDFLAGS} ${LDLIBS} -o ${APP} 

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 make)" >config.lua
	cat config-random.lua >>config.lua
	${MAKE} config
config-stress1:
	echo "-- auto-generated file from template config-stress1.lua (created by make)" >config.lua
	cat config-stress1.lua >>config.lua
	${MAKE} config
cases.o: cases.h
clean:
	rm -f ${APP} ${OBJS}