File: Makefile

package info (click to toggle)
mana 0.7.0-2
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 18,068 kB
  • sloc: cpp: 73,403; sh: 6,362; ansic: 5,162; xml: 1,509; makefile: 422; java: 141; php: 127
file content (24 lines) | stat: -rw-r--r-- 655 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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 tmxcollide

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 $@

tmxcollide: tmxcollide.o $(OBJECTS_UTILS)
	$(CC) $(LDFLAGS) tmxcollide.o $(OBJECTS_UTILS) -o $@

.cpp.o:
	$(CC) $(CFLAGS) $< -o $@

clean:
	rm -f *.o