summaryrefslogtreecommitdiff
path: root/tools/tmxcopy/Makefile
blob: 732dec362af8dda629484e65010c3b23c2c7c96d (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