comparison lamertetris/Makefile.win @ 0:2787f5e749ae

INIT
author prymula <prymula76@outlook.com>
date Thu, 21 Sep 2023 22:33:57 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:2787f5e749ae
1 CXX = g++
2 WINDRES = windres.exe
3
4 APP_BIN=lamertetris.exe
5 OBJF = ./sources/field.o \
6 ./sources/shape.o \
7 ./sources/szlam.o \
8 ./sources/text.o \
9 ./sources/hiscore.o \
10 ./sources/game.o
11
12 LIBS=SDL2 SDL2_ttf
13
14 PACKAGES = $(LIBS)
15 CXXFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DWINDOWS #-mconsole
16
17 all: $(APP_BIN)
18
19 $(APP_BIN): $(OBJF)
20 $(WINDRES) tetris.rc -O coff -o icon.o
21 $(CXX) $(CXXFLAGS) $(OBJF) -o $(APP_BIN) `pkg-config --libs --static $(PACKAGES)` -g icon.o
22
23 clean:
24 rm -f $(OBJF) $(APP_BIN) icon.o
25
26 %.o : %.C
27 $(CXX) $(CXXFLAGS) -c $< -o $@
28
29
30 # EOF #
31