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