Mercurial > hg > pub > prymula > com
diff lamertetris/Makefile.win @ 0:2787f5e749ae
INIT
author | prymula <prymula76@outlook.com> |
---|---|
date | Thu, 21 Sep 2023 22:33:57 +0200 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lamertetris/Makefile.win Thu Sep 21 22:33:57 2023 +0200 @@ -0,0 +1,31 @@ +CXX = g++ +WINDRES = windres.exe + +APP_BIN=lamertetris.exe +OBJF = ./sources/field.o \ + ./sources/shape.o \ + ./sources/szlam.o \ + ./sources/text.o \ + ./sources/hiscore.o \ + ./sources/game.o + +LIBS=SDL2 SDL2_ttf + +PACKAGES = $(LIBS) +CXXFLAGS += -g -Wall `pkg-config --cflags $(PACKAGES)` -DWINDOWS #-mconsole + +all: $(APP_BIN) + +$(APP_BIN): $(OBJF) + $(WINDRES) tetris.rc -O coff -o icon.o + $(CXX) $(CXXFLAGS) $(OBJF) -o $(APP_BIN) `pkg-config --libs --static $(PACKAGES)` -g icon.o + +clean: + rm -f $(OBJF) $(APP_BIN) icon.o + +%.o : %.C + $(CXX) $(CXXFLAGS) -c $< -o $@ + + +# EOF # +