comparison trix/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 -Dmain=SDL_main# Project: trix
2 # Makefile created by Dev-C++ 4.9.9.2
3
4 CPP = g++.exe
5 CC = i686-w64-mingw32-gcc
6 WINDRES = i686-w64-mingw32-windres
7 RES =
8 OBJ = main.o menu.o game.o $(RES)
9 LINKOBJ = main.o menu.o game.o $(RES)
10 LIBS = -L"/usr/i686-w64-mingw32/sys-root/mingw/lib" -mwindows -lmingw32 -lSDL2main -lSDL2 -lSDL2_ttf -lSDL2_image -static-libgcc
11 #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 -lSDL2_image -static-libgcc
12 INCS = -I"/usr/i686-w64-mingw32/sys-root/mingw/include" -Dmain=SDL2_main
13 #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
14 CXXINCS =
15 BIN = trix.exe
16 CXXFLAGS = $(CXXINCS) -g
17 CFLAGS = $(INCS) -g
18 RM = rm -f
19
20 .PHONY: all all-before all-after clean clean-custom
21
22 all: all-before trix.exe all-after
23
24
25 clean: clean-custom
26 ${RM} $(OBJ) $(BIN)
27
28 $(BIN): $(OBJ)
29 $(WINDRES) trix.rc -O coff -o icon.o
30 $(CC) $(LINKOBJ) -o "trix.exe" $(LIBS) icon.o
31
32 main.o: main.c
33 $(CC) -c main.c -o main.o $(CFLAGS) -DWINDOWS
34
35 menu.o: menu.c
36 $(CC) -c menu.c -o menu.o $(CFLAGS) -DWINDOWS
37
38 game.o: game.c
39 $(CC) -c game.c -o game.o $(CFLAGS) -DWINDOWS