0
|
1 CPP = g++.exe
|
|
2 CC = gcc.exe
|
|
3
|
|
4 WINDRES = windres.exe
|
|
5 RES =
|
|
6 OBJ = arkanoid.o ball.o $(RES)
|
|
7 LINKOBJ = arkanoid.o ball.o $(RES)
|
|
8 #LIBS = -L"/lib" -lsdl -lsdl_ttf -mwindows
|
|
9 LIBS = -L"C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\i686-w64-mingw32\pietraszczyk\lib" -mwindows -lmingw32 -lSDL2main -lSDL2 -lSDL2_ttf -static-libgcc
|
|
10 #LIBS = -L"C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\i686-w64-mingw32\pietraszczyk\lib" -Wl,-Bstatic -l:libSDL2_ttf.a -l:libfreetype.a -l:libz.a -l:libSDL2main.a -l:libSDL2.a -Wl,-Bdynamic
|
|
11 # # `pkg-config brotlidec --libs` `pkg-config brotlicommon --libs`
|
|
12 #LIBS = -mwindows -Wl,-Bstatic -l:libmingw32.a -l:libgcc.a -l:libgcc_eh.a `sdl2-config --static-libs` `pkg-config sdl2_ttf --static --libs` `pkg-config freetype2 --static --libs` `pkg-config libpng16 --static --libs` `pkg-config zlib --static --libs` `pkg-config libpng --static --libs` `pkg-config harfbuzz --static --libs` `pkg-config graphite2 --static --libs` -l:libstdc++.a -Wl,-Bdynamic
|
|
13 INCS = `sdl2-config --cflags`
|
|
14 INCS = -I"C:\Program Files (x86)\mingw-w64\i686-8.1.0-posix-dwarf-rt_v6-rev0\mingw32\i686-w64-mingw32\pietraszczyk\include" -Dmain=SDL_main
|
|
15 CXXINCS =
|
|
16 BIN = arkanoid.exe
|
|
17 CXXFLAGS = $(CXXINCS)
|
|
18 CFLAGS = $(INCS) -g
|
|
19 RM = rm
|
|
20
|
|
21 .PHONY: all all-before all-after clean clean-custom
|
|
22
|
|
23 all: all-before arkanoid.exe all-after
|
|
24 #all: arkanoid.res arkanoid.exe
|
|
25
|
|
26
|
|
27 clean: clean-custom
|
|
28 ${RM} $(OBJ)
|
|
29 ${RM} $(BIN)
|
|
30
|
|
31 #arkanoid.res: arkanoid.rc
|
|
32 # $(WINDRES) arkanoid.rc arkanoid.res
|
|
33
|
|
34
|
|
35 $(BIN): $(OBJ)
|
|
36 $(WINDRES) arkanoid.rc -O coff -o icon.o
|
|
37 $(CC) $(LINKOBJ) -o "arkanoid.exe" $(LIBS) icon.o
|
|
38 # $(CC) $(LINKOBJ) -o "arkanoid.exe" $(LIBS)
|
|
39
|
|
40 arkanoid.o: arkanoid.c
|
|
41 $(CC) -c arkanoid.c -o arkanoid.o $(CFLAGS) -DWINDOWS -DNO_STDIO_REDIRECT
|
|
42
|
|
43 ball.o: ball.c
|
|
44 $(CC) -c ball.c -o ball.o $(CFLAGS) -DNO_STDIO_REDIRECT
|