view test/suite_x86win32std/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
parents 3e629dc19168
children
line wrap: on
line source

APP = suite_x86win32std${APP_SUFFIX}
OBJS = case.o main.o

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

all: ${APP}

.PHONY: all clean install

RM      ?= rm -f
AR      ?= ar
MKDIR   ?= mkdir
INSTALL ?= install -p

${APP}: ${OBJS} 
	${LINK} ${OBJS} ${LDFLAGS} ${LDLIBS} -o ${APP} ${TARGET_ARCH}

clean:
	${RM} ${APP} ${OBJS}