summaryrefslogtreecommitdiff
path: root/lib/examples/Makefile
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-10-02 21:31:50 +0200
committerLinus Nordberg <linus@nordu.net>2010-10-02 21:31:50 +0200
commitbe4b786700ad03de5226951c043fefb345c0df4c (patch)
treee048b100e34ddcfebadabb459f9af7c55d01b3ce /lib/examples/Makefile
parent7ec20f4101e5a1ef0b5f2537f25a4f8d74ad1104 (diff)
WIP
Diffstat (limited to 'lib/examples/Makefile')
-rw-r--r--lib/examples/Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/examples/Makefile b/lib/examples/Makefile
index f9f2ee1..618afdb 100644
--- a/lib/examples/Makefile
+++ b/lib/examples/Makefile
@@ -1,12 +1,11 @@
-CFLAGS = -Wall -g
+CFLAGS = -Wall -g -I ../include
-all: client
+HFILES = ../include/radsec/libradsec.h ../include/radsec/libradsec-impl.h
-blocking.o: blocking.c blocking.h ../libradsec-base.h ../libradsec.h
- $(CC) $(CFLAGS) -c -I .. $^
+all: client-blocking
-client: client.c ../libradsec.a ../libradsec.h ../libradsec-impl.h
+client-blocking: client-blocking.c ../libradsec.a $(HFILES)
$(CC) $(CFLAGS) -o $@ $< -L /usr/lib/freeradius -lfreeradius-radius -L .. -lradsec -L /usr/local/lib -levent_core
clean:
- -rm *.o client
+ -rm *.o client-blocking *.gch