diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-04-01 01:38:35 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-04-01 01:38:35 +0000 |
commit | 81bc81c04b5792f6bc71d886d49ce412ff35951b (patch) | |
tree | e8f38696cf059bc96d5e491eb30adddc81d65f92 /tools/tmxcopy | |
parent | 0bbbd488965a6d29f79075cb8c3ffde18a369a9a (diff) | |
download | mana-81bc81c04b5792f6bc71d886d49ce412ff35951b.tar.gz mana-81bc81c04b5792f6bc71d886d49ce412ff35951b.tar.bz2 mana-81bc81c04b5792f6bc71d886d49ce412ff35951b.tar.xz mana-81bc81c04b5792f6bc71d886d49ce412ff35951b.zip |
renaming makefile to Makefile
Diffstat (limited to 'tools/tmxcopy')
-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..732dec36 --- /dev/null +++ b/tools/tmxcopy/Makefile @@ -0,0 +1,18 @@ +CC=g++
+CFLAGS=-c `pkg-config --cflags libxml-2.0`
+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
|