create Script class
[Tsunagari.git] / src / Makefile
blob33f99efa0ee0ebdfcbd180bdd43ecf1cd93a1774
1 ############################################################
2 # Tsunagari Tile Engine primary source Makefile (gnu make) #
3 ############################################################
5 ### --- VARIABLES SECTION --- ###
7 # Warning flags to enable.
8 WFLAGS = -Wall -Wextra -Wconversion
10 # Libraries to include.
11 LIBS = -lgosu -lzip -lboost_program_options `xml2-config --libs` `pkg-config --libs lua5.1`
13 # Compiler and linker flags.
14 CXXFLAGS = -g -pedantic -ansi $(WFLAGS) `xml2-config --cflags` `pkg-config --cflags lua5.1`
15 LDFLAGS = -g $(LIBS)
17 # Compiler to use. (Suggested: "g++" or "clang")
18 CXX = g++
20 # Name of testing world.
21 TESTWORLD = babysfirst.world
23 ### --- MAIN SECTION --- ###
25 all: tsunagari $(TESTWORLD)
27 tsunagari: animation.o area.o cmd.o common.o entity.o entity-lua.o log.o main.o player.o resourcer.o script.o window.o world.o
28 $(CXX) -o tsunagari *.o $(LDFLAGS)
30 %.world: %/*
31 cd $(basename $@) && zip -0 ../$@ *
33 .PHONY: doc
34 doc:
35 cd ../doc && doxygen
37 clean:
38 $(RM) tsunagari *.o $(TESTWORLD) && $(RM) -r ../doc/html