0
|
1 CPP = g++
|
|
2 CC = gcc
|
|
3
|
|
4 WINDRES = 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 = flappyufo.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 flappyufo.exe all-after
|
|
20
|
|
21
|
|
22 clean: clean-custom
|
|
23 ${RM} $(OBJ)
|
|
24 ${RM} $(BIN)
|
|
25
|
|
26 ${RM} icon.o
|
|
27
|
|
28
|
|
29 $(BIN): $(OBJ)
|
|
30 $(WINDRES) Icon.rc -O coff -o icon.o
|
|
31 $(CC) $(LINKOBJ) -o "flappyufo.exe" $(LIBS) -mwindows icon.o
|
|
32
|
|
33 wrapper.o: wrapper.c
|
|
34 $(CC) -c wrapper.c -o wrapper.o $(CFLAGS) -DNO_STDIO_REDIRECT
|
|
35
|
|
36
|