forked from schani/michael-alloc
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (26 loc) · 932 Bytes
/
Makefile
File metadata and controls
39 lines (26 loc) · 932 Bytes
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
#TEST = -DTEST_DELAYED_FREE
#TEST = -DTEST_QUEUE
#TEST = -DTEST_ALLOC
TEST = -DTEST_LLS
ALLOC = lock-free-alloc
QUEUE = lock-free-queue
#QUEUE = test-queue
OPT = -O0
CFLAGS = $(TEST) $(OPT) -g -Wall -DMONO_INTERNAL= -Dlock_free_allocator_test_main=main #-DFAILSAFE_DELAYED_FREE
all : test
%.o : %.c
gcc $(CFLAGS) -c $<
hazard-pointer.o : hazard-pointer.c
gcc $(CFLAGS) -c $<
lock-free-array-queue.o : lock-free-array-queue.c
gcc $(CFLAGS) -c $<
lock-free-queue.o : lock-free-queue.c
gcc $(CFLAGS) -c $<
mono-linked-list-set.o : mono-linked-list-set.c
gcc $(CFLAGS) -c $<
test.o : test.c
gcc $(CFLAGS) -c $<
test : hazard-pointer.o lock-free-array-queue.o $(QUEUE).o $(ALLOC).o mono-mmap.o sgen-gc.o mono-linked-list-set.o test.o
gcc $(OPT) -g -Wall -o test hazard-pointer.o lock-free-array-queue.o $(QUEUE).o $(ALLOC).o mono-mmap.o sgen-gc.o mono-linked-list-set.o test.o -lpthread
clean :
rm -f *.o test