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

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  = 
OBJ  = display.o input.o main.o window.o network.o image.o decompress.o robot.o config.o timer.o target.o joystick.o $(RES)
LINKOBJ  = display.o input.o main.o window.o network.o image.o decompress.o robot.o config.o timer.o target.o joystick.o $(RES)
LIBS =  -L"C:/Dev-Cpp/lib" -mwindows -lvfw32 -lwsock32 -lwinmm C:/Dev-Cpp/lib/libjpeg.dll.a  -march=pentium-mmx -mmmx 
INCS =  -I"C:/Dev-Cpp/include" 
CXXINCS =  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include" 
BIN  = Client.exe
CXXFLAGS = $(CXXINCS)   -fexpensive-optimizations -O3 -march=pentium-mmx -mmmx
CFLAGS = $(INCS)   -fexpensive-optimizations -O3 -march=pentium-mmx -mmmx
RM = rm -f

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

all: all-before Client.exe all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

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

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

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

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

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

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

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

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

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

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

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

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

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