Add missing compiler flags that may be required for WUT libraries

This commit is contained in:
Maschell 2018-06-17 13:00:29 +02:00
parent 0d46322cbb
commit a4b503c375
20 changed files with 92 additions and 12 deletions

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 0 WRAP_MALLOC := 0
# Sets the "-D__WUT__" compiling flag
USE_WUT := 1
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation # -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions so linker can garbage collect # -ffunction-sections: split up functions so linker can garbage collect
# -fdata-sections: split up data so linker can garbage collect # -fdata-sections: split up data so linker can garbage collect
COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections COMMON_CFLAGS += -Os -Wall -DGEKKO_U -D__wiiu__ -D__WIIU__ -mrvl -mcpu=750 -meabi -mhard-float -fno-common -msdata=none -memb -ffunction-sections -fdata-sections
# -x c: compile as c code # -x c: compile as c code
@ -82,6 +82,11 @@ ifeq ($(DO_LOGGING), 1)
CXXFLAGS += -D__LOGGING__ CXXFLAGS += -D__LOGGING__
endif endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS += ASFLAGS +=
LDFLAG_COMMON += LDFLAG_COMMON +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions. # Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 1 WRAP_MALLOC := 1
# Sets the "-D__WUT__" compiling flag
USE_WUT := 0
# Target filename # Target filename
TARGET := $(notdir $(CURDIR)).mod TARGET := $(notdir $(CURDIR)).mod