summaryrefslogtreecommitdiff
path: root/gssm/src/lib/Makefile.am
blob: be3775cdfa4e1a027f02b0b5be00d087c2d18c11 (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
# $Id: Makefile.am,v 1.1.1.1 2007-06-01 04:26:57 jl Exp $

include $(top_srcdir)/Makefile.common

ourpythondir = $(pythondir)
ourlibdir    = $(pyexecdir)

INCLUDES = $(STD_DEFINES_AND_INCLUDES) $(PYTHON_CPPFLAGS)

SWIGCPPPYTHONARGS = -c++ -python $(PYTHON_CPPFLAGS) -I$(swigincludedir) -I$(grincludedir)

LOCAL_IFILES = gssm.i                         
NON_LOCAL_IFILES = $(GNURADIO_CORE_INCLUDEDIR)/swig/gnuradio.i
ALL_IFILES = $(LOCAL_IFILES) $(NON_LOCAL_IFILES)             

BUILT_SOURCES = gssm_glue.cc gssm.py

ourpython_PYTHON = gssm.py

ourlib_LTLIBRARIES = _gssm.la

# source files that go into the shared library
_gssm_la_SOURCES =					\
			gssm_glue.cc			\
			gssm_sink.cc			\
			bursts.cc			\
			sch.cc				\
			cch.cc				\
			rr_decode.cc			\
			tun.cc				\
			display.cc

_gssm_la_LDFLAGS = -module -avoid-version

_gssm_la_LIBADD = $(PYTHON_LDFLAGS) -lstdc++

gssm_glue.cc gssm.py: gssm.i $(ALL_IFILES)
	$(SWIG) $(SWIGCPPPYTHONARGS) -module gssm -o gssm_glue.cc $<

grinclude_HEADERS = gssm_sink.h

swiginclude_HEADERS = $(LOCAL_IFILES)

MOSTLYCLEANFILES = $(BUILT_SOURCES) *.pyc
personal git repositories of Harald Welte. Your mileage may vary