summaryrefslogtreecommitdiff
path: root/src/gsmd/Makefile.am
blob: ad2692e235e569e882b084dc9f167d62db0a44f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
INCLUDES = $(all_includes) -I$(top_srcdir)/include
AM_CFLAGS = -std=gnu99
plugindir = $(libdir)/gsmd

gsmd-version.h:
	echo -e '#ifndef GSMD_VERSION' \
	'\n#define GSMD_VERSION "$(VERSION)" \\' > gsmd-version.h
	if test -d .svn; then \
	    echo -e '\t"+'`svnversion`'"' >> gsmd-version.h; \
	else \
	    echo -e '\t/* release version */' >> gsmd-version.h; \
	fi
	echo -e '#endif' >> gsmd-version.h

BUILT_SOURCES = gsmd-version.h
sbin_PROGRAMS = gsmd

gsmd_CFLAGS = -D PLUGINDIR=\"$(plugindir)\"
gsmd_SOURCES = gsmd.c atcmd.c select.c machine.c vendor.c unsolicited.c log.c \
	       usock.c talloc.c timer.c operator_cache.c ext_response.c \
	       sms_cb.c sms_pdu.c strl.c
gsmd_LDADD = -ldl
gsmd_LDFLAGS = -Wl,--export-dynamic

plugin_LTLIBRARIES = libgsmd-machine_generic.la \
		     libgsmd-machine_tihtc.la \
		     libgsmd-machine_gta01.la \
		     libgsmd-machine_telit.la \
		     libgsmd-vendor_ti.la \
		     libgsmd-vendor_tihtc.la \
		     libgsmd-vendor_qc.la \
		     libgsmd-vendor_bcm.la \
		     libgsmd-vendor_telit.la \
		     libgsmd-vendor_wavecom.la

libgsmd_machine_generic_la_SOURCES = machine_generic.c
libgsmd_machine_generic_la_LDFLAGS = -module
libgsmd_machine_tihtc_la_SOURCES = machine_tihtc.c
libgsmd_machine_tihtc_la_LDFLAGS = -module
libgsmd_machine_gta01_la_SOURCES = machine_gta01.c
libgsmd_machine_gta01_la_LDFLAGS = -module
libgsmd_machine_telit_la_SOURCES = machine_telit.c
libgsmd_machine_telit_la_LDFLAGS = -module

libgsmd_vendor_ti_la_SOURCES = vendor_ti.c
libgsmd_vendor_ti_la_LDFLAGS = -module
libgsmd_vendor_tihtc_la_SOURCES = vendor_tihtc.c
libgsmd_vendor_tihtc_la_LDFLAGS = -module
libgsmd_vendor_qc_la_SOURCES = vendor_qc.c
libgsmd_vendor_qc_la_LDFLAGS = -module
libgsmd_vendor_bcm_la_SOURCES = vendor_bcm.c
libgsmd_vendor_bcm_la_LDFLAGS = -module
libgsmd_vendor_telit_la_SOURCES = vendor_telit.c
libgsmd_vendor_telit_la_LDFLAGS = -module
libgsmd_vendor_wavecom_la_SOURCES = vendor_wavecom.c
libgsmd_vendor_wavecom_la_LDFLAGS = -module


noinst_HEADERS = gsmd.h
personal git repositories of Harald Welte. Your mileage may vary