mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2025-01-24 06:51:26 +01:00
[Makefile] Added LD flags to the makefile.mk, removed unneeded directory in EXTERNAL_INCLUDE
This commit is contained in:
parent
6ca382bf6e
commit
544a4da57c
@ -1,4 +1,5 @@
|
|||||||
|
# You probably never need to adjust this Makefile.
|
||||||
|
# All changes can be done in the makefile.mk
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Clear the implicit built in rules
|
# Clear the implicit built in rules
|
||||||
@ -81,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -180,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
@ -206,7 +207,7 @@ output.elf : $(OFILES)
|
|||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
@echo $(notdir $<)
|
@echo $(notdir $<)
|
||||||
$(CC) -MMD -MP -MF $(DEPSDIR)/$*.d $(CFLAGS) $(INCLUDE_FULL) -c $< -o $@ $(ERROR_FILTER)
|
@$(CC) -MMD -MP -MF $(DEPSDIR)/$*.d $(CFLAGS) $(INCLUDE_FULL) -c $< -o $@ $(ERROR_FILTER)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
%.o: %.S
|
%.o: %.S
|
||||||
|
@ -14,12 +14,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -43,5 +49,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
||||||
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -14,12 +14,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -43,5 +49,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
||||||
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -14,12 +14,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -43,5 +49,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
||||||
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -14,12 +14,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -43,5 +49,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
||||||
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -14,12 +14,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -43,5 +49,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
||||||
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -14,12 +14,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -43,5 +49,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
||||||
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -14,12 +14,19 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -43,5 +50,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
||||||
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -14,12 +14,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -43,5 +49,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@ TARGET := $(notdir $(CURDIR)).mod
|
|||||||
# Source directories
|
# Source directories
|
||||||
SOURCES := src \
|
SOURCES := src \
|
||||||
src/common \
|
src/common \
|
||||||
src/myfs \
|
src/myfs
|
||||||
|
|
||||||
# Data directories
|
# Data directories
|
||||||
DATA :=
|
DATA :=
|
||||||
@ -16,12 +16,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# Extra C++ compiler flags
|
||||||
CXXFLAGS := -D_GNU_SOURCE
|
CXXFLAGS := -D_GNU_SOURCE
|
||||||
|
# Extra linking flags for all linking steps
|
||||||
|
LD_FLAGS :=
|
||||||
|
# extra linking flags for linking the temporarily elf file (using ld)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -46,5 +52,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
||||||
-I$(PORTLIBS)/include/libfswrapper \
|
-I$(PORTLIBS)/include/libfswrapper
|
||||||
-I$(WUPSDIR)/include
|
|
@ -82,8 +82,8 @@ endif
|
|||||||
ASFLAGS +=
|
ASFLAGS +=
|
||||||
|
|
||||||
LDFLAG_COMMON +=
|
LDFLAG_COMMON +=
|
||||||
LDFLAGS_MOD +=
|
LDFLAGS_MOD += $(LD_FLAGS_MOD)
|
||||||
LDFLAGS_ELF +=
|
LDFLAGS_ELF += $(LD_FLAGS_ELF)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
Q := @
|
Q := @
|
||||||
@ -181,7 +181,7 @@ all : $(OUTPUT)
|
|||||||
# Rule to make the module file.
|
# Rule to make the module file.
|
||||||
$(OUTPUT) : output.elf
|
$(OUTPUT) : output.elf
|
||||||
@echo "checking for missing symbols ..."
|
@echo "checking for missing symbols ..."
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAG_COMMON) $(LD_FLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o check_linking.elf
|
||||||
@echo "linking ..." $@
|
@echo "linking ..." $@
|
||||||
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
@$(LD_MOD) ../$(BUILD)/output.elf $(LDFLAGS_MOD) $(ALL_LIBS) $(LIBPATHS_FULL) -o $@
|
||||||
|
|
||||||
|
@ -16,12 +16,18 @@ DATA :=
|
|||||||
INCLUDES := src
|
INCLUDES := src
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# options for code generation
|
# options for code generation and linking
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# Extra C compiler flags
|
# Extra C compiler flags
|
||||||
CFLAGS :=
|
CFLAGS :=
|
||||||
# Extra C++ compiler flags
|
# 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)
|
||||||
|
LD_FLAGS_ELF :=
|
||||||
|
# extra linking flags for linking the final mod file (using gcc/g++)
|
||||||
|
LD_FLAGS_MOD :=
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
# list of directories containing libraries, this must be the top level containing
|
# list of directories containing libraries, this must be the top level containing
|
||||||
@ -45,5 +51,4 @@ EXTERNAL_LIBPATHS :=
|
|||||||
# Will be added to the final include paths
|
# Will be added to the final include paths
|
||||||
# -IC:/library1/include
|
# -IC:/library1/include
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils \
|
EXTERNAL_INCLUDE := -I$(PORTLIBS)/include/libutils
|
||||||
-I$(WUPSDIR)/include
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user