summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-04-01 01:02:30 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-04-01 01:02:30 +0000
commit27dadee08e63f5392c8ec2b24d6733b4e306307e (patch)
treea6d742ecf9295ad33fb4d2ae9e342e7b98c68279
parent4058ef4fc292d56e228929a98dd3667965467b69 (diff)
downloadmana-27dadee08e63f5392c8ec2b24d6733b4e306307e.tar.gz
mana-27dadee08e63f5392c8ec2b24d6733b4e306307e.tar.bz2
mana-27dadee08e63f5392c8ec2b24d6733b4e306307e.tar.xz
mana-27dadee08e63f5392c8ec2b24d6733b4e306307e.zip
Added makefile for TMXCopy by jaxad.
-rw-r--r--tools/tmxcopy/makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/tmxcopy/makefile b/tools/tmxcopy/makefile
new file mode 100644
index 00000000..36b974ae
--- /dev/null
+++ b/tools/tmxcopy/makefile
@@ -0,0 +1,18 @@
+CC=g++
+CFLAGS=-c
+LDFLAGS=`pkg-config --libs libxml-2.0`
+SOURCES=base64.cpp main.cpp map.cpp xmlutils.cpp zlibutils.cpp
+OBJECTS=$(SOURCES:.cpp=.o)
+EXECUTABLE=tmxcopy
+
+all: $(SOURCES) $(EXECUTABLE)
+ make clean
+
+$(EXECUTABLE): $(OBJECTS)
+ $(CC) $(LDFLAGS) $(OBJECTS) -o $@
+
+.cpp.o:
+ $(CC) $(CFLAGS) $< -o $@
+
+clean:
+ rm -f *.o