Mercurial > pub > dyncall > dyncall
view test/callback_suite/Makefile.generic @ 665:ef356272a1c7 default tip
- introduced Makefile var APP_SUFFIX to handle cases where compilers implicitly add an extension to executables (e.g. llvm/mingw64 adds .exe even of not specified via -o)
author | Tassilo Philipp |
---|---|
date | Thu, 20 Jun 2024 17:10:12 +0200 (12 months ago) |
parents | 71c884e610f0 |
children |
line wrap: on
line source
APP = callback_suite${APP_SUFFIX} OBJS = globals.o cases.o main.o SRCTOP = ${VPATH}/../.. BLDTOP = ../.. CFLAGS += -I${SRCTOP}/dyncall -I${SRCTOP}/dyncallback LDLIBS += -L${BLDTOP}/dyncallback -ldyncallback_s -L${BLDTOP}/dyncall -ldyncall_s LUA = lua .PHONY: all clean install config 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} 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