diff options
author | Linus Nordberg <linus@nordu.net> | 2011-09-27 10:11:35 +0200 |
---|---|---|
committer | Linus Nordberg <linus@nordu.net> | 2011-09-27 10:11:35 +0200 |
commit | bab2a00def115132cf3bb14d4e8826c5c2460b60 (patch) | |
tree | de59f37aeda922816d9fd0a536153d7f94cba555 /Makefile.am | |
parent | 021300fb41cbdc1280c73e61cbe1c7f861e1dd9c (diff) |
Prepare for building tests.
Move main() out of radsecproxy.c.
Build a static library and link a main.c with it.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index 839f6a9..7c8cefd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -2,8 +2,13 @@ AUTOMAKE_OPTIONS = foreign sbin_PROGRAMS = radsecproxy bin_PROGRAMS = catgconf +noinst_LIBRARIES = librsp.a -radsecproxy_SOURCES = radsecproxy.c \ +radsecproxy_SOURCES = main.c + +nodist_librsp_a_SOURCES = $(radsecproxy_SOURCES) + +librsp_a_SOURCES = radsecproxy.c \ tlscommon.c \ gconfig.c \ util.c \ @@ -42,7 +47,7 @@ catgconf_SOURCES = debug.c \ radsecproxy_CFLAGS = -g -Wall -Werror -fno-strict-aliasing \ @SSL_CFLAGS@ @TARGET_CFLAGS@ radsecproxy_LDFLAGS = @SSL_LDFLAGS@ @TARGET_LDFLAGS@ -radsecproxy_LDADD = @SSL_LIBS@ +radsecproxy_LDADD = librsp.a @SSL_LIBS@ catgconf_CFLAGS = -g -Wall -fno-strict-aliasing @TARGET_CFLAGS@ catgconf_LDFLAGS = @TARGET_LDFLAGS@ |