Mercurial > hg > pub > prymula > com
comparison Jttt/wrapper-icon/Makefile.win @ 0:2787f5e749ae
INIT
author | prymula <prymula76@outlook.com> |
---|---|
date | Thu, 21 Sep 2023 22:33:57 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:2787f5e749ae |
---|---|
1 CPP = g++.exe | |
2 CC = i686-w64-mingw32-g++ | |
3 | |
4 WINDRES = i686-w64-mingw32-windres | |
5 RES = | |
6 OBJ = wrapper.o $(RES) | |
7 LINKOBJ = wrapper.o $(RES) | |
8 #LIBS = -L"/lib" -lsdl -lsdl_ttf -mwindows | |
9 LIBS = -static-libgcc | |
10 INCS = | |
11 CXXINCS = | |
12 BIN = wrapper.exe | |
13 CXXFLAGS = $(CXXINCS) -g | |
14 CFLAGS = $(INCS) | |
15 RM = rm | |
16 | |
17 .PHONY: all all-before all-after clean clean-custom | |
18 | |
19 all: all-before wrapper.exe all-after | |
20 | |
21 | |
22 clean: clean-custom | |
23 ${RM} $(OBJ) | |
24 ${RM} $(BIN) | |
25 | |
26 $(WINDRES) Jttt.rc Jttt.res | |
27 | |
28 | |
29 $(BIN): $(OBJ) | |
30 $(WINDRES) Jttt.rc -O coff -o icon.o | |
31 $(CC) $(LINKOBJ) -o "wrapper.exe" $(LIBS) icon.o | |
32 | |
33 wrapper.o: wrapper.c | |
34 $(CC) -c wrapper.c -o wrapper.o $(CFLAGS) -DNO_STDIO_REDIRECT | |
35 | |
36 |