diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-04-01 01:02:30 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-04-01 01:02:30 +0000 |
commit | 27dadee08e63f5392c8ec2b24d6733b4e306307e (patch) | |
tree | a6d742ecf9295ad33fb4d2ae9e342e7b98c68279 /tools | |
parent | 4058ef4fc292d56e228929a98dd3667965467b69 (diff) | |
download | mana-27dadee08e63f5392c8ec2b24d6733b4e306307e.tar.gz mana-27dadee08e63f5392c8ec2b24d6733b4e306307e.tar.bz2 mana-27dadee08e63f5392c8ec2b24d6733b4e306307e.tar.xz mana-27dadee08e63f5392c8ec2b24d6733b4e306307e.zip |
Added makefile for TMXCopy by jaxad.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/tmxcopy/makefile | 18 |
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
|