diff --git a/licensegen/Makefile b/licensegen/Makefile
index b447b98b0f8daefa57c09d851df6874dfe6c3d35..c5ddaa2ff557b436806712c55e079603ad87962c 100644
--- a/licensegen/Makefile
+++ b/licensegen/Makefile
@@ -15,16 +15,21 @@
 ##############################################################################
 # Makefile for the license generator program
 
+TOP := ..
 include ../Makefile.cfg
 
-MYSQL_DIR := /mnt/TTCN/Tools/mysql-5.0.41-solaris8-sparc
-TARGET_DIR := /mnt/TTCN/license
+
+#valid on on $TITAN7, RHEL7 :
+MYSQL_DIR := /app/vbuild/RHEL7-x86_64/mysql/5.5.30/
+#valid on on $TITAN7, RHEL7 :
+OPENSSL_DIR := /local/home/titanrt/tools/openssl
+TARGET_DIR := /proj/ttcn3titan/license
 
 CPPFLAGS += -I$(OPENSSL_DIR)/include -I$(MYSQL_DIR)/include
 
 SOLARIS_LIBS := -lsocket -lnsl -lm -lz
 SOLARIS8_LIBS := -lsocket -lnsl -lm -lz
-LINUX_LIBS :=
+LINUX_LIBS := -lpthread -lz -lm -lrt -ldl #-lnsl
 FREEBSD_LIBS :=
 WIN32_LIBS :=
 
@@ -35,7 +40,7 @@ OBJECTS := $(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(SOURCES))) $(COMMON_OBJECTS)
 TARGETS := license_gen$(EXESUFFIX)
 
 license_gen$(EXESUFFIX): $(OBJECTS)
-	$(CC) -o $@ $(OBJECTS) $(MYSQL_DIR)/lib/libmysqlclient.a \
+	$(CC) -o $@ $(OBJECTS) -L$(MYSQL_DIR)/lib -lmysqlclient \
 	$(OPENSSL_DIR)/lib/libcrypto.a $($(PLATFORM)_LIBS)
 	chmod g+w $(TARGETS)
 
diff --git a/licensegen/Makefile_renew_license b/licensegen/Makefile_renew_license
index 2cafb9b72ddc1c6791e79204dc0b8d7eb37f526f..7be4b22b1834cd1c9312ff4c10037d067f2f2305 100644
--- a/licensegen/Makefile_renew_license
+++ b/licensegen/Makefile_renew_license
@@ -10,9 +10,10 @@
 #   Gecse, Roland
 #
 ##############################################################################
-GCC_DIR=/mnt/TTCN/Tools/gcc-4.1.1-sol8
+GCC_DIR=/usr/
 CGIC_DIR=/mnt/TTCN/Tools/cgic205-gcc3.0.4-sol8
-MYSQL_DIR=/mnt/TTCN/Tools/mysql-standard-4.1.22-sun-solaris2.8-sparc
+#valid on on $TITAN7, RHEL7 :
+MYSQL_DIR := /app/vbuild/RHEL7-x86_64/mysql/5.5.30/
 
 CC=${GCC_DIR}/bin/gcc