blob: 67d1f5c535ea1e4e764b8853281131ffc2092d87 (
plain)
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
|
CC = gcc
STD = _GNU_SOURCE
CFLAGS = -DDEBUG
BIN = cas_test lock_free_queue_test lfq_test
.c.o:
$(CC) -c -Wall -I. $(CFLAGS) -D$(STD) $<
all: $(BIN)
cas_test: cas_test.o
$(CC) cas_test.o -o cas_test
lock_free_queue_test: lock_free_queue.o lock_free_queue_test.o
$(CC) lock_free_queue.o lock_free_queue_test.o -o lock_free_queue_test
lfq_test: lfq_cas.h lfq.o lfq_test.o
$(CC) lfq.o lfq_test.o -o lfq_test
as:
$(CC) -S lfq.c
clean:
rm -f *~ *.o *.s core $(BIN)
|