CRASH: player initial phase missing
[Tsunagari.git] / src / Makefile
blobd694017c42ccc4019ce9cfb76422cc5a57437060
1 ############################################################
2 # Tsunagari Tile Engine Primary Source Makefile (gnu make) #
3 ############################################################
6 ### --- VARIABLES SECTION --- ###
8 # Compiler to use. (Suggested: "g++" or "clang")
9 CXX = g++
11 # Warning flags to enable.
12 WFLAGS = -Wall -Wextra -Wconversion
13 WFLAGS += -Wno-long-long # Disable warnings in Python code.
15 # Compiler and linker flags.
16 CXXFLAGS = $(BLDCFLAGS) -pipe -pedantic $(WFLAGS) \
17 $(shell pkg-config --cflags python-2.7) $(shell xml2-config --cflags)
18 LDFLAGS = $(BLDLDFLAGS) -lboost_program_options -lboost_python -lgosu \
19 -lphysfs $(shell pkg-config --libs python-2.7) $(shell xml2-config --libs)
21 OBJECTS = animation.o area.o area-tmx.o bitrecord.o character.o client-conf.o \
22 nbcl/nbcl.o entity.o log.o main.o music.o npc.o overlay.o player.o \
23 python.o python-bindings.o random.o resourcer.o scriptinst.o sound.o \
24 string.o tile.o timer.o timeout.o vec.o viewport.o window.o world.o \
25 xml.o
27 # Name of testing world.
28 BASEDATA = ../data/base.zip
29 TESTWORLD = ../data/testing.world
32 ### --- MAIN SECTION --- ###
34 all: tsunagari $(BASEDATA) $(TESTWORLD)
36 depend:
37 sed "/^### --- DO NOT DELETE THIS LINE --- ###/,$$$$d" Makefile > Mf
38 echo "### --- DO NOT DELETE THIS LINE --- ###\n" >> Mf
39 $(CXX) $(CXXFLAGS) -MM *.cpp | perl ../scripts/filter-depend.pl >> Mf
40 mv Mf Makefile
42 tsunagari: $(OBJECTS)
43 $(CXX) -o tsunagari $(OBJECTS) $(LDFLAGS)
45 %.zip:
46 cd $(basename $@) && zip --symlinks -r -0 ../$@ *
48 %.world:
49 cd $(basename $@) && zip --symlinks -r -0 ../$@ *
51 clean:
52 $(RM) tsunagari *.o $(BASEDATA) $(TESTWORLD)
55 ### --- DEPENDS SECTION --- ###
57 # The following tells make when an object depends on a header so it can rebuild
58 # the object automatically. If an object isn't rebuilt it might crash the
59 # program. Generated by 'make depend'. Update if you change/add/remove
60 # a #include anywhere or if you add/remove a C++ file.
62 ### --- DO NOT DELETE THIS LINE --- ###\n
63 animation.o: animation.cpp animation.h cache.h client-conf.h log.h \
64 resourcer.h sound.h vec.h window.h xml.h
65 area.o: animation.h area.cpp area.h bitrecord.h cache.h character.h \
66 client-conf.h entity.h log.h music.h npc.h overlay.h player.h python.h \
67 resourcer.h scriptinst.h sound.h tile.h vec.h viewport.h window.h world.h \
68 xml.h
69 area-tmx.o: animation.h area-tmx.cpp area-tmx.h area.h bitrecord.h cache.h \
70 character.h client-conf.h entity.h log.h music.h player.h python.h \
71 resourcer.h scriptinst.h sound.h string.h tile.h vec.h viewport.h window.h \
72 world.h xml.h
73 bitrecord.o: bitrecord.cpp bitrecord.h window.h
74 character.o: animation.h area.h cache.h character.cpp character.h \
75 client-conf.h entity.h log.h music.h player.h python.h resourcer.h \
76 scriptinst.h sound.h tile.h vec.h viewport.h window.h xml.h
77 client-conf.o: client-conf.cpp client-conf.h log.h string.h vec.h \
78 nbcl/nbcl.h
79 entity.o: animation.h area.h bitrecord.h cache.h character.h client-conf.h \
80 entity.cpp entity.h log.h music.h player.h python.h resourcer.h \
81 scriptinst.h sound.h tile.h vec.h viewport.h window.h world.h xml.h
82 log.o: animation.h bitrecord.h cache.h character.h client-conf.h entity.h \
83 log.cpp log.h player.h python.h resourcer.h scriptinst.h sound.h tile.h \
84 vec.h viewport.h window.h world.h xml.h
85 main.o: client-conf.h log.h main.cpp python.h vec.h window.h
86 music.o: cache.h client-conf.h log.h music.cpp music.h python.h resourcer.h \
87 sound.h vec.h window.h xml.h
88 npc.o: animation.h area.h cache.h character.h client-conf.h entity.h log.h \
89 music.h npc.cpp npc.h player.h python.h resourcer.h scriptinst.h sound.h \
90 tile.h vec.h viewport.h window.h xml.h
91 os-windows.o: os-windows.cpp
92 overlay.o: animation.h area.h cache.h character.h client-conf.h entity.h \
93 log.h music.h overlay.cpp overlay.h player.h python.h resourcer.h \
94 scriptinst.h sound.h tile.h vec.h viewport.h window.h xml.h
95 player.o: animation.h area.h bitrecord.h cache.h character.h client-conf.h \
96 entity.h log.h music.h player.cpp player.h python.h resourcer.h \
97 scriptinst.h sound.h tile.h vec.h viewport.h window.h world.h xml.h
98 python-bindings.o: animation.h area.h bitrecord.h cache.h character.h \
99 client-conf.h entity.h log.h music.h player.h python-bindings.cpp python.h \
100 random.h resourcer.h scriptinst.h sound.h tile.h timeout.h timer.h vec.h \
101 viewport.h window.h world.h xml.h
102 python.o: cache.h client-conf.h log.h python-bindings.h python.cpp python.h \
103 resourcer.h sound.h vec.h window.h xml.h
104 random.o: python.h random.cpp random.h
105 resourcer.o: cache.h client-conf.h log.h python.h resourcer.cpp resourcer.h \
106 sound.h vec.h window.h xml.h
107 scriptinst.o: cache.h client-conf.h log.h python.h resourcer.h \
108 scriptinst.cpp scriptinst.h sound.h vec.h window.h xml.h
109 sound.o: cache.h client-conf.h log.h python.h resourcer.h sound.cpp sound.h \
110 vec.h window.h xml.h
111 string.o: string.cpp string.h
112 tile.o: animation.h area.h bitrecord.h cache.h character.h client-conf.h \
113 entity.h log.h music.h player.h python-optional.h python.h resourcer.h \
114 scriptinst.h sound.h string.h tile.cpp tile.h vec.h viewport.h window.h \
115 world.h xml.h
116 timeout.o: animation.h bitrecord.h cache.h character.h client-conf.h \
117 entity.h log.h player.h python.h resourcer.h scriptinst.h sound.h tile.h \
118 timeout.cpp timeout.h vec.h viewport.h window.h world.h xml.h
119 timer.o: animation.h bitrecord.h cache.h character.h client-conf.h entity.h \
120 log.h player.h python.h resourcer.h scriptinst.h sound.h tile.h timer.cpp \
121 timer.h vec.h viewport.h window.h world.h xml.h
122 vec.o: vec.cpp vec.h
123 viewport.o: animation.h area.h cache.h character.h client-conf.h entity.h \
124 log.h music.h player.h python.h resourcer.h scriptinst.h sound.h tile.h \
125 vec.h viewport.cpp viewport.h window.h xml.h
126 window.o: animation.h bitrecord.h cache.h character.h client-conf.h entity.h \
127 log.h player.h python.h resourcer.h scriptinst.h sound.h tile.h vec.h \
128 viewport.h window.cpp window.h world.h xml.h
129 world.o: animation.h area-tmx.h area.h bitrecord.h cache.h character.h \
130 client-conf.h entity.h log.h music.h player.h python.h resourcer.h \
131 scriptinst.h sound.h tile.h timeout.h vec.h viewport.h window.h world.cpp \
132 world.h xml.h
133 xml.o: log.h string.h xml.cpp xml.h