summaryrefslogtreecommitdiff
path: root/tools/tmxcopy/Makefile
blob: 84aa9fc6d7cc18aaaa610ee7ee72a98b18acea37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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