summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-01-25 17:31:18 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-01-25 17:31:18 +0100
commite67d01ffba6ea88b66b1563e57a9bc4dac0dffa9 (patch)
treefb8cc60f701ca30287d18f84866b2834179376a3 /Makefile
parent3e65f9e2515d4f9d8f2a8267a1a825d5bf92f819 (diff)
downloadlock_free-e67d01ffba6ea88b66b1563e57a9bc4dac0dffa9.zip
lock_free-e67d01ffba6ea88b66b1563e57a9bc4dac0dffa9.tar.gz
cas.c test uses cas.h
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 38ab176..364a854 100644
--- a/Makefile
+++ b/Makefile
@@ -6,11 +6,11 @@ CFLAGS = -DDEBUG
BIN = cas container_of lock_free_queue_test lf_fifo_test lf_ringbuffer_test
.c.o:
- $(CC) -march=i686 -O2 -c -Wall -I. $(CFLAGS) -D$(STD) $<
+ $(CC) -O2 -c -Wall -I. $(CFLAGS) -D$(STD) $<
all: $(BIN)
-cas.o: cas.c
+cas.o: cas.c cas.h
cas: cas.o
$(CC) -S cas.c
$(CC) cas.o -o cas
@@ -33,7 +33,7 @@ lf_fifo_test: lf_fifo.o lf_fifo_test.o
lf_ringbuffer.o: lf_ringbuffer.h lf_ringbuffer.c lf_ringbuffer_data.h lf_portable_cas.h
lf_ringbuffer_test.o: lf_ringbuffer_test.c lf_ringbuffer.h
lf_ringbuffer_test: lf_ringbuffer.o lf_ringbuffer_test.o
- $(CC) -lrt lf_ringbuffer.o lf_ringbuffer_test.o -o lf_ringbuffer_test
+ $(CC) -lpthread lf_ringbuffer.o lf_ringbuffer_test.o -o lf_ringbuffer_test
clean:
rm -f *~ *.o *.s core $(BIN)