diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-06 22:36:29 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2010-01-06 22:36:29 +0100 |
commit | 174afdb2c0eb0e418980c1fa1c0afe41277b5b4d (patch) | |
tree | 55a2901196983c31017dac6e4fa0f35e43dadd5e /Makefile | |
parent | 80b8ee53cbf9e69f6831124f469358aa7d4e97d4 (diff) | |
download | lock_free-174afdb2c0eb0e418980c1fa1c0afe41277b5b4d.zip lock_free-174afdb2c0eb0e418980c1fa1c0afe41277b5b4d.tar.gz |
lf_ring_buffer is almost good + tests
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -3,30 +3,37 @@ CC = gcc STD = _GNU_SOURCE CFLAGS = -DDEBUG -BIN = cas container_of lock_free_queue_test lf_fifo_test lf_ring_buffer.o +BIN = cas container_of lock_free_queue_test lf_fifo_test lf_ring_buffer_test .c.o: - $(CC) -c -Wall -I. $(CFLAGS) -D$(STD) $< + $(CC) -march=i686 -O2 -c -Wall -I. $(CFLAGS) -D$(STD) $< all: $(BIN) +cas.o: cas.c cas: cas.o $(CC) -S cas.c $(CC) cas.o -o cas +container_of.o: container_of.c container_of: container_of.o $(CC) -S container_of.c $(CC) container_of.o -o container_of +lock_free_queue.o: lock_free_queue.h lock_free_queue.c +lock_free_queue_test.o: lock_free_queue_test.c 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_cas.h - +lf_fifo.o: lf_fifo.h lf_fifo.c lf_cas.h +lf_fifo_test.o: lf_fifo_test.c lf_fifo_test: lf_fifo.o lf_fifo_test.o $(CC) lf_fifo.o lf_fifo_test.o -o lf_fifo_test -lf_ring_buffer.o: lf_ring_buffer.h lf_portable_cas.h +lf_ring_buffer.o: lf_ring_buffer.h lf_ring_buffer.c lf_portable_cas.h +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 clean: rm -f *~ *.o *.s core $(BIN) |