summaryrefslogtreecommitdiff
path: root/libphysics/Makefile
blob: 6cbabaf7675e4437a58b588cf95e780a4b2f487b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
OBJ=aabb.o\
	body.o\
	event.o\
	_map.o\
	tick.o\
	blockmap.o

CFLAGS=-I../include -g -O3 -flto

all: libphysics.a

clean:
	rm -f libphysics.a
	rm -f $(OBJ)

libphysics.a: $(OBJ)
	ar rcs $@ $^

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

.PHONY: all clean