s3e: fix build break
[calu.git] / 3b_sim / Makefile.flags
index 50f7e14ec8e5d9cf9b59cffca3773a6669248966..8e156266e0e06645905c92a502f275fcde3094e1 100644 (file)
@@ -1,6 +1,13 @@
-CC := g++
+#tilab is centos, and centos@tilab is special
+OSTYPE = $(shell lsb_release -i -s | tr -d "\n")
 
-CPPFLAGS = -g3 -O2 -std=c++0x -Wnon-virtual-dtor -Weffc++ -pedantic -Werror -Wall -Wextra -W -Wshadow -fno-common -pedantic-errors -Wpointer-arith -Wcast-qual -Wcast-align -Woverloaded-virtual -Wswitch-default -Wempty-body -Wlogical-op
+ifeq ("$(OSTYPE)", "CentOS")
+CC := g++44
+CPPPROGOPT :=-rdynamic -ldl -lboost_program_options-gcc41-mt-1_37 -lboost_regex-gcc41-mt-1_37 -lreadline -lcurses
+else
+CC := g++
+CPPPROGOPT :=-rdynamic -ldl -lboost_program_options -lboost_regex -lreadline
+endif
 
-CPPPROGOPT=-rdynamic -ldl -lboost_program_options -lreadline
-CPPLIBOPT=-shared
+CPPFLAGS := -g3 -O2 -std=c++0x -Wnon-virtual-dtor -Weffc++ -pedantic -Werror -Wall -Wextra -W -Wshadow -fno-common -pedantic-errors -Wpointer-arith -Wcast-qual -Wcast-align -Woverloaded-virtual -Wswitch-default -Wempty-body -Wlogical-op
+CPPLIBOPT :=-shared