-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
25 lines (18 loc) · 679 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
CC=/usr/bin/clang
CFLAGS=-pedantic -Wall -Wextra -std=c99 -g
# Why murmur3_32.o is not in OBJS?
OBJS=args.o json.o hashmap.o dynarray.o dynarray2.o tokenize.o parse.o serialize.o util.o murmur3_32.o read_file.o
json: $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o json.out
dynarray_test: dynarray_test.c dynarray.o util.o
$(CC) $(CFLAGS) -o [email protected] $^
dynarray2_test: dynarray2_test.c dynarray2.o util.o testlib.o
$(CC) $(CFLAGS) -o [email protected] $^
hashmap_test: hashmap_test.c hashmap.o murmur3_32.o util.o testlib.o
$(CC) $(CFLAGS) -o [email protected] $^
args_test: args_test.c args.o testlib.o
$(CC) $(CFLAGS) -o [email protected] $^
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -rf *.out *.o *.dSYM