1 ############################################################
2 # Tsunagari Tile Engine Primary Source Makefile (gnu make) #
3 ############################################################
6 ### --- BUILD SETUP --- ###
8 include Makefile.common
10 OBJECTS
= animation.o area.o area-tmx.o bitrecord.o cache-template.o \
11 character.o client-conf.o entity.o formatter.o image.o log.o main.o music.o \
12 npc.o os-windows.o overlay.o player.o python-bindings.o \
13 python-bindings-template.o python.o python-importer.o random.o reader.o \
14 script.o script-python.o sound.o string.o tile.o tiledimage.o timeout.o \
15 timer.o vec.o viewport.o window.o world.o xml.o backend-gosu
/gosu-cbuffer.o \
16 backend-gosu
/gosu-image.o backend-gosu
/gosu-tiledimage.o nbcl
/nbcl.o
18 # Name of testing world.
19 BASEDATA
= ..
/data
/base.zip
20 TESTWORLD
= ..
/data
/testing.world
22 MAC_OBJECTS
= os-mac.o
23 MAC_LDFLAGS
= -framework Foundation
-framework AppKit
28 all: tsunagari
$(BASEDATA
) $(TESTWORLD
)
31 sed
"/^### --- DO NOT DELETE THIS LINE --- ###/,$$$$d" Makefile
> Mf
32 /bin
/echo
-e
"### --- DO NOT DELETE THIS LINE --- ###\n" >> Mf
33 $(CXX
) $(CXXFLAGS
) -MM
*.
cpp | perl ..
/scripts
/filter-depend.pl
>> Mf
37 $(CXX
) -o tsunagari
$(OBJECTS
) $(LDFLAGS
)
39 tsunagari-mac
: $(OBJECTS
) $(MAC_OBJECTS
)
40 $(CXX
) -o tsunagari
$(OBJECTS
) $(MAC_OBJECTS
) $(LDFLAGS
) $(MAC_LDFLAGS
)
43 $(RM
) $(BASEDATA
) $(TESTWORLD
)
44 $(MAKE
) $(BASEDATA
) $(TESTWORLD
)
47 cd
$(basename $@
) && zip
--symlinks
-r
-0 ..
/$@
*
50 cd
$(basename $@
) && zip
--symlinks
-r
-0 ..
/$@
*
53 $(RM
) tsunagari
*.o
*/*.o
$(BASEDATA
) $(TESTWORLD
)
56 ### --- DEPENDS SECTION --- ###
58 # The following tells make when an object depends on a header so it can rebuild
59 # the object automatically. If an object isn't rebuilt it might crash the
60 # program. Generated by 'make depend'. Update if you change/add/remove
61 # a #include anywhere or if you add/remove a C++ file.
63 ### --- DO NOT DELETE THIS LINE --- ###
64 animation.o
: animation.
cpp animation.h image.h reader.h sound.h tiledimage.h \
66 area-tmx.o
: animation.h area-tmx.
cpp area-tmx.h area.h bitrecord.h \
67 cache-template.
cpp cache.h character.h client-conf.h entity.h image.h log.h \
68 music.h player.h python.h reader.h readercache.h script.h sound.h string.h \
69 tile.h tiledimage.h vec.h viewport.h window.h world.h xml.h
70 area.o
: animation.h area.
cpp area.h bitrecord.h cache-template.
cpp cache.h \
71 character.h client-conf.h entity.h formatter.h image.h log.h music.h npc.h \
72 overlay.h player.h python-bindings-template.
cpp python.h reader.h \
73 readercache.h script.h sound.h tile.h tiledimage.h vec.h viewport.h \
74 window.h world.h xml.h
75 bitrecord.o
: bitrecord.
cpp bitrecord.h window.h
76 cache-template.o
: cache-template.
cpp cache.h client-conf.h log.h vec.h \
78 character.o
: animation.h area.h character.
cpp character.h entity.h image.h \
79 reader.h script.h sound.h tile.h tiledimage.h vec.h xml.h
80 client-conf.o
: client-conf.
cpp client-conf.h log.h string.h vec.h \
82 entity.o
: animation.h area.h bitrecord.h cache-template.
cpp cache.h \
83 character.h client-conf.h entity.
cpp entity.h image.h log.h music.h \
84 player.h python-bindings-template.
cpp python.h reader.h readercache.h \
85 script.h sound.h string.h tile.h tiledimage.h vec.h viewport.h window.h \
87 formatter.o
: formatter.
cpp formatter.h
88 image.o
: image.
cpp image.h
89 log.o
: animation.h area.h bitrecord.h cache-template.
cpp cache.h character.h \
90 client-conf.h entity.h image.h log.
cpp log.h music.h os-mac.h player.h \
91 python-bindings-template.
cpp python.h reader.h readercache.h script.h \
92 sound.h tile.h tiledimage.h vec.h viewport.h window.h world.h xml.h
93 main.o
: client-conf.h image.h log.h main.
cpp os-mac.h python.h reader.h \
94 sound.h tiledimage.h vec.h window.h xml.h
95 music.o
: cache-template.
cpp cache.h client-conf.h image.h log.h music.
cpp \
96 music.h python-bindings-template.
cpp python.h reader.h readercache.h \
97 sound.h tiledimage.h vec.h window.h xml.h
98 npc.o
: animation.h area.h character.h entity.h image.h npc.
cpp npc.h \
99 reader.h script.h sound.h tile.h tiledimage.h vec.h xml.h
100 os-windows.o
: os-windows.
cpp
101 overlay.o
: animation.h area.h client-conf.h entity.h image.h log.h \
102 overlay.
cpp overlay.h reader.h script.h sound.h tile.h tiledimage.h vec.h \
104 player.o
: animation.h area.h bitrecord.h cache-template.
cpp cache.h \
105 character.h client-conf.h entity.h image.h log.h music.h player.
cpp \
106 player.h reader.h readercache.h script.h sound.h tile.h tiledimage.h vec.h \
107 viewport.h window.h world.h xml.h
108 python-bindings-template.o
: python-bindings-template.
cpp python.h
109 python-bindings.o
: animation.h area.h bitrecord.h cache-template.
cpp cache.h \
110 character.h client-conf.h entity.h image.h log.h music.h player.h \
111 python-bindings.
cpp random.h reader.h readercache.h script.h sound.h tile.h \
112 tiledimage.h timeout.h timer.h vec.h viewport.h window.h world.h xml.h
113 python-importer.o
: formatter.h image.h log.h python-importer.
cpp \
114 python-importer.h reader.h sound.h tiledimage.h xml.h
115 python.o
: client-conf.h image.h log.h python-bindings.h python-importer.h \
116 python.
cpp python.h reader.h sound.h tiledimage.h vec.h window.h xml.h
117 random.o
: python-bindings-template.
cpp python.h random.
cpp random.h
118 reader.o
: cache-template.
cpp cache.h client-conf.h formatter.h image.h log.h \
119 python-bindings-template.
cpp python.h reader.
cpp reader.h script.h sound.h \
120 tiledimage.h vec.h window.h xml.h
121 script-python.o
: image.h log.h python.h reader.h script-python.
cpp \
122 script-python.h script.h sound.h tiledimage.h xml.h
123 script.o
: script.
cpp script.h
124 sound.o
: client-conf.h image.h log.h python-bindings-template.
cpp python.h \
125 reader.h sound.
cpp sound.h tiledimage.h vec.h xml.h
126 string.o
: log.h string.
cpp string.h
127 tile.o
: animation.h area.h bitrecord.h cache-template.
cpp cache.h \
128 character.h client-conf.h entity.h formatter.h image.h log.h music.h \
129 player.h python-bindings-template.
cpp python.h reader.h readercache.h \
130 script.h sound.h string.h tile.
cpp tile.h tiledimage.h vec.h viewport.h \
131 window.h world.h xml.h
132 tiledimage.o
: image.h tiledimage.
cpp tiledimage.h
133 timeout.o
: animation.h area.h bitrecord.h cache-template.
cpp cache.h \
134 character.h client-conf.h entity.h formatter.h image.h log.h music.h \
135 player.h python-bindings-template.
cpp python.h reader.h readercache.h \
136 script.h sound.h tile.h tiledimage.h timeout.
cpp timeout.h vec.h viewport.h \
137 window.h world.h xml.h
138 timer.o
: animation.h area.h bitrecord.h cache-template.
cpp cache.h \
139 character.h client-conf.h entity.h formatter.h image.h log.h music.h \
140 player.h python-bindings-template.
cpp python.h reader.h readercache.h \
141 script.h sound.h tile.h tiledimage.h timer.
cpp timer.h vec.h viewport.h \
142 window.h world.h xml.h
144 viewport.o
: animation.h area.h entity.h image.h reader.h script.h sound.h \
145 tile.h tiledimage.h vec.h viewport.
cpp viewport.h window.h xml.h
146 window.o
: animation.h area.h bitrecord.h cache-template.
cpp cache.h \
147 character.h client-conf.h entity.h image.h log.h music.h player.h reader.h \
148 readercache.h script.h sound.h tile.h tiledimage.h vec.h viewport.h \
149 window.
cpp window.h world.h xml.h
150 world.o
: animation.h area-tmx.h area.h bitrecord.h cache-template.
cpp \
151 cache.h character.h client-conf.h entity.h image.h log.h music.h player.h \
152 python-bindings-template.
cpp python.h reader.h readercache.h script.h \
153 sound.h tile.h tiledimage.h timeout.h vec.h viewport.h window.h world.
cpp \
155 xml.o
: log.h string.h xml.
cpp xml.h