-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
22 lines (15 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
GCC_FOLDER=${MINGW730_PATH}
LIBS=-lsfml-graphics -lsfml-window -lsfml-system -lsfml-network
CXX=$(GCC_FOLDER)\bin\g++.exe
LIB_DIR=$(GCC_FOLDER)\lib
HEADER_DIR=$(GCC_FOLDER)\include
all: BlackHole.o MapBuilder.o RegistrationSuggest.o FireMan.o FireBall.o Spikes.o GameSprites.o GameTextures.o GameManager.o Unit.o AnimatedSprite.o MapObject.o Dungeon.o Zombie.o GameRoom.o
$(CXX) main.cpp $^ -I $(HEADER_DIR) -I "include" -mwindows -L $(LIB_DIR) $(LIBS) -o main.exe
debug: BlackHole-debug.o MapBuilder-debug.o RegistrationSuggest-debug.o FireMan-debug.o FireBall-debug.o Spikes-debug.o GameSprites-debug.o GameTextures-debug.o GameManager-debug.o Unit-debug.o AnimatedSprite-debug.o MapObject-debug.o Dungeon-debug.o Zombie-debug.o GameRoom-debug.o
$(CXX) -g main.cpp $^ -I $(HEADER_DIR) -I "include" -mwindows -L $(LIB_DIR) $(LIBS) -o main-debug.exe
%-debug.o: src/%.cpp
$(CXX) -g -c $< -I $(HEADER_DIR) -I "include" -mwindows -L $(LIB_DIR) $(LIBS) -o $@
%.o: src/%.cpp
$(CXX) -c $< -I $(HEADER_DIR) -I "include" -mwindows -L $(LIB_DIR) $(LIBS) -o $@
clean:
del *.o