antithread: update example Makefile and arabella example.
[ccan] / ccan / antithread / examples / Makefile
index 4039185386e83ae074d0a05813da79eef02bd30d..ab6715596440486a10661cdace5c2313d9059352 100644 (file)
@@ -1,12 +1,7 @@
-CFLAGS=-g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -I../../..
+CFLAGS=-g -Wall -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-declarations -I../../.. ../../talloc.o ../../alloc.o ../../noerr.o ../../read_write_all.o ../../antithread.o # -O3
+LDLIBS=-ljpeg -lm
 
-all: find_md5 md5_worker dns_lookup
+all: dns_lookup arabella
 
-find_md5: md5_server.c ../../../libccan.a
-       $(CC) $(CFLAGS) -o $@ $^ 
-
-md5_worker: md5_worker.c ../../../libccan.a
-       $(CC) $(CFLAGS) -o $@ $^ 
-
-dns_lookup: dns_lookup.c ../../../libccan.a
-       $(CC) $(CFLAGS) -o $@ $^ 
+clean:
+       rm -f dns_lookup arabella