Application.mk: Fix some issues when building directories such as fsutils/mkfatfs that have not mainobj. In this case, the MAINSRC is undefined and it would generate a bad linker command line.
This commit is contained in:
parent
3921bbad79
commit
305278d1ae
@ -187,10 +187,12 @@ PROGLIST := $(addprefix $(PROGPRFX),$(PROGNAME))
|
|||||||
PROGOBJ := $(MAINOBJ)
|
PROGOBJ := $(MAINOBJ)
|
||||||
|
|
||||||
.proglist: $(MAINOBJ) $(OBJS)
|
.proglist: $(MAINOBJ) $(OBJS)
|
||||||
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $(firstword $(PROGLIST)) $(ARCHCRT0OBJ) $(firstword $(PROGOBJ)) $(LDLIBS)
|
ifneq ($(PROGOBJ),)
|
||||||
|
$(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) $(ARCHCRT0OBJ) $(firstword $(PROGOBJ)) $(LDLIBS) -o $(firstword $(PROGLIST))
|
||||||
$(Q) $(NM) -u $(firstword $(PROGLIST))
|
$(Q) $(NM) -u $(firstword $(PROGLIST))
|
||||||
$(eval PROGLIST=$(filter-out $(firstword $(PROGLIST)),$(PROGLIST)))
|
$(eval PROGLIST=$(filter-out $(firstword $(PROGLIST)),$(PROGLIST)))
|
||||||
$(eval PROGOBJ=$(filter-out $(firstword $(PROGOBJ)),$(PROGOBJ)))
|
$(eval PROGOBJ=$(filter-out $(firstword $(PROGOBJ)),$(PROGOBJ)))
|
||||||
|
endif
|
||||||
|
|
||||||
install:: .proglist
|
install:: .proglist
|
||||||
|
|
||||||
|
1
examples/hello/.gitignore
vendored
1
examples/hello/.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
/hello
|
||||||
/Make.dep
|
/Make.dep
|
||||||
/.depend
|
/.depend
|
||||||
/.built
|
/.built
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
# mkfatfs utility
|
# mkfatfs utility
|
||||||
|
|
||||||
ifeq ($(CONFIG_FSUTILS_MKFATFS),y)
|
ifeq ($(CONFIG_FSUTILS_MKFATFS),y)
|
||||||
CSRCS = mkfatfs.c configfat.c writefat.c
|
CSRCS = mkfatfs.c configfat.c writefat.c
|
||||||
endif
|
endif
|
||||||
|
@ -37,7 +37,8 @@
|
|||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
# Web client library
|
# SmartFS file utility
|
||||||
|
|
||||||
ifeq ($(CONFIG_FSUTILS_MKSMARTFS),y)
|
ifeq ($(CONFIG_FSUTILS_MKSMARTFS),y)
|
||||||
CSRCS = mksmartfs.c
|
CSRCS = mksmartfs.c
|
||||||
endif
|
endif
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
# The Readline Library
|
# The Readline Library
|
||||||
|
|
||||||
CSRCS = readline.c readline_common.c
|
CSRCS = readline.c readline_common.c
|
||||||
|
|
||||||
include $(APPDIR)/Application.mk
|
include $(APPDIR)/Application.mk
|
||||||
|
Loading…
x
Reference in New Issue
Block a user