diff options
Diffstat (limited to 'apps/system')
-rw-r--r-- | apps/system/cdcacm/Makefile | 4 | ||||
-rw-r--r-- | apps/system/composite/Makefile | 4 | ||||
-rw-r--r-- | apps/system/flash_eraseall/Makefile | 4 | ||||
-rw-r--r-- | apps/system/free/Makefile | 4 | ||||
-rw-r--r-- | apps/system/hex2bin/Makefile | 4 | ||||
-rw-r--r-- | apps/system/i2c/Makefile | 4 | ||||
-rw-r--r-- | apps/system/install/Makefile | 4 | ||||
-rw-r--r-- | apps/system/mdio/Makefile | 4 | ||||
-rw-r--r-- | apps/system/nxplayer/Makefile | 4 | ||||
-rw-r--r-- | apps/system/poweroff/Makefile | 4 | ||||
-rw-r--r-- | apps/system/prun/Makefile | 4 | ||||
-rw-r--r-- | apps/system/ramtest/Makefile | 4 | ||||
-rw-r--r-- | apps/system/ramtron/Makefile | 4 | ||||
-rw-r--r-- | apps/system/sdcard/Makefile | 4 | ||||
-rw-r--r-- | apps/system/sudoku/Makefile | 4 | ||||
-rw-r--r-- | apps/system/sysinfo/Makefile | 4 | ||||
-rw-r--r-- | apps/system/usbmsc/Makefile | 4 | ||||
-rw-r--r-- | apps/system/vi/Makefile | 4 | ||||
-rw-r--r-- | apps/system/zmodem/Makefile | 4 |
19 files changed, 76 insertions, 0 deletions
diff --git a/apps/system/cdcacm/Makefile b/apps/system/cdcacm/Makefile index 8084c4880..c76dc278b 100644 --- a/apps/system/cdcacm/Makefile +++ b/apps/system/cdcacm/Makefile @@ -48,6 +48,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/composite/Makefile b/apps/system/composite/Makefile index 6edc5f403..093416b8a 100644 --- a/apps/system/composite/Makefile +++ b/apps/system/composite/Makefile @@ -48,6 +48,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/flash_eraseall/Makefile b/apps/system/flash_eraseall/Makefile index 40d0dc43b..5234d8c30 100644 --- a/apps/system/flash_eraseall/Makefile +++ b/apps/system/flash_eraseall/Makefile @@ -62,6 +62,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/free/Makefile b/apps/system/free/Makefile index 9f1edf527..7697e6c3d 100644 --- a/apps/system/free/Makefile +++ b/apps/system/free/Makefile @@ -58,6 +58,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/hex2bin/Makefile b/apps/system/hex2bin/Makefile index d77768778..674434fd1 100644 --- a/apps/system/hex2bin/Makefile +++ b/apps/system/hex2bin/Makefile @@ -56,6 +56,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/i2c/Makefile b/apps/system/i2c/Makefile index a72713298..520248789 100644 --- a/apps/system/i2c/Makefile +++ b/apps/system/i2c/Makefile @@ -48,6 +48,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/install/Makefile b/apps/system/install/Makefile index f664f21a1..ccf241f1e 100644 --- a/apps/system/install/Makefile +++ b/apps/system/install/Makefile @@ -62,6 +62,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/mdio/Makefile b/apps/system/mdio/Makefile index 4352a5b57..b22abf159 100644 --- a/apps/system/mdio/Makefile +++ b/apps/system/mdio/Makefile @@ -54,6 +54,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/nxplayer/Makefile b/apps/system/nxplayer/Makefile index 110319a78..8bbb0523e 100644 --- a/apps/system/nxplayer/Makefile +++ b/apps/system/nxplayer/Makefile @@ -64,6 +64,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/poweroff/Makefile b/apps/system/poweroff/Makefile index cd1dc7d81..f1aca05c5 100644 --- a/apps/system/poweroff/Makefile +++ b/apps/system/poweroff/Makefile @@ -62,6 +62,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/prun/Makefile b/apps/system/prun/Makefile index 48ba233f4..34bf1eec3 100644 --- a/apps/system/prun/Makefile +++ b/apps/system/prun/Makefile @@ -68,6 +68,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/ramtest/Makefile b/apps/system/ramtest/Makefile index b7ef04b39..01f2a96f4 100644 --- a/apps/system/ramtest/Makefile +++ b/apps/system/ramtest/Makefile @@ -55,6 +55,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/ramtron/Makefile b/apps/system/ramtron/Makefile index ad0579138..1ae263a48 100644 --- a/apps/system/ramtron/Makefile +++ b/apps/system/ramtron/Makefile @@ -62,6 +62,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/sdcard/Makefile b/apps/system/sdcard/Makefile index 961cd54a5..c5e0da4fa 100644 --- a/apps/system/sdcard/Makefile +++ b/apps/system/sdcard/Makefile @@ -62,6 +62,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/sudoku/Makefile b/apps/system/sudoku/Makefile index 6cca9af4d..f1bd2cafc 100644 --- a/apps/system/sudoku/Makefile +++ b/apps/system/sudoku/Makefile @@ -58,6 +58,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/sysinfo/Makefile b/apps/system/sysinfo/Makefile index ef5c6ca34..fbac32a7c 100644 --- a/apps/system/sysinfo/Makefile +++ b/apps/system/sysinfo/Makefile @@ -63,6 +63,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/usbmsc/Makefile b/apps/system/usbmsc/Makefile index 2f62907cf..86ad32fd7 100644 --- a/apps/system/usbmsc/Makefile +++ b/apps/system/usbmsc/Makefile @@ -48,6 +48,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/vi/Makefile b/apps/system/vi/Makefile index eb1b10c69..8e4c7c146 100644 --- a/apps/system/vi/Makefile +++ b/apps/system/vi/Makefile @@ -59,6 +59,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else diff --git a/apps/system/zmodem/Makefile b/apps/system/zmodem/Makefile index f544bf309..297f91b48 100644 --- a/apps/system/zmodem/Makefile +++ b/apps/system/zmodem/Makefile @@ -58,6 +58,10 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) +ifneq ($(CONFIG_BUILD_KERNEL),y) + OBJS += $(MAINOBJ) +endif + ifeq ($(CONFIG_WINDOWS_NATIVE),y) BIN = ..\..\libapps$(LIBEXT) else |