Mercurial > pub > dyncall > dyncall
annotate test/suite2_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 |
rev | line source |
---|---|
665
ef356272a1c7
- 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)
Tassilo Philipp
parents:
0
diff
changeset
|
1 APP = suite2_x86win32std${APP_SUFFIX} |
0 | 2 OBJS = case.o main.o |
3 | |
4 TOP = ../.. | |
5 CFLAGS = -I${TOP}/dyncall | |
6 LDFLAGS = -L${TOP}/dyncall | |
7 LDLIBS = -ldyncall_s | |
8 LINK = ${CXX} | |
9 | |
10 all: ${APP} | |
11 | |
12 .PHONY: all clean install | |
13 | |
14 RM ?= rm -f | |
15 AR ?= ar | |
16 MKDIR ?= mkdir | |
17 INSTALL ?= install -p | |
18 | |
19 ${APP}: ${OBJS} | |
20 ${LINK} ${OBJS} ${LDFLAGS} ${LDLIBS} -o ${APP} ${TARGET_ARCH} | |
21 | |
22 clean: | |
23 ${RM} ${APP} ${OBJS} | |
24 |