<commit_before>############################################################
# Tsunagari Tile Engine Primary Source Makefile (gnu make) #
############################################################


### --- VARIABLES SECTION --- ###

# Compiler to use. (Suggested: "g++" or "clang")
CXX = g++

# Warning flags to enable.
WFLAGS = -Wall -Wextra -Wconversion
WFLAGS += -Wno-long-long # Disable warnings in Python code.

# Compiler and linker flags.
CXXFLAGS = $(BLDCFLAGS) -pipe -pedantic $(WFLAGS) \
	$(shell pkg-config --cflags python-2.7) $(shell xml2-config --cflags)
LDFLAGS = $(BLDLDFLAGS) -lboost_program_options -lboost_python -lgosu \
	-lphysfs $(shell pkg-config --libs python-2.7) $(shell xml2-config --libs)

# Name of testing world.
BASEDATA = ../data/base.zip
TESTWORLD = ../data/testing.world


### --- MAIN SECTION --- ###

all: tsunagari $(BASEDATA) $(TESTWORLD)

depend:
	@$(CXX) $(CXXFLAGS) -MM *.cpp | perl ../scripts/filter-depend.pl

tsunagari: animation.o area.o area-tmx.o client-conf.o cmd.o entity.o log.o \
	main.o music.o npc.o player.o python.o python-bindings.o random.o \
	resourcer.o scriptinst.o sound.o string.o tile.o timer.o timeout.o \
	vec.o viewport.o window.o world.o xml.o
	$(CXX) -o tsunagari *.o $(LDFLAGS)

%.zip:
	cd $(basename $@) && zip --symlinks -r -0 ../$@ *

%.world:
	cd $(basename $@) && zip --symlinks -r -0 ../$@ *

clean:
	$(RM) tsunagari *.o $(BASEDATA) $(TESTWORLD)


### --- DEPENDS SECTION --- ###

# The following tells make when an object depends on a header so it can rebuild
# the object automatically. If an object isn't rebuilt it might crash the
# program. Generated by 'make depend'. Update if you change/add/remove
# a #include anywhere or if you add/remove a C++ file.

animation.o: animation.cpp animation.h cache.h client-conf.h log.h \
 resourcer.h sound.h vec.h window.h xml.h
area-tmx.o: animation.h area-tmx.cpp area-tmx.h area.h cache.h client-conf.h \
 config.h entity.h log.h music.h player.h python.h resourcer.h scriptinst.h \
 sound.h string.h tile.h vec.h viewport.h window.h world.h xml.h
area.o: animation.h area.cpp area.h cache.h client-conf.h config.h entity.h \
 log.h music.h npc.h player.h python.h resourcer.h scriptinst.h sound.h \
 tile.h vec.h viewport.h window.h world.h xml.h<commit_msg>make depend updates Makefile automatically<commit_after>############################################################
# Tsunagari Tile Engine Primary Source Makefile (gnu make) #
############################################################


### --- VARIABLES SECTION --- ###

# Compiler to use. (Suggested: "g++" or "clang")
CXX = g++

# Warning flags to enable.
WFLAGS = -Wall -Wextra -Wconversion
WFLAGS += -Wno-long-long # Disable warnings in Python code.

# Compiler and linker flags.
CXXFLAGS = $(BLDCFLAGS) -pipe -pedantic $(WFLAGS) \
	$(shell pkg-config --cflags python-2.7) $(shell xml2-config --cflags)
LDFLAGS = $(BLDLDFLAGS) -lboost_program_options -lboost_python -lgosu \
	-lphysfs $(shell pkg-config --libs python-2.7) $(shell xml2-config --libs)

OBJECTS = animation.o area.o area-tmx.o client-conf.o cmd.o entity.o log.o \
	main.o music.o npc.o player.o python.o python-bindings.o random.o \
	resourcer.o scriptinst.o sound.o string.o tile.o timer.o timeout.o \
	vec.o viewport.o window.o world.o xml.o

# Name of testing world.
BASEDATA = ../data/base.zip
TESTWORLD = ../data/testing.world


### --- MAIN SECTION --- ###

all: tsunagari $(BASEDATA) $(TESTWORLD)

depend:
	sed "/^### --- DO NOT DELETE THIS LINE --- ###/,$$$$d" Makefile > Mf
	echo "### --- DO NOT DELETE THIS LINE --- ###\n" >> Mf
	$(CXX) $(CXXFLAGS) -MM *.cpp | perl ../scripts/filter-depend.pl >> Mf
	mv Mf Makefile

tsunagari: $(OBJECTS)
	$(CXX) -o tsunagari $(OBJECTS) $(LDFLAGS)

%.zip:
	cd $(basename $@) && zip --symlinks -r -0 ../$@ *

%.world:
	cd $(basename $@) && zip --symlinks -r -0 ../$@ *

clean:
	$(RM) tsunagari *.o $(BASEDATA) $(TESTWORLD)


### --- DEPENDS SECTION --- ###

# The following tells make when an object depends on a header so it can rebuild
# the object automatically. If an object isn't rebuilt it might crash the
# program. Generated by 'make depend'. Update if you change/add/remove
# a #include anywhere or if you add/remove a C++ file.

### --- DO NOT DELETE THIS LINE --- ###

animation.o: animation.cpp animation.h cache.h client-conf.h log.h \
 resourcer.h sound.h vec.h window.h xml.h
area-tmx.o: animation.h area-tmx.cpp area-tmx.h area.h cache.h client-conf.h \
 config.h entity.h log.h music.h player.h python.h resourcer.h scriptinst.h \
 sound.h string.h tile.h vec.h viewport.h window.h world.h xml.h
area.o: animation.h area.cpp area.h cache.h client-conf.h config.h entity.h \
 log.h music.h npc.h player.h python.h resourcer.h scriptinst.h sound.h \
 tile.h vec.h viewport.h window.h world.h xml.h
{'fraction_non_alphanumeric': 0.2028262676641729, 'fraction_numerical': 0.0033250207813798837, 'mean_word_length': 3.336036036036036, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1620065', 'n_tokens_mistral': 1749, 'n_tokens_neox': 1695, 'n_words': 513}