-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.win
36 lines (27 loc) · 1.56 KB
/
Makefile.win
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
# Project: winboxrun
# Makefile created by Dev-C++ 5.11
CPP = g++.exe
CC = gcc.exe
WINDRES = windres.exe
RES = winboxrun-win_private.res
OBJ = winboxrun.o url_parser.o $(RES)
LINKOBJ = winboxrun.o url_parser.o $(RES)
LIBS = -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib32" -L"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/lib32" -static-libgcc -mwindows -m32 -mwindows -s
INCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include"
CXXINCS = -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/x86_64-w64-mingw32/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include" -I"C:/Program Files (x86)/Dev-Cpp/MinGW64/lib/gcc/x86_64-w64-mingw32/4.9.2/include/c++"
BIN = winboxrun.exe
CXXFLAGS = $(CXXINCS) -Os -m32 -mwindows
CFLAGS = $(INCS) -Os -m32 -mwindows
RM = rm.exe -f
.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after
clean: clean-custom
${RM} $(OBJ) $(BIN)
$(BIN): $(OBJ)
$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS)
winboxrun.o: winboxrun.c
$(CPP) -c winboxrun.c -o winboxrun.o $(CXXFLAGS)
url_parser.o: url_parser.c
$(CPP) -c url_parser.c -o url_parser.o $(CXXFLAGS)
winboxrun-win_private.res: winboxrun-win_private.rc
$(WINDRES) -i winboxrun-win_private.rc -F pe-i386 --input-format=rc -o winboxrun-win_private.res -O coff