diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-09-10 16:28:17 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2014-10-26 19:09:22 +0100 |
commit | 495fe2682c37d7e2ba9d969fa0675e59db461790 (patch) | |
tree | 336239a62607f01d3c8516fcb597aa1690d18120 /src | |
parent | ad41863b8d3f3ac7df0c34b2c7d342b864d944cc (diff) |
sim: Use autotools for libpcsc-lite linkage
Diffstat (limited to 'src')
-rw-r--r-- | src/sim/Makefile.am | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/sim/Makefile.am b/src/sim/Makefile.am index 53f78bdf..fe64278d 100644 --- a/src/sim/Makefile.am +++ b/src/sim/Makefile.am @@ -3,14 +3,18 @@ LIBVERSION=0:0:0 INCLUDES = $(all_includes) -I$(top_srcdir)/include -AM_CFLAGS = -fPIC -Wall +AM_CFLAGS = -fPIC -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(PCSC_CFLAGS) +AM_LDFLAGS = $(COVERAGE_LDFLAGS) + +if ENABLE_PCSC +# FIXME: only build the PC/SC dependent part conditional, but always build other parts noinst_HEADERS = sim_int.h gsm_int.h lib_LTLIBRARIES = libosmosim.la libosmosim_la_SOURCES = core.c card_fs_sim.c card_fs_usim.c card_fs_uicc.c reader.c reader_pcsc.c -# FIXME: use autoconf to determine pcsc include path / library name -libosmosim_la_LDFLAGS = -version-info $(LIBVERSION) -lpcsclite -libosmosim_la_CFLAGS = -I/usr/include/PCSC +libosmosim_la_LDFLAGS = -version-info $(LIBVERSION) +libosmosim_la_LIBADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(PCSC_LIBS) +endif |