# Project: Robot Server
# 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 camera.o network.o robot.o config.o serial.o time.o utility.o compress.o joystick.o automode.o $(RES)
LINKOBJ  = display.o input.o main.o camera.o network.o robot.o config.o serial.o time.o utility.o compress.o joystick.o automode.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  = Server.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 Server.exe all-after


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

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o "Server.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)

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

network.o: network.cpp
	$(CPP) -c network.cpp -o network.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)

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

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

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

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

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

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