diff trix/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/trix/Makefile.win	Thu Sep 21 22:33:57 2023 +0200
@@ -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