aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 14ec6f7a119dd200747f3e613bc546e1ef8bcaf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CC=clang
CFLAGS=-Wall -g

BINS = vector.o libvector.a main test
all: $(BINS)

vector.o: vector.h libvector.c
	$(CC) $(CFLAGS) -c libvector.c

libvector.a: libvector.o
	ar -cvq libvector.a libvector.o

main: main.c libvector.a
	$(CC) $(CFLAGS) -o $@ $^

test: test.c
	gcc test.c -o test -lcriterion