aboutsummaryrefslogtreecommitdiffstats
path: root/turff/Makefile
blob: 1664c59a41cc306ef8c8643f455c31b1d5f2b14b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CFLAGS=-g -I. -I../
LDFLAGS=-lm
DEPS = turff_api.h ../globals.h ../utils.h
OBJ = turff.o turff_api.o ../utils.o ../globals.o

all: turff

debug: DFLAGS=-DDBG
debug: clean turff

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

turff: $(OBJ)
	$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)

.PHONY: clean
clean:
	rm -rf $(OBJ) turff