57 CFLAGS += -DCC_INTERP 58 endif 59 60 # We don't need libCstd.so and librwtools7.so, only libCrun.so 61 CFLAGS += -library=Crun 62 LIBS += -lCrun 63 64 CFLAGS += -mt 65 LFLAGS += -mt 66 67 # Compiler warnings are treated as errors 68 #WARNINGS_ARE_ERRORS = -errwarn=%all 69 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) 70 # Special cases 71 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@)) 72 73 # The flags to use for an Optimized build 74 OPT_CFLAGS+=-xO4 75 OPT_CFLAGS/NOOPT=-xO0 76 77 #------------------------------------------------------------------------ 78 # Linker flags 79 80 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. 81 MAPFLAG = -Wl,--version-script=FILENAME 82 83 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj 84 SONAMEFLAG = -h SONAME 85 86 # Build shared library 87 SHARED_FLAG = -G 88 89 #------------------------------------------------------------------------ 90 # Debug flags 91 DEBUG_CFLAGS += -g 92 FASTDEBUG_CFLAGS = -g0 93 | 57 CFLAGS += -DCC_INTERP 58 endif 59 60 # We don't need libCstd.so and librwtools7.so, only libCrun.so 61 CFLAGS += -library=Crun 62 LIBS += -lCrun 63 64 CFLAGS += -mt 65 LFLAGS += -mt 66 67 # Compiler warnings are treated as errors 68 #WARNINGS_ARE_ERRORS = -errwarn=%all 69 CFLAGS_WARN/DEFAULT = $(WARNINGS_ARE_ERRORS) 70 # Special cases 71 CFLAGS_WARN/BYFILE = $(CFLAGS_WARN/$@)$(CFLAGS_WARN/DEFAULT$(CFLAGS_WARN/$@)) 72 73 # The flags to use for an Optimized build 74 OPT_CFLAGS+=-xO4 75 OPT_CFLAGS/NOOPT=-xO0 76 77 # Flags for creating the dependency files. 78 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) 79 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d) 80 endif 81 82 #------------------------------------------------------------------------ 83 # Linker flags 84 85 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. 86 MAPFLAG = -Wl,--version-script=FILENAME 87 88 # Use $(SONAMEFLAG:SONAME=soname) to specify the intrinsic name of a shared obj 89 SONAMEFLAG = -h SONAME 90 91 # Build shared library 92 SHARED_FLAG = -G 93 94 #------------------------------------------------------------------------ 95 # Debug flags 96 DEBUG_CFLAGS += -g 97 FASTDEBUG_CFLAGS = -g0 98 |