-bin_PROGRAMS = catgconf
-
-radsecproxy_SOURCES = radsecproxy.c \
- tlscommon.c \
- gconfig.c \
- util.c \
- debug.c \
- list.c \
- hash.c \
- tlv11.c \
- hostport.c \
- radmsg.c \
- udp.c \
- tcp.c \
- tls.c \
- dtls.c \
- radsecproxy.h \
- tlscommon.h \
- gconfig.h \
- debug.h \
- util.h \
- list.h \
- hash.h \
- tlv11.h \
- hostport.h \
- radmsg.h \
- udp.h \
- tcp.h \
- tls.h \
- dtls.h
-
-catgconf_SOURCES = debug.c \
- util.c \
- gconfig.c \
- catgconf.c
-
-radsecproxy_CFLAGS = -g -Wall -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
+bin_PROGRAMS = radsecproxy-conf $(fticks_programs)
+noinst_LIBRARIES = librsp.a
+
+radsecproxy_SOURCES = main.c
+
+librsp_a_SOURCES = \
+ $(fticks_sources) \
+ debug.c debug.h \
+ dtls.c dtls.h \
+ gconfig.c gconfig.h \
+ hash.c hash.h \
+ hostport.c hostport.h \
+ list.c list.h \
+ radmsg.c radmsg.h \
+ radsecproxy.c radsecproxy.h \
+ tcp.c tcp.h \
+ tls.c tls.h \
+ tlscommon.c tlscommon.h \
+ tlv11.c tlv11.h \
+ udp.c udp.h \
+ util.c util.h
+
+radsecproxy_conf_SOURCES = \
+ catgconf.c \
+ debug.c debug.h \
+ gconfig.c gconfig.h \
+ util.c util.h
+
+####################
+AM_CPPFLAGS = -DSYSCONFDIR=\"$(sysconfdir)\"
+AM_CFLAGS = \
+ -g -Wall -Werror -fno-strict-aliasing @SSL_CFLAGS@ @TARGET_CFLAGS@
+