From 27dadee08e63f5392c8ec2b24d6733b4e306307e Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Tue, 1 Apr 2008 01:02:30 +0000 Subject: Added makefile for TMXCopy by jaxad. --- tools/tmxcopy/makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tools/tmxcopy/makefile 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 -- cgit v1.2.3-70-g09d2