view immposiblerush/win32/Makefile.win @ 19:fff7215ba1e8

package for arch
author Przemyslaw <prymula76@outlook.com>
date Sun, 31 Mar 2024 16:10:46 +0200
parents 2787f5e749ae
children
line wrap: on
line source

CPP  = g++
CC   = gcc

WINDRES = windres
RES  = 
OBJ  =  wrapper.o $(RES)
LINKOBJ  = wrapper.o $(RES)
#LIBS =  -L"/lib" -lsdl -lsdl_ttf -mwindows
LIBS = -static-libgcc
INCS = 
CXXINCS =
BIN  = immposiblerush.exe
CXXFLAGS = $(CXXINCS) -g
CFLAGS = $(INCS)
RM = rm

.PHONY: all all-before all-after clean clean-custom

all: all-before immposiblerush.exe all-after 


clean: clean-custom
	${RM} $(OBJ)
	${RM} $(BIN)

	${RM}  icon.o


$(BIN): $(OBJ)
	$(WINDRES) Icon.rc -O coff -o icon.o
	$(CC) $(LINKOBJ) -o "immposiblerush.exe" $(LIBS) -mwindows icon.o

wrapper.o: wrapper.c
	$(CC) -c wrapper.c -o wrapper.o $(CFLAGS) -DNO_STDIO_REDIRECT