Makefile.win 3.13 KB
Newer Older
Ken Herbert's avatar
Ken Herbert committed
1 2 3
# Project: IPFinder
# Compiler: Default GCC compiler
# Compiler Type: MingW 3
Ken Herbert's avatar
Ken Herbert committed
4
# Makefile created by wxDev-C++ IDE 7.4.2.569 on 08/04/14 22:06
Ken Herbert's avatar
Ken Herbert committed
5 6 7 8 9

WXLIBNAME = wxmsw29u
CPP       = g++.exe
CC        = gcc.exe
WINDRES   = "windres.exe"
Ken Herbert's avatar
Ken Herbert committed
10 11
OBJ       = Objects/MingW/IPFinderApp.o Objects/MingW/IPFinderFrm.o Objects/MingW/LookupThread.o Objects/MingW/CheckForUpdatesThread.o Objects/MingW/StandardTextCtrl.o Objects/MingW/IPFinder_private.res
LINKOBJ   = "Objects/MingW/IPFinderApp.o" "Objects/MingW/IPFinderFrm.o" "Objects/MingW/LookupThread.o" "Objects/MingW/CheckForUpdatesThread.o" "Objects/MingW/StandardTextCtrl.o" Objects/MingW/IPFinder_private.res
Ken Herbert's avatar
Ken Herbert committed
12 13 14 15
LIBS      = -L"C:/Program Files (x86)/Dev-Cpp/lib/wx/gcc_lib" -L"C:/Program Files (x86)/Dev-Cpp/lib" -L"C:/Program Files (x86)/Dev-Cpp/MinGW32/lib" -mwindows -l$(WXLIBNAME) -l$(WXLIBNAME)_gl -lwxscintilla -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregexu -lwxexpat -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32 -lodbc32 -lopengl32 "C:/Program Files (x86)/Dev-Cpp/MinGW32/lib/libws2_32.a"  -g3 
INCS      = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include"
CXXINCS   = -I"C:/Program Files (x86)/Dev-Cpp/MinGW32/include" -I"C:/Program Files (x86)/Dev-Cpp/" -I"C:/Program Files (x86)/Dev-Cpp/include/common"
RCINCS    = --include-dir "C:/PROGRA~2/Dev-Cpp/include/common"
Ken Herbert's avatar
Ken Herbert committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
BIN       = Output/MingW/IPFinder.exe
DEFINES   = -D__WXMSW__ -D__GNUWIN32__ -D_UNICODE
CXXFLAGS  = $(CXXINCS) $(DEFINES)   -fexpensive-optimizations -O3 -g3
CFLAGS    = $(INCS) $(DEFINES)   -fexpensive-optimizations -O3 -g3
GPROF     = gprof.exe
ifeq ($(OS),Windows_NT)
   RM = del /Q
   FixPath = $(subst /,\,$1)
else
   RM = rm -f
   FixPath = $1
endif
LINK      = g++.exe

.PHONY: all all-before all-after clean clean-custom
all: all-before $(BIN) all-after

clean: clean-custom
	$(RM) $(call FixPath,$(LINKOBJ)) "$(call FixPath,$(BIN))"

$(BIN): $(OBJ)
	$(LINK) $(LINKOBJ) -o "$(BIN)" $(LIBS) 

Ken Herbert's avatar
Ken Herbert committed
39
Objects/MingW/IPFinderApp.o: $(GLOBALDEPS) IPFinderApp.cpp IPFinderApp.h IPFinderFrm.h StandardTextCtrl.h
Ken Herbert's avatar
Ken Herbert committed
40 41
	$(CPP) -c IPFinderApp.cpp -o Objects/MingW/IPFinderApp.o $(CXXFLAGS)

Ken Herbert's avatar
Ken Herbert committed
42
Objects/MingW/IPFinderFrm.o: $(GLOBALDEPS) IPFinderFrm.cpp IPFinderFrm.h StandardTextCtrl.h LookupThread.h CheckForUpdatesThread.h Objects/MingW/IPFinder_private.h
Ken Herbert's avatar
Ken Herbert committed
43 44 45 46 47
	$(CPP) -c IPFinderFrm.cpp -o Objects/MingW/IPFinderFrm.o $(CXXFLAGS)

Objects/MingW/LookupThread.o: $(GLOBALDEPS) LookupThread.cpp LookupThread.h
	$(CPP) -c LookupThread.cpp -o Objects/MingW/LookupThread.o $(CXXFLAGS)

Ken Herbert's avatar
Ken Herbert committed
48 49 50 51 52 53
Objects/MingW/CheckForUpdatesThread.o: $(GLOBALDEPS) CheckForUpdatesThread.cpp Objects/MingW/IPFinder_private.h CheckForUpdatesThread.h
	$(CPP) -c CheckForUpdatesThread.cpp -o Objects/MingW/CheckForUpdatesThread.o $(CXXFLAGS)

Objects/MingW/StandardTextCtrl.o: $(GLOBALDEPS) StandardTextCtrl.cpp StandardTextCtrl.h
	$(CPP) -c StandardTextCtrl.cpp -o Objects/MingW/StandardTextCtrl.o $(CXXFLAGS)

Ken Herbert's avatar
Ken Herbert committed
54 55
Objects/MingW/IPFinder_private.res: Objects/MingW/IPFinder_private.rc IPFinderApp.rc 
	$(WINDRES) --input-format=rc -o Objects/MingW/IPFinder_private.res $(RCINCS) Objects/MingW/IPFIND~1.RC -O coff