-
Notifications
You must be signed in to change notification settings - Fork 42
/
Makefile
55 lines (38 loc) · 1.56 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
ROOT = ../..
include $(ROOT)/common/Makefile.common
ifeq ($(RO_FAIL),0)
CFLAGS += -DRO_FAIL=0
SUFFIX = _no_ro
else
CFLAGS += -DRO_FAIL=1
endif
ifeq ($(BIN_SUFFIX),_gl)
NEW_SUFFIX = _pes
endif
BINS = $(BINDIR)/lb-ht_optik1$(NEW_SUFFIX)$(SUFFIX)
LLREP = lists
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
htlock.o:
$(CC) $(CFLAGS) -c -o $(BUILDIR)/htlock.o $(PROF)/htlock.c
clh.o:
$(CC) $(CFLAGS) -c -o $(BUILDIR)/clh.o $(PROF)/clh.c
ll-intset.o:
$(CC) $(CFLAGS) -c -o $(BUILDIR)/intset.o $(LLREP)/intset.c
linkedlist-optik.o: ll-intset.o htlock.o
$(CC) $(CFLAGS) -c -o $(BUILDIR)/linkedlist-optik.o $(LLREP)/linkedlist-optik.c
linkedlist-lock.o: ll-intset.o linkedlist-optik.o
$(CC) $(CFLAGS) -c -o $(BUILDIR)/linkedlist-lock.o $(LLREP)/linkedlist-lock.c
hashtable-lock.o: ll-intset.o linkedlist-optik.o linkedlist-lock.o
$(CC) $(CFLAGS) -c -o $(BUILDIR)/hashtable-lock.o hashtable-lock.c
test.o: ll-intset.o linkedlist-optik.o linkedlist-lock.o hashtable-lock.o
$(CC) $(CFLAGS) -c -o $(BUILDIR)/test.o $(TEST_FILE)
main: measurements.o ssalloc.o ll-intset.o linkedlist-optik.o linkedlist-lock.o hashtable-lock.o test.o htlock.o
$(CC) $(CFLAGS) $(BUILDIR)/measurements.o $(BUILDIR)/ssalloc.o $(BUILDIR)/htlock.o $(BUILDIR)/clh.o $(BUILDIR)/intset.o $(BUILDIR)/linkedlist-optik.o $(BUILDIR)/linkedlist-lock.o $(BUILDIR)/hashtable-lock.o $(BUILDIR)/test.o -o $(BINS) $(LDFLAGS)
clean:
rm -f $(BINS)