annotate lamertetris/Makefile.win @ 7:bb29f1c89c99

immposiblerush-0.230919-0_PKG
author prymula <prymula76@outlook.com>
date Thu, 01 Feb 2024 21:49:30 +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 CXX = g++
prymula <prymula76@outlook.com>
parents:
diff changeset
2 WINDRES = windres.exe
prymula <prymula76@outlook.com>
parents:
diff changeset
3
prymula <prymula76@outlook.com>
parents:
diff changeset
4 APP_BIN=lamertetris.exe
prymula <prymula76@outlook.com>
parents:
diff changeset
5 OBJF = ./sources/field.o \
prymula <prymula76@outlook.com>
parents:
diff changeset
6 ./sources/shape.o \
prymula <prymula76@outlook.com>
parents:
diff changeset
7 ./sources/szlam.o \
prymula <prymula76@outlook.com>
parents:
diff changeset
8 ./sources/text.o \
prymula <prymula76@outlook.com>
parents:
diff changeset
9 ./sources/hiscore.o \
prymula <prymula76@outlook.com>
parents:
diff changeset
10 ./sources/game.o
prymula <prymula76@outlook.com>
parents:
diff changeset
11
prymula <prymula76@outlook.com>
parents:
diff changeset
12 LIBS=SDL2 SDL2_ttf
prymula <prymula76@outlook.com>
parents:
diff changeset
13
prymula <prymula76@outlook.com>
parents:
diff changeset
14 PACKAGES = $(LIBS)
prymula <prymula76@outlook.com>
parents:
diff changeset
15 CXXFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DWINDOWS #-mconsole
prymula <prymula76@outlook.com>
parents:
diff changeset
16
prymula <prymula76@outlook.com>
parents:
diff changeset
17 all: $(APP_BIN)
prymula <prymula76@outlook.com>
parents:
diff changeset
18
prymula <prymula76@outlook.com>
parents:
diff changeset
19 $(APP_BIN): $(OBJF)
prymula <prymula76@outlook.com>
parents:
diff changeset
20 $(WINDRES) tetris.rc -O coff -o icon.o
prymula <prymula76@outlook.com>
parents:
diff changeset
21 $(CXX) $(CXXFLAGS) $(OBJF) -o $(APP_BIN) `pkg-config --libs --static $(PACKAGES)` -g icon.o
prymula <prymula76@outlook.com>
parents:
diff changeset
22
prymula <prymula76@outlook.com>
parents:
diff changeset
23 clean:
prymula <prymula76@outlook.com>
parents:
diff changeset
24 rm -f $(OBJF) $(APP_BIN) icon.o
prymula <prymula76@outlook.com>
parents:
diff changeset
25
prymula <prymula76@outlook.com>
parents:
diff changeset
26 %.o : %.C
prymula <prymula76@outlook.com>
parents:
diff changeset
27 $(CXX) $(CXXFLAGS) -c $< -o $@
prymula <prymula76@outlook.com>
parents:
diff changeset
28
prymula <prymula76@outlook.com>
parents:
diff changeset
29
prymula <prymula76@outlook.com>
parents:
diff changeset
30 # EOF #
prymula <prymula76@outlook.com>
parents:
diff changeset
31