summaryrefslogtreecommitdiff
path: root/MINGW32/Makefile.mingw32
blob: 3349abc50d41f512c78fc1d83f397ad39ef36473 (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
34
35
36
CPP  = i686-w64-mingw32-g++
CC   = i686-w64-mingw32-gcc

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  = colorsmemory.exe
CXXFLAGS = $(CXXINCS) -g
CFLAGS = $(INCS)
RM = rm

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

all: all-before colorsmemory.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 "colorsmemory.exe" $(LIBS) -mwindows icon.o

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