blob: 975e19805136eb2b28da54647749d5b84be0a25f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
CC=g++
CFLAGS=-g -ggdb -O0 -Wall -c `pkg-config --cflags libxml-2.0`
LDFLAGS=`pkg-config --libs libxml-2.0`
SOURCES_UTILS=base64.cpp map.cpp xmlutils.cpp zlibutils.cpp
OBJECTS_UTILS=$(SOURCES_UTILS:.cpp=.o)
EXECUTABLES=tmxcopy tmx_random_fill
all: $(SOURCES_UTILS) $(EXECUTABLES)
make clean
tmxcopy: tmxcopy.o $(OBJECTS_UTILS)
$(CC) $(LDFLAGS) tmxcopy.o $(OBJECTS_UTILS) -o $@
tmx_random_fill: tmx_random_fill.o $(OBJECTS_UTILS)
$(CC) $(LDFLAGS) tmx_random_fill.o $(OBJECTS_UTILS) -o $@
.cpp.o:
$(CC) $(CFLAGS) $< -o $@
clean:
rm -f *.o
|