summaryrefslogtreecommitdiffstats
path: root/lapdm/regen_makefile.sh
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-07-19 20:17:31 +0200
committerHarald Welte <laforge@gnumonks.org>2017-07-19 20:17:31 +0200
commitb2f94c4baa7f4bfdc2fd2b28d19087a2177f3df6 (patch)
treebc8537dc56a2d22f413926d56d6e1e9e151f945b /lapdm/regen_makefile.sh
parent5b1ce8c4f49004b101f794d94060f5666b532ce2 (diff)
move lapd to lapdm (it was a mis-nomer)
Diffstat (limited to 'lapdm/regen_makefile.sh')
-rwxr-xr-xlapdm/regen_makefile.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/lapdm/regen_makefile.sh b/lapdm/regen_makefile.sh
new file mode 100755
index 0000000..8d321ac
--- /dev/null
+++ b/lapdm/regen_makefile.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+FILES="*.ttcn UD_PT.cc UD_PT.hh"
+
+ttcn3_makefilegen -f L1CTL_Test.ttcn $FILES
+sed -i -e 's/# TTCN3_DIR = /TTCN3_DIR = \/usr/' Makefile
+sed -i -e 's/LDFLAGS = /LDFLAGS = -L \/usr\/lib\/titan `pkg-config --libs libnetfilter_conntrack`/' Makefile
+sed -i -e 's/TTCN3_LIB = ttcn3-parallel/TTCN3_LIB = ttcn3/' Makefile
+sed -i -e 's/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include/CPPFLAGS = -D$(PLATFORM) -I$(TTCN3_DIR)\/include -I\/usr\/include\/titan/' Makefile