# Project: WoU
# Makefile created by Dev-C++ 4.9.9.2

CPP  = g++.exe -D__DEBUG__
CC   = gcc.exe -D__DEBUG__
WINDRES = windres.exe
RES  = WoU_private.res
OBJ  = display.o log.o main_wou.o sound.o player.o person.o map.o common.o dbparser.o $(RES)
LINKOBJ  = display.o log.o main_wou.o sound.o player.o person.o map.o common.o dbparser.o $(RES)
LIBS =  -L"F:/Dev-Cpp/lib" -mwindows -mwindows -lalleg_s -lgdi32 -ldxguid -lole32 -ldinput -lddraw -lwinmm -ldsound  -g3 
INCS =  -I"F:/Dev-Cpp/include" 
CXXINCS =  -I"F:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"F:/Dev-Cpp/include/c++/3.4.2/backward"  -I"F:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"F:/Dev-Cpp/include/c++/3.4.2"  -I"F:/Dev-Cpp/include" 
BIN  = WoU.exe
CXXFLAGS = $(CXXINCS) -Wno-deprecated   -g3
CFLAGS = $(INCS) -DALLEGRO_STATICLINK   -g3
RM = rm -f

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

all: all-before WoU.exe all-after


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

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

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

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

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

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

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

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

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

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

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

WoU_private.res: WoU_private.rc game.rc 
	$(WINDRES) -i WoU_private.rc --input-format=rc -o WoU_private.res -O coff 
