summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2010-01-10 17:06:55 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2010-01-10 17:06:55 +0100
commit3a331b078b7833b6af67ce86f5641869088d82eb (patch)
tree10c0bad7332080814814bed394cd55b7a369491b /Makefile
parentbb68ccdcc1dab0491edeb89c1382e95ebd16bf7a (diff)
downloadlock_free-3a331b078b7833b6af67ce86f5641869088d82eb.zip
lock_free-3a331b078b7833b6af67ce86f5641869088d82eb.tar.gz
second ring buffer implementation
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ba02f07..79b79ab 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@
CC = gcc
STD = _GNU_SOURCE
CFLAGS = -DDEBUG
-BIN = cas container_of lock_free_queue_test lf_fifo_test lf_ring_buffer_test
+BIN = cas container_of lock_free_queue_test lf_fifo_test lf_ring_buffer_test lf_ring_buffer_test2
.c.o:
$(CC) -march=i686 -O2 -c -Wall -I. $(CFLAGS) -D$(STD) $<
@@ -35,5 +35,10 @@ lf_ring_buffer_test.o: lf_ring_buffer_test.c
lf_ring_buffer_test: lf_ring_buffer.o lf_ring_buffer_test.o
$(CC) -lrt lf_ring_buffer.o lf_ring_buffer_test.o -o lf_ring_buffer_test
+lf_ring_buffer2.o: lf_ring_buffer2.h lf_ring_buffer2.c lf_ring_buffer_data.h lf_portable_cas.h
+lf_ring_buffer_test2.o: lf_ring_buffer_test2.c
+lf_ring_buffer_test2: lf_ring_buffer2.o lf_ring_buffer_test2.o
+ $(CC) -lrt lf_ring_buffer2.o lf_ring_buffer_test2.o -o lf_ring_buffer_test2
+
clean:
rm -f *~ *.o *.s core $(BIN)