-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
37 lines (24 loc) · 1.08 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
ROOT = ../..
include $(ROOT)/common/Makefile.common
BINS = $(BINDIR)/lf-bst-howley
PROF = $(ROOT)/src
.PHONY: all clean
all: main
measurements.o:
$(CC) $(CFLAGS) -c -o $(BUILDIR)/measurements.o $(PROF)/measurements.c
ssalloc.o:
$(CC) $(CFLAGS) -c -o $(BUILDIR)/ssalloc.o $(PROF)/ssalloc.c
bst_howley.o:
$(CC) $(CFLAGS) -c -o $(BUILDIR)/bst_howley.o bst_howley.c
bst_howley_test.o: bst_howley.h
$(CC) $(CFLAGS) -c -o $(BUILDIR)/bst_howley_test.o bst_howley_test.c
bst_howley_test_scalability.o: bst_howley.h
$(CC) $(CFLAGS) -c -o $(BUILDIR)/bst_howley_test_scalability.o bst_howley_test_scalability.c
correctness: measurements.o ssalloc.o bst_howley.o bst_howley_test.o
$(CC) $(CFLAGS) $(BUILDIR)/measurements.o $(BUILDIR)/ssalloc.o $(BUILDIR)/bst_howley.o $(BUILDIR)/bst_howley_test.o -o $(BINS) $(LDFLAGS)
test.o: bst_howley.h
$(CC) $(CFLAGS) -c -o $(BUILDIR)/test.o $(TEST_FILE)
main: measurements.o ssalloc.o bst_howley.o test.o
$(CC) $(CFLAGS) $(BUILDIR)/measurements.o $(BUILDIR)/ssalloc.o $(BUILDIR)/bst_howley.o $(BUILDIR)/test.o -o $(BINS) $(LDFLAGS)
clean:
-rm -f $(BINS)