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
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

@ -4,6 +4,9 @@ DO_LOGGING := 1
# Non WUT plugins need to wrap the malloc functions.
WRAP_MALLOC := 0
# Sets the "-D__WUT__" compiling flag
USE_WUT := 1
# Target filename
TARGET := $(notdir $(CURDIR)).mod
@ -20,9 +23,9 @@ INCLUDES := src
# options for code generation and linking
#---------------------------------------------------------------------------------
# Extra C compiler flags
CFLAGS :=
CFLAGS :=
# Extra C++ compiler flags
CXXFLAGS :=
CXXFLAGS :=
# Extra linking flags for all linking steps
LD_FLAGS :=
# extra linking flags for linking the temporarily elf file (using ld)

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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

View File

@ -66,7 +66,7 @@ include $(WUPSDIR)/plugin_makefile.mk
# -memb: enable embedded application specific compilation
# -ffunction-sections: split up functions 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
@ -81,6 +81,11 @@ ifeq ($(DO_LOGGING), 1)
CFLAGS += -D__LOGGING__
CXXFLAGS += -D__LOGGING__
endif
ifeq ($(USE_WUT), 1)
CFLAGS += -D__WUT__
CXXFLAGS += -D__WUT__
endif
ASFLAGS +=

View File

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