aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index d37a3a1..14ec6f7 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,17 @@
1CC=clang 1CC=clang
2CFLAGS=-Wall -g
2 3
4BINS = vector.o libvector.a main test
5all: $(BINS)
3 6
4main: main.c 7vector.o: vector.h libvector.c
5 gcc main.c -o main 8 $(CC) $(CFLAGS) -c libvector.c
9
10libvector.a: libvector.o
11 ar -cvq libvector.a libvector.o
12
13main: main.c libvector.a
14 $(CC) $(CFLAGS) -o $@ $^
15
16test: test.c
17 gcc test.c -o test -lcriterion