summaryrefslogtreecommitdiffstats
path: root/selftest/regen_makefile.sh
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2017-12-12 14:56:02 +0100
committerHarald Welte <laforge@gnumonks.org>2017-12-12 14:56:02 +0100
commitf6bd980fdd73bd108801505b78af219b36751193 (patch)
treed559d42d3a1e499540034c74f714e8f4da26b716 /selftest/regen_makefile.sh
parent735dd07b382bfde21ba6c27e5e26673174d989d6 (diff)
Selftest: Add first baby-steps for self-testing our TTCN-3 library code
Diffstat (limited to 'selftest/regen_makefile.sh')
-rwxr-xr-xselftest/regen_makefile.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/selftest/regen_makefile.sh b/selftest/regen_makefile.sh
new file mode 100755
index 0000000..b4780a0
--- /dev/null
+++ b/selftest/regen_makefile.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+MAIN=Selftest.ttcn
+
+FILES="*.ttcn IPA_CodecPort_CtrlFunctDef.cc IPL4asp_PT.cc IPL4asp_discovery.cc TCCConversion.cc TCCInterface.cc SDP_EncDec.cc *.c"
+
+ttcn3_makefilegen -l -f $MAIN $FILES
+#sed -i -e 's/# TTCN3_DIR = /TTCN3_DIR = \/usr/' Makefile
+sed -i -e 's/LDFLAGS = /LDFLAGS = -L \/usr\/lib\/titan /' 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
+
+# for TITAN 6.3.0
+sed -i -e 's/TTCN3_DIR = $/TTCN3_DIR = \/usr/' Makefile
+sed -i -e 's/\/bin\/compiler/\/bin\/ttcn3_compiler/' Makefile