areas: lower doors connect
[Tsunagari.git] / src / Makefile
blob8ddd76236115b5e2e0f6271ce8ef72bdc2d19170
1 ############################################################
2 # Tsunagari Tile Engine primary source Makefile (gnu make) #
3 ############################################################
5 ### --- VARIABLES SECTION --- ###
7 # Warning flags to enable.
8 WFLAGS = -Wall -Wextra -Wconversion -Wno-missing-field-initializers
10 # Libraries to include.
11 LIBS = -lgosu -lzip -lboost_program_options `xml2-config --libs`
13 # Compiler and linker flags.
14 CXXFLAGS = -g -pedantic -ansi $(WFLAGS) `xml2-config --cflags`
15 LDFLAGS = -g $(LIBS)
17 # Compiler to use. (Suggested: "g++" or "clang")
18 CXX = g++
20 # Name of testing world.
21 TESTWORLD = babysfirst
23 ### --- MAIN SECTION --- ###
25 all: tsunagari testworld
27 tsunagari: area.o cmd.o common.o entity.o log.o main.o resourcer.o sprite.o window.o world.o
28 $(CXX) -o tsunagari *.o $(LDFLAGS)
30 testworld: $(TESTWORLD).world
32 $(TESTWORLD).world: $(TESTWORLD)/*
33 cd $(TESTWORLD) && zip -0 ../$(TESTWORLD).world *
35 .PHONY: doc
36 doc:
37 cd ../doc && doxygen
39 clean:
40 $(RM) tsunagari *.o $(TESTWORLD).world && $(RM) -r ../doc/html