sim: fixed for tilab
[calu.git] / 3b_sim / Makefile.flags
index f79e104fc5667510e70c4885dffaff6b3a40a1d7..1d2ab2b06d6db0bbdede79852e12d44a3e114acc 100644 (file)
@@ -1,6 +1,13 @@
-CC := ccache 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 -lreadline -lcurses
+else
+CC := ccache g++
+CPPPROGOPT :=-rdynamic -ldl -lboost_program_options -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