From 30562d7cba51a9879489ce88840c5f67ff873026 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 17 May 2007 23:42:28 +0000 Subject: basic threading model git-svn-id: file:///home/lennart/svn/public/libsydney/trunk@27 9ba3c220-e4d3-45a2-8aa3-73fcc9aff6ce --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cd6deb4..75e9f41 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ CFLAGS=-Wall -O0 -g -W -Wno-unused-parameter `pkg-config --cflags liboil-0.3` -DRANDOM_PREFIX=sa -DOUTSIDE_SPEEX -D_GNU_SOURCE -pthread LIBS=-lm `pkg-config --libs liboil-0.3` -SOURCES=common.c malloc.c test-sine.c oss.c bbuffer.c format.c volscale.c byteswap.c continued-fraction.c zero.c add.c speex/resample.c resample.c interleave.c converter.c g711.c mutex.c once.c thread.c +SOURCES=common.c malloc.c oss.c bbuffer.c format.c volscale.c byteswap.c continued-fraction.c zero.c add.c speex/resample.c resample.c interleave.c converter.c g711.c mutex.c once.c thread.c OBJS=$(SOURCES:.c=.o) -all: test-bufferq test-llist test-sine +all: test-bufferq test-llist test-sine test-pull test-bufferq: test-bufferq.o bufferq.o $(CC) $(CFLAGS) -o $@ $^ @@ -12,7 +12,10 @@ test-bufferq: test-bufferq.o bufferq.o test-llist: test-llist.o $(CC) $(CFLAGS) -o $@ $^ -test-sine: $(OBJS) +test-sine: $(OBJS) test-sine.o + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) + +test-pull: $(OBJS) test-pull.o $(CC) $(CFLAGS) -o $@ $^ $(LIBS) *.o: *.h @@ -22,7 +25,7 @@ indent: # astyle --indent=spaces=4 --brackets=attach --indent-switches --max-instatement-indent=40 --pad=oper --unpad=paren --convert-tabs --mode=c < oss.c clean: - rm -f *.o meta-name-table.h test-bufferq test-llist test-sine + rm -f *.o meta-name-table.h test-bufferq test-llist test-sine core test-pull common.o: meta-name-table.h -- cgit