* Removed the DEBUG_PRINTF variable support.

* Simplified the HAIKU_INCLUDE_PATENTED_CODE variable support.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34719 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-12-20 13:40:12 +00:00
parent cc69ec0dd6
commit adf0692b51
+3 -15
View File
@@ -315,31 +315,19 @@ if $(HAIKU_ARCH) = m68k {
HAIKU_KERNEL_C++FLAGS += -m68020-60 ; HAIKU_KERNEL_C++FLAGS += -m68020-60 ;
} }
if $(HAIKU_ARCH) = mipsel { if $(HAIKU_ARCH) = mipsel {
# todo: verify correctness of this # TODO: verify correctness of this
HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ; HAIKU_KERNEL_PIC_CCFLAGS = -fno-pic ;
HAIKU_KERNEL_PIC_LINKFLAGS = ; HAIKU_KERNEL_PIC_LINKFLAGS = ;
} }
# If the environment variable DEBUG_PRINTF is defined we define an equally
# named macro to the variable value. Some components use the macro to allow
# another function than printf() to print the debug output. The variable should
# be set to the name of the alternative function.
#
if $(DEBUG_PRINTF) {
HAIKU_CCFLAGS += [ FDefines DEBUG_PRINTF=$(DEBUG_PRINTF) ] ;
HAIKU_C++FLAGS += [ FDefines DEBUG_PRINTF=$(DEBUG_PRINTF) ] ;
}
# If the environment variable HAIKU_INCLUDE_PATENTED_CODE is defined, we # If the environment variable HAIKU_INCLUDE_PATENTED_CODE is defined, we
# define an equally named macro to the variable value. Some components use the # define an equally named macro to the variable value. Some components use the
# macro to allow compilation of code known to implemented patented ideas and/or # macro to allow compilation of code known to implemented patented ideas and/or
# techniques, for example the Freetype bytecode hinter or sub-pixel rendering # techniques, for example the Freetype bytecode hinter or sub-pixel rendering
# as well as some problematic media codecs. # as well as some problematic media codecs.
if $(HAIKU_INCLUDE_PATENTED_CODE) { if $(HAIKU_INCLUDE_PATENTED_CODE) {
HAIKU_CCFLAGS += [ FDefines HAIKU_DEFINES
HAIKU_INCLUDE_PATENTED_CODE=$(HAIKU_INCLUDE_PATENTED_CODE) ] ; += HAIKU_INCLUDE_PATENTED_CODE=$(HAIKU_INCLUDE_PATENTED_CODE) ;
HAIKU_C++FLAGS += [ FDefines
HAIKU_INCLUDE_PATENTED_CODE=$(HAIKU_INCLUDE_PATENTED_CODE) ] ;
} }
# warning flags # warning flags