From 89656e1787faf956c3c122693edc7bb00b1908a3 Mon Sep 17 00:00:00 2001 From: Przemyslaw Date: Mon, 1 Apr 2024 08:55:31 +0200 Subject: Init --- Makefile.win | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Makefile.win (limited to 'Makefile.win') 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 -- cgit v1.2.3