From 711d885f0d8b6c0788bc62c0d58c44eaaf1391c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sat, 4 Apr 2020 17:11:52 +0800 Subject: Shared library building and installation --- Makefile.am | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 03bb0a2..27cff9b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,9 +1,6 @@ -noinst_LIBRARIES = librtclient.a -librtclient_a_SOURCES = \ - rtclient/user.h \ - rtclient/ticket.h \ - rtclient/search.h \ - rtclient/client.h \ +ACLOCAL_AMFLAGS = -I m4 +lib_LTLIBRARIES = librtclient.la +librtclient_la_SOURCES = \ request.h \ request.c \ post.h \ @@ -13,7 +10,13 @@ librtclient_a_SOURCES = \ search.c \ client.c -bin_PROGRAMS = rtclienttest -rtclienttest_SOURCES = main.c -rtclienttest_LDADD = librtclient.a -rtclienttest_LDFLAGS = -lcurl +pkginclude_HEADERS = \ + rtclient/user.h \ + rtclient/ticket.h \ + rtclient/search.h \ + rtclient/client.h + +#bin_PROGRAMS = rtclienttest +#rtclienttest_SOURCES = main.c +#rtclienttest_LDADD = librtclient.la +#rtclienttest_LDFLAGS = -lcurl -- cgit v1.2.3