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