-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (23 loc) · 853 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# For Windows:
# debug: console window will appear alongside game window
# release: Only the game window will appear
CSOURCE = Main.cc Game.cc tile.cc parser.cc Logger.cc button.cc FileHandler.cc menu.cc
EXENAME = Game_Engine
SOURCEDIR = src
OBJDIR = obj
SOURCEFILES = $(CSOURCE:%=$(SOURCEDIR)/%)
OBJECTS = $(CSOURCE:%.cc=$(OBJDIR)/%.o)
APPLEFRAMEWORKS = -framework OpenGL -framework SFML -framework SFML-graphics -framework SFML-window -framework SFML-system -framework SFML-audio
GCC = g++ -g -O0 -Wall -Wextra -std=gnu++0x
EXECBIN = game
apple: $(EXECBIN)
@echo "\n=====================\n Compile Success\n=====================\n"
$(EXECBIN): $(OBJECTS)
$(GCC) -o $(EXECBIN) $(APPLEFRAMEWORKS) $(OBJECTS)
$(OBJDIR)/%.o: $(SOURCEDIR)/%.cc
$(GCC) -c -o $@ $<
clean:
- rm obj/*.o
- rm $(EXECBIN)
- rm -r *~
- rm log.*