diff options
Diffstat (limited to 'Makefile.win')
-rw-r--r-- | Makefile.win | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Makefile.win b/Makefile.win new file mode 100644 index 0000000..0676715 --- /dev/null +++ b/Makefile.win @@ -0,0 +1,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
|