summaryrefslogtreecommitdiff
path: root/wrapper-icon/Makefile.win
diff options
context:
space:
mode:
authorPrzemyslaw <prymula76@outlook.com>2024-04-01 09:10:43 +0200
committerPrzemyslaw <prymula76@outlook.com>2024-04-01 09:10:43 +0200
commit74a88f882ea83593d727e7031e20791349c013cd (patch)
tree52a6f3893db6bf3c34de11d1e692ad5957c7bcb3 /wrapper-icon/Makefile.win
Diffstat (limited to 'wrapper-icon/Makefile.win')
-rw-r--r--wrapper-icon/Makefile.win36
1 files changed, 36 insertions, 0 deletions
diff --git a/wrapper-icon/Makefile.win b/wrapper-icon/Makefile.win
new file mode 100644
index 0000000..1dfb90f
--- /dev/null
+++ b/wrapper-icon/Makefile.win
@@ -0,0 +1,36 @@
+CPP = g++.exe
+CC = i686-w64-mingw32-g++
+
+WINDRES = i686-w64-mingw32-windres
+RES =
+OBJ = wrapper.o $(RES)
+LINKOBJ = wrapper.o $(RES)
+#LIBS = -L"/lib" -lsdl -lsdl_ttf -mwindows
+LIBS = -static-libgcc
+INCS =
+CXXINCS =
+BIN = wrapper.exe
+CXXFLAGS = $(CXXINCS) -g
+CFLAGS = $(INCS)
+RM = rm
+
+.PHONY: all all-before all-after clean clean-custom
+
+all: all-before wrapper.exe all-after
+
+
+clean: clean-custom
+ ${RM} $(OBJ)
+ ${RM} $(BIN)
+
+ $(WINDRES) Jttt.rc Jttt.res
+
+
+$(BIN): $(OBJ)
+ $(WINDRES) Jttt.rc -O coff -o icon.o
+ $(CC) $(LINKOBJ) -o "wrapper.exe" $(LIBS) icon.o
+
+wrapper.o: wrapper.c
+ $(CC) -c wrapper.c -o wrapper.o $(CFLAGS) -DNO_STDIO_REDIRECT
+
+