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