summaryrefslogtreecommitdiff
path: root/tools/tmxcopy/Makefile
blob: 402e9e4bf5270732bb155bc87748888fba071928 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
CC=g++
CFLAGS=-g -ggdb -O0 -Wall -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