aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-11-08 15:01:42 +0100
committerHarald Welte <laforge@gnumonks.org>2012-11-08 15:05:04 +0100
commitae37eace2fbc0114a9cf220727d7b7bce335c653 (patch)
tree542a4853bba968ab928e96934f13baec751af0e1
parente74d4af78053c4adc0be2ed3b52417d1ef9ef860 (diff)
add pkg-config support
-rw-r--r--Makefile.am3
-rw-r--r--binary/Makefile.am2
-rw-r--r--configure.ac3
-rw-r--r--libsmpp34.pc.in11
-rw-r--r--test_apps/Makefile.am3
5 files changed, 20 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 3e462fc..f68bb89 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -6,3 +6,6 @@ EXTRA_DIST = src/Makefile.am\
test_apps/esme.xml\
test_apps/sendwp.xml\
test_apps/recv_and_unpack.inc
+
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = libsmpp34.pc
diff --git a/binary/Makefile.am b/binary/Makefile.am
index 11191de..f3e3a3c 100644
--- a/binary/Makefile.am
+++ b/binary/Makefile.am
@@ -1,5 +1,5 @@
# Makefile.am #
-bin_PROGRAMS = submit_multi_resp_test submit_multi_test alert_notification_test bind_receiver_resp_test bind_receiver_test bind_transceiver_resp_test bind_transceiver_test bind_transmitter_resp_test bind_transmitter_test cancel_sm_resp_test cancel_sm_test data_sm_resp_test data_sm_test deliver_sm_resp_test deliver_sm_test enquire_link_resp_test enquire_link_test generic_nack_test outbind_test query_sm_resp_test query_sm_test replace_sm_resp_test replace_sm_test submit_sm_resp_test submit_sm_test unbind_resp_test unbind_test esme analizer sendwp
+bin_PROGRAMS = submit_multi_resp_test submit_multi_test alert_notification_test bind_receiver_resp_test bind_receiver_test bind_transceiver_resp_test bind_transceiver_test bind_transmitter_resp_test bind_transmitter_test cancel_sm_resp_test cancel_sm_test data_sm_resp_test data_sm_test deliver_sm_resp_test deliver_sm_test enquire_link_resp_test enquire_link_test generic_nack_test outbind_test query_sm_resp_test query_sm_test replace_sm_resp_test replace_sm_test submit_sm_resp_test submit_sm_test unbind_resp_test unbind_test esme analizer sendwp smsc
include $(top_srcdir)/test_pdu/Makefile.am
include $(top_srcdir)/test_apps/Makefile.am
diff --git a/configure.ac b/configure.ac
index 929bb48..ee5e68f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,4 +27,5 @@ AC_CHECK_FUNCS([memset])
AC_OUTPUT([Makefile
def_frame/Makefile
def_list/Makefile
- binary/Makefile])
+ binary/Makefile
+ libsmpp34.pc])
diff --git a/libsmpp34.pc.in b/libsmpp34.pc.in
new file mode 100644
index 0000000..08a5da0
--- /dev/null
+++ b/libsmpp34.pc.in
@@ -0,0 +1,11 @@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+libdir=@libdir@
+includedir=@includedir@
+
+Name: Open SMPP 3.4 Library
+Description: SMPP (SMS Peer to Peer) v3.4 Library
+Version: @VERSION@
+Libs: -L${libdir} -lsmpp34
+Cflags: -I${includedir}/
+
diff --git a/test_apps/Makefile.am b/test_apps/Makefile.am
index e1e565c..bebb4c4 100644
--- a/test_apps/Makefile.am
+++ b/test_apps/Makefile.am
@@ -33,3 +33,6 @@ analizer_LDFLAGS =
analizer_pkgdatadir =
analizer_pkgdata_DATA =
+smsc_CPPFLAGS = `pkg-config --cflags libosmocore`
+smsc_LDFLAGS = `pkg-config --libs libosmocore`
+smsc_SOURCES = $(TESTAPPS_SOURCE_DIR)/smpp_smsc.c $(TESTAPPS_SOURCE_DIR)/smsc_main.c