summaryrefslogtreecommitdiff
path: root/experimental/tectonics/Makefile
blob: 13f48fc867e24ca3372c68c554a2fc64b0ef697a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
CC=gcc
CFLAGS=-lm `pkg-config --cflags --libs cairo` -ggdb
DEPS=tectonics.h

%.o: %.c $(DEPS)
	$(CC) -c -o $@ $< $(CFLAGS)

all: world.o util.o main.o quadtree.o drawing.o logging.o
		$(CC) -o tectonics world.o util.o main.o logging.o quadtree.o drawing.o $(CFLAGS)

test: all quadtree.o quadtree.test.o tests.o
		$(CC) -o tests world.o util.o quadtree.o quadtree.test.o tests.o $(CFLAGS)