summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2009-11-07 19:21:49 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2009-11-07 19:21:49 +0100
commit7d6c42c89447947de20e4b50390b6c3b3ee8ff9f (patch)
tree8d98aa697fb03ed7d39472bc1222f691c7677f4f /Makefile
parent67f57ab2fb7932b1c43ad669e846b425f6fa1f2b (diff)
downloadlock_free-7d6c42c89447947de20e4b50390b6c3b3ee8ff9f.zip
lock_free-7d6c42c89447947de20e4b50390b6c3b3ee8ff9f.tar.gz
cas and container tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 11 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index 2265400..27586c4 100644
--- a/Makefile
+++ b/Makefile
@@ -3,26 +3,30 @@
CC = gcc
STD = _GNU_SOURCE
CFLAGS = -DDEBUG
-BIN = cas_test lock_free_queue_test lf_fifo_test
+BIN = cas container_of lock_free_queue_test lf_fifo
.c.o:
$(CC) -c -Wall -I. $(CFLAGS) -D$(STD) $<
all: $(BIN)
-cas_test: cas_test.o
- $(CC) cas_test.o -o cas_test
+cas: cas.o
+ $(CC) -S cas.c
+ $(CC) cas.o -o cas
+
+container_of: container_of.o
+ $(CC) -S container_of.c
+ $(CC) container_of.o -o container_of
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
-lf_fifo.o: lf_fifo.h lf_fifo_cas.h
+
+
+lf_fifo.o: lf_fifo.h lf_cas.h
lf_fifo_test: lf_fifo.o lf_fifo_test.o
$(CC) lf_fifo.o lf_fifo_test.o -o lf_fifo_test
-as:
- $(CC) -S lf_fifo.c
-
clean:
rm -f *~ *.o *.s core $(BIN)