0
|
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
|