diff options
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..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
|