# Project: Robot Control Client
# Makefile created by Dev-C++ 4.9.9.0

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  = client_private.res
OBJ  = network.o display.o window.o client.o key.o camera.o decompress.o mouse.o target.o log.o $(RES)
LINKOBJ  = network.o display.o window.o client.o key.o camera.o decompress.o mouse.o target.o log.o $(RES)
LIBS =  -L"C:/progra~1/Dev-Cpp/lib" -mwindows -lwsock32 -ljpeg  -s -march=i686 -mmmx 
INCS =  -I"C:/progra~1/Dev-Cpp/include" 
CXXINCS =  -I"C:/progra~1/Dev-Cpp/include/c++/3.3.1"  -I"C:/progra~1/Dev-Cpp/include/c++/3.3.1/mingw32"  -I"C:/progra~1/Dev-Cpp/include/c++/3.3.1/backward"  -I"C:/progra~1/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include"  -I"C:/progra~1/Dev-Cpp/include" 
BIN  = client.exe
CXXFLAGS = $(CXXINCS)   -fexpensive-optimizations -O1 -march=i686 -mmmx
CFLAGS = $(INCS)   -fexpensive-optimizations -O1 -march=i686 -mmmx

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

all: all-before client.exe all-after


clean: clean-custom
	rm -f $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o "client.exe" $(LIBS)

network.o: network.cpp
	$(CPP) -c network.cpp -o network.o $(CXXFLAGS)

display.o: display.cpp
	$(CPP) -c display.cpp -o display.o $(CXXFLAGS)

window.o: window.cpp
	$(CPP) -c window.cpp -o window.o $(CXXFLAGS)

client.o: client.cpp
	$(CPP) -c client.cpp -o client.o $(CXXFLAGS)

key.o: key.cpp
	$(CPP) -c key.cpp -o key.o $(CXXFLAGS)

camera.o: camera.cpp
	$(CPP) -c camera.cpp -o camera.o $(CXXFLAGS)

decompress.o: decompress.cpp
	$(CPP) -c decompress.cpp -o decompress.o $(CXXFLAGS)

mouse.o: mouse.cpp
	$(CPP) -c mouse.cpp -o mouse.o $(CXXFLAGS)

target.o: target.cpp
	$(CPP) -c target.cpp -o target.o $(CXXFLAGS)

log.o: log.cpp
	$(CPP) -c log.cpp -o log.o $(CXXFLAGS)

client_private.res: client_private.rc client.rc 
	$(WINDRES) -i client_private.rc -I rc -o client_private.res -O coff 
