annotate arkanoid/Makefile.win @ 9:cdadbf30a821

arkanoid-0.7-1_PKG
author prymula <prymula76@outlook.com>
date Sun, 04 Feb 2024 15:47:05 +0100
parents 2787f5e749ae
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
prymula <prymula76@outlook.com>
parents:
diff changeset
1 CPP = g++.exe
prymula <prymula76@outlook.com>
parents:
diff changeset
2 CC = gcc.exe
prymula <prymula76@outlook.com>
parents:
diff changeset
3
prymula <prymula76@outlook.com>
parents:
diff changeset
4 WINDRES = windres.exe
prymula <prymula76@outlook.com>
parents:
diff changeset
5 RES =
prymula <prymula76@outlook.com>
parents:
diff changeset
6 OBJ = arkanoid.o ball.o $(RES)
prymula <prymula76@outlook.com>
parents:
diff changeset
7 LINKOBJ = arkanoid.o ball.o $(RES)
prymula <prymula76@outlook.com>
parents:
diff changeset
8 #LIBS = -L"/lib" -lsdl -lsdl_ttf -mwindows
prymula <prymula76@outlook.com>
parents:
diff changeset
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
prymula <prymula76@outlook.com>
parents:
diff changeset
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
prymula <prymula76@outlook.com>
parents:
diff changeset
11 # # `pkg-config brotlidec --libs` `pkg-config brotlicommon --libs`
prymula <prymula76@outlook.com>
parents:
diff changeset
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
prymula <prymula76@outlook.com>
parents:
diff changeset
13 INCS = `sdl2-config --cflags`
prymula <prymula76@outlook.com>
parents:
diff changeset
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
prymula <prymula76@outlook.com>
parents:
diff changeset
15 CXXINCS =
prymula <prymula76@outlook.com>
parents:
diff changeset
16 BIN = arkanoid.exe
prymula <prymula76@outlook.com>
parents:
diff changeset
17 CXXFLAGS = $(CXXINCS)
prymula <prymula76@outlook.com>
parents:
diff changeset
18 CFLAGS = $(INCS) -g
prymula <prymula76@outlook.com>
parents:
diff changeset
19 RM = rm
prymula <prymula76@outlook.com>
parents:
diff changeset
20
prymula <prymula76@outlook.com>
parents:
diff changeset
21 .PHONY: all all-before all-after clean clean-custom
prymula <prymula76@outlook.com>
parents:
diff changeset
22
prymula <prymula76@outlook.com>
parents:
diff changeset
23 all: all-before arkanoid.exe all-after
prymula <prymula76@outlook.com>
parents:
diff changeset
24 #all: arkanoid.res arkanoid.exe
prymula <prymula76@outlook.com>
parents:
diff changeset
25
prymula <prymula76@outlook.com>
parents:
diff changeset
26
prymula <prymula76@outlook.com>
parents:
diff changeset
27 clean: clean-custom
prymula <prymula76@outlook.com>
parents:
diff changeset
28 ${RM} $(OBJ)
prymula <prymula76@outlook.com>
parents:
diff changeset
29 ${RM} $(BIN)
prymula <prymula76@outlook.com>
parents:
diff changeset
30
prymula <prymula76@outlook.com>
parents:
diff changeset
31 #arkanoid.res: arkanoid.rc
prymula <prymula76@outlook.com>
parents:
diff changeset
32 # $(WINDRES) arkanoid.rc arkanoid.res
prymula <prymula76@outlook.com>
parents:
diff changeset
33
prymula <prymula76@outlook.com>
parents:
diff changeset
34
prymula <prymula76@outlook.com>
parents:
diff changeset
35 $(BIN): $(OBJ)
prymula <prymula76@outlook.com>
parents:
diff changeset
36 $(WINDRES) arkanoid.rc -O coff -o icon.o
prymula <prymula76@outlook.com>
parents:
diff changeset
37 $(CC) $(LINKOBJ) -o "arkanoid.exe" $(LIBS) icon.o
prymula <prymula76@outlook.com>
parents:
diff changeset
38 # $(CC) $(LINKOBJ) -o "arkanoid.exe" $(LIBS)
prymula <prymula76@outlook.com>
parents:
diff changeset
39
prymula <prymula76@outlook.com>
parents:
diff changeset
40 arkanoid.o: arkanoid.c
prymula <prymula76@outlook.com>
parents:
diff changeset
41 $(CC) -c arkanoid.c -o arkanoid.o $(CFLAGS) -DWINDOWS -DNO_STDIO_REDIRECT
prymula <prymula76@outlook.com>
parents:
diff changeset
42
prymula <prymula76@outlook.com>
parents:
diff changeset
43 ball.o: ball.c
prymula <prymula76@outlook.com>
parents:
diff changeset
44 $(CC) -c ball.c -o ball.o $(CFLAGS) -DNO_STDIO_REDIRECT