summaryrefslogtreecommitdiff
path: root/lib/examples
diff options
context:
space:
mode:
authorLinus Nordberg <linus@nordu.net>2010-10-05 08:36:38 +0200
committerLinus Nordberg <linus@nordu.net>2010-10-05 08:36:38 +0200
commit3587b10283526f70b3215292573519e19b012130 (patch)
treea29dbb62847f84765da5e3eeb6195c92d46c7663 /lib/examples
parentf429a882c9bc72a597e6bcbecf5842e37af754e0 (diff)
Autotoolize.
Diffstat (limited to 'lib/examples')
-rw-r--r--lib/examples/Makefile15
-rw-r--r--lib/examples/Makefile.am8
2 files changed, 8 insertions, 15 deletions
diff --git a/lib/examples/Makefile b/lib/examples/Makefile
deleted file mode 100644
index cf3441b..0000000
--- a/lib/examples/Makefile
+++ /dev/null
@@ -1,15 +0,0 @@
-SPECIAL =
-#SPECIAL += -DUSE_REQUEST_OBJECT
-SPECIAL += -DUSE_CONFIG_FILE
-
-CFLAGS = -Wall -g -I ../include $(SPECIAL)
-
-HFILES = ../include/radsec/radsec.h ../include/radsec/radsec-impl.h
-
-all: client-blocking
-
-client-blocking: client-blocking.c ../libradsec.a $(HFILES)
- $(CC) $(CFLAGS) -o $@ $< -lconfuse -L /usr/lib/freeradius -lfreeradius-radius -L .. -lradsec -L /usr/local/lib -levent_core
-
-clean:
- -rm *.o *.gch client-blocking
diff --git a/lib/examples/Makefile.am b/lib/examples/Makefile.am
new file mode 100644
index 0000000..c869070
--- /dev/null
+++ b/lib/examples/Makefile.am
@@ -0,0 +1,8 @@
+AUTOMAKE_OPTIONS = foreign
+
+INCLUDES = -I$(top_srcdir)/include
+
+bin_PROGRAMS = client
+client_SOURCES = client-blocking.c
+client_LDADD = ../libradsec.la
+client_CFLAGS = $(CFLAGS) -DUSE_CONFIG_FILE