summaryrefslogtreecommitdiff
path: root/wrapper-icon/Makefile.old.win
blob: 107331fab4aea9f2c25cfc947a7153d6f4d056f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CPP  = g++.exe
CC   = gcc.exe

WINDRES = windres.exe
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)


$(BIN): $(OBJ)
	$(CC) $(LINKOBJ) -o "wrapper.exe" $(LIBS)

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