summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2018-03-26 19:02:08 +0200
committerHarald Welte <laforge@gnumonks.org>2018-03-26 19:02:08 +0200
commit670659c28c298a6383838bdb5c94da36312c26f3 (patch)
tree5cbe04e7c033d857a7bdbb095c97bd558afad2af /Makefile
parent75e95789179b2efac88fd0f8d6555722695e3f94 (diff)
add TITAN support for MNCC/PCU interface decoding
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 9978e73..7901891 100644
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,26 @@
LIB_SRCS = utils.c sock_events.c libc_overrides.c
+LIB_OBJS = $(LIB_SRCS:.c=.o)
+
+EXTRA_LIBS =
+
CFLAGS = -Wall
+LDFLAGS=-L/usr/lib/titan -fPIC -lttcn3-dynamic
+ifdef ENABLE_TITAN
+EXTRA_LIBS += titan/titan.a
+CFLAGS += -DENABLE_TITAN
+endif
default: libudtrace.so
-libudtrace.so: $(LIB_SRCS)
- $(CC) $(CFLAGS) -fPIC -shared -Wl,-soname,libudtrace.so -o $@ $^ -ldl
+%.o: %.c
+ $(CC) $(CFLAGS) -fPIC -o $@ -c $^
+
+libudtrace.so: $(LIB_OBJS) $(EXTRA_LIBS)
+ $(CC) $(LDFLAGS) -fPIC -shared -Wl,-soname,libudtrace.so -o $@ $^ -ldl
+
+titan/titan.a:
+ $(MAKE) -C titan titan.a
clean:
rm -f *.o libudtrace.so
personal git repositories of Harald Welte. Your mileage may vary