diff --git a/examples/adc/Makefile b/examples/adc/Makefile index f6e4f21af..57d406f23 100644 --- a/examples/adc/Makefile +++ b/examples/adc/Makefile @@ -44,6 +44,7 @@ CSRCS = adc_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/buttons/Makefile b/examples/buttons/Makefile index 6726961bd..1b891e286 100644 --- a/examples/buttons/Makefile +++ b/examples/buttons/Makefile @@ -44,6 +44,7 @@ CSRCS = buttons_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/can/Makefile b/examples/can/Makefile index 562dad315..3898bb484 100644 --- a/examples/can/Makefile +++ b/examples/can/Makefile @@ -44,6 +44,7 @@ CSRCS = can_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/cc3000/Makefile b/examples/cc3000/Makefile index d18db504a..c5aa0290f 100644 --- a/examples/cc3000/Makefile +++ b/examples/cc3000/Makefile @@ -54,6 +54,7 @@ CSRCS = cc3000basic.c board.c shell.c telnetd_driver.c telnetd_daemon.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/configdata/Makefile b/examples/configdata/Makefile index 8a3895ad2..d88b7f744 100644 --- a/examples/configdata/Makefile +++ b/examples/configdata/Makefile @@ -44,6 +44,7 @@ CSRCS = configdata_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/cpuhog/Makefile b/examples/cpuhog/Makefile index cd296d6c9..468013334 100644 --- a/examples/cpuhog/Makefile +++ b/examples/cpuhog/Makefile @@ -44,6 +44,7 @@ CSRCS = cpuhog_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/dhcpd/Makefile b/examples/dhcpd/Makefile index 400c33b86..28f95ffd7 100644 --- a/examples/dhcpd/Makefile +++ b/examples/dhcpd/Makefile @@ -44,6 +44,7 @@ CSRCS = target.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/discover/Makefile b/examples/discover/Makefile index a5eef48ff..ae3c86263 100644 --- a/examples/discover/Makefile +++ b/examples/discover/Makefile @@ -51,6 +51,7 @@ CSRCS = discover_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/elf/Makefile b/examples/elf/Makefile index 2b5fc3666..cabb7e137 100644 --- a/examples/elf/Makefile +++ b/examples/elf/Makefile @@ -44,6 +44,7 @@ CSRCS = elf_main.c symtab.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/flash_test/Makefile b/examples/flash_test/Makefile index ed1acbf4a..305de38e9 100644 --- a/examples/flash_test/Makefile +++ b/examples/flash_test/Makefile @@ -53,6 +53,7 @@ CSRCS = flash_test.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/ftpc/Makefile b/examples/ftpc/Makefile index 3d22160fc..74741b5ee 100644 --- a/examples/ftpc/Makefile +++ b/examples/ftpc/Makefile @@ -48,6 +48,7 @@ CSRCS = ftpc_main.c ftpc_cmds.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/ftpd/Makefile b/examples/ftpd/Makefile index 40f338b97..1e3255ff8 100644 --- a/examples/ftpd/Makefile +++ b/examples/ftpd/Makefile @@ -44,6 +44,7 @@ CSRCS = ftpd_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/hidkbd/Makefile b/examples/hidkbd/Makefile index a2ff8c98f..91d224fbe 100644 --- a/examples/hidkbd/Makefile +++ b/examples/hidkbd/Makefile @@ -44,6 +44,7 @@ CSRCS = hidkbd_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/i2schar/Makefile b/examples/i2schar/Makefile index 76e13d33d..8e3473aa1 100644 --- a/examples/i2schar/Makefile +++ b/examples/i2schar/Makefile @@ -50,6 +50,7 @@ endif AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/igmp/Makefile b/examples/igmp/Makefile index b5abbd040..1d9802412 100644 --- a/examples/igmp/Makefile +++ b/examples/igmp/Makefile @@ -48,6 +48,7 @@ CSRCS = igmp.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/json/Makefile b/examples/json/Makefile index 6ab14d3bb..9781102b4 100644 --- a/examples/json/Makefile +++ b/examples/json/Makefile @@ -48,6 +48,7 @@ CSRCS = json_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/keypadtest/Makefile b/examples/keypadtest/Makefile index 9d681dd90..726646c1e 100644 --- a/examples/keypadtest/Makefile +++ b/examples/keypadtest/Makefile @@ -44,6 +44,7 @@ CSRCS = keypadtest_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/lcdrw/Makefile b/examples/lcdrw/Makefile index 9fe351ae0..f6f2e3da0 100644 --- a/examples/lcdrw/Makefile +++ b/examples/lcdrw/Makefile @@ -44,6 +44,7 @@ CSRCS = lcdrw_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/mm/Makefile b/examples/mm/Makefile index c47ee7a14..24d2abb80 100644 --- a/examples/mm/Makefile +++ b/examples/mm/Makefile @@ -44,6 +44,7 @@ CSRCS = mm_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/modbus/Makefile b/examples/modbus/Makefile index 6b48e343a..0ab84590c 100644 --- a/examples/modbus/Makefile +++ b/examples/modbus/Makefile @@ -50,6 +50,7 @@ CSRCS = modbus_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/mount/Makefile b/examples/mount/Makefile index a3ef8f48a..77f224819 100644 --- a/examples/mount/Makefile +++ b/examples/mount/Makefile @@ -44,6 +44,7 @@ CSRCS = mount_main.c ramdisk.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/mtdpart/Makefile b/examples/mtdpart/Makefile index 2acea02db..0b58c42f1 100755 --- a/examples/mtdpart/Makefile +++ b/examples/mtdpart/Makefile @@ -44,6 +44,7 @@ CSRCS = mtdpart_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/netpkt/Makefile b/examples/netpkt/Makefile index 490ac78c4..46666be76 100644 --- a/examples/netpkt/Makefile +++ b/examples/netpkt/Makefile @@ -50,6 +50,7 @@ CSRCS = netpkt_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nrf24l01_term/Makefile b/examples/nrf24l01_term/Makefile index 536677431..18b5fb07e 100644 --- a/examples/nrf24l01_term/Makefile +++ b/examples/nrf24l01_term/Makefile @@ -44,6 +44,7 @@ CSRCS = nrf24l01_term.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nsh/Makefile b/examples/nsh/Makefile index 69d47dc3d..ea20b7498 100644 --- a/examples/nsh/Makefile +++ b/examples/nsh/Makefile @@ -44,6 +44,7 @@ CSRCS = nsh_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/null/Makefile b/examples/null/Makefile index a1a10228d..4a0a72186 100644 --- a/examples/null/Makefile +++ b/examples/null/Makefile @@ -44,6 +44,7 @@ CSRCS = null_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nx/Makefile b/examples/nx/Makefile index 5654891ad..fadcddfa5 100644 --- a/examples/nx/Makefile +++ b/examples/nx/Makefile @@ -47,6 +47,7 @@ endif AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nxconsole/Makefile b/examples/nxconsole/Makefile index 48bf1ddce..6110091b7 100644 --- a/examples/nxconsole/Makefile +++ b/examples/nxconsole/Makefile @@ -44,6 +44,7 @@ CSRCS = nxcon_main.c nxcon_toolbar.c nxcon_wndo.c nxcon_server.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nxffs/Makefile b/examples/nxffs/Makefile index 9a4daf716..adddc943a 100644 --- a/examples/nxffs/Makefile +++ b/examples/nxffs/Makefile @@ -44,6 +44,7 @@ CSRCS = nxffs_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nxflat/Makefile b/examples/nxflat/Makefile index 1a04e5b0d..a0c198d9d 100644 --- a/examples/nxflat/Makefile +++ b/examples/nxflat/Makefile @@ -44,6 +44,7 @@ CSRCS = nxflat_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nxhello/Makefile b/examples/nxhello/Makefile index fd2a6e2f0..eda438921 100644 --- a/examples/nxhello/Makefile +++ b/examples/nxhello/Makefile @@ -44,6 +44,7 @@ CSRCS = nxhello_main.c nxhello_bkgd.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nximage/Makefile b/examples/nximage/Makefile index aee3e2348..8218b9b49 100644 --- a/examples/nximage/Makefile +++ b/examples/nximage/Makefile @@ -44,6 +44,7 @@ CSRCS = nximage_main.c nximage_bkgd.c nximage_bitmap.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nxlines/Makefile b/examples/nxlines/Makefile index 22670150a..956195daa 100644 --- a/examples/nxlines/Makefile +++ b/examples/nxlines/Makefile @@ -44,6 +44,7 @@ CSRCS = nxlines_main.c nxlines_bkgd.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/nxtext/Makefile b/examples/nxtext/Makefile index 06cb5bbfb..8df34d8fd 100644 --- a/examples/nxtext/Makefile +++ b/examples/nxtext/Makefile @@ -48,6 +48,7 @@ endif AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/ostest/Makefile b/examples/ostest/Makefile index 890f31087..d121c683e 100644 --- a/examples/ostest/Makefile +++ b/examples/ostest/Makefile @@ -99,6 +99,7 @@ endif # CONFIG_DISABLE_SIGNALS AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/pashello/Makefile b/examples/pashello/Makefile index 6f5c2a3e1..13ce7be97 100644 --- a/examples/pashello/Makefile +++ b/examples/pashello/Makefile @@ -52,6 +52,7 @@ CSRCS = pashello.c device.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/pipe/Makefile b/examples/pipe/Makefile index ecc9fc6a6..0c65902c1 100644 --- a/examples/pipe/Makefile +++ b/examples/pipe/Makefile @@ -44,6 +44,7 @@ CSRCS = pipe_main.c transfer_test.c interlock_test.c redirect_test.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/poll/Makefile b/examples/poll/Makefile index e4ab42b60..de263d515 100644 --- a/examples/poll/Makefile +++ b/examples/poll/Makefile @@ -44,6 +44,7 @@ CSRCS = poll_main.c poll_listener.c select_listener.c net_listener.c net_reader AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/posix_spawn/Makefile b/examples/posix_spawn/Makefile index fb41855e0..186777aeb 100644 --- a/examples/posix_spawn/Makefile +++ b/examples/posix_spawn/Makefile @@ -44,6 +44,7 @@ CSRCS = spawn_main.c symtab.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/pwm/Makefile b/examples/pwm/Makefile index 1ba65ef70..c6513db90 100644 --- a/examples/pwm/Makefile +++ b/examples/pwm/Makefile @@ -44,6 +44,7 @@ CSRCS = pwm_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/qencoder/Makefile b/examples/qencoder/Makefile index f831dd766..c590fdb17 100644 --- a/examples/qencoder/Makefile +++ b/examples/qencoder/Makefile @@ -44,6 +44,7 @@ CSRCS = qe_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/random/Makefile b/examples/random/Makefile index 4ff9d33f3..49cb92730 100644 --- a/examples/random/Makefile +++ b/examples/random/Makefile @@ -48,6 +48,7 @@ CSRCS = random_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/relays/Makefile b/examples/relays/Makefile index 70c47017b..b4844e5d8 100644 --- a/examples/relays/Makefile +++ b/examples/relays/Makefile @@ -44,6 +44,7 @@ CSRCS = relays_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/rgmp/Makefile b/examples/rgmp/Makefile index 0349059e7..23b73b67e 100644 --- a/examples/rgmp/Makefile +++ b/examples/rgmp/Makefile @@ -44,6 +44,7 @@ CSRCS = rgmp_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/romfs/Makefile b/examples/romfs/Makefile index 6143b5e51..a9fb891fc 100644 --- a/examples/romfs/Makefile +++ b/examples/romfs/Makefile @@ -44,6 +44,7 @@ CSRCS = romfs_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/sendmail/Makefile b/examples/sendmail/Makefile index 83ef65128..1e71ec08d 100644 --- a/examples/sendmail/Makefile +++ b/examples/sendmail/Makefile @@ -44,6 +44,7 @@ CSRCS = target.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/serialblaster/Makefile b/examples/serialblaster/Makefile index c14034a14..d5944283d 100644 --- a/examples/serialblaster/Makefile +++ b/examples/serialblaster/Makefile @@ -44,6 +44,7 @@ CSRCS = serialblaster_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/serialrx/Makefile b/examples/serialrx/Makefile index 3fc16e4fe..24d17db66 100644 --- a/examples/serialrx/Makefile +++ b/examples/serialrx/Makefile @@ -44,6 +44,7 @@ CSRCS = serialrx_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/serloop/Makefile b/examples/serloop/Makefile index 956d60ddf..adc77606f 100644 --- a/examples/serloop/Makefile +++ b/examples/serloop/Makefile @@ -44,6 +44,7 @@ CSRCS = serloop_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/slcd/Makefile b/examples/slcd/Makefile index 0289a8736..419b936c4 100644 --- a/examples/slcd/Makefile +++ b/examples/slcd/Makefile @@ -50,6 +50,7 @@ CSRCS = slcd_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/smart/Makefile b/examples/smart/Makefile index 3d97f340e..b16aa7827 100644 --- a/examples/smart/Makefile +++ b/examples/smart/Makefile @@ -44,6 +44,7 @@ CSRCS = smart_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/smart_test/Makefile b/examples/smart_test/Makefile index 2acbb0a1c..58d1d0477 100644 --- a/examples/smart_test/Makefile +++ b/examples/smart_test/Makefile @@ -53,6 +53,7 @@ CSRCS = smart_test.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/tcpecho/Makefile b/examples/tcpecho/Makefile index 145609a31..165efb385 100644 --- a/examples/tcpecho/Makefile +++ b/examples/tcpecho/Makefile @@ -51,6 +51,7 @@ CSRCS = tcpecho_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/telnetd/Makefile b/examples/telnetd/Makefile index ab3ab4505..7519a9244 100644 --- a/examples/telnetd/Makefile +++ b/examples/telnetd/Makefile @@ -44,6 +44,7 @@ CSRCS = telnetd.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/thttpd/Makefile b/examples/thttpd/Makefile index 0590134db..2b51a86b9 100644 --- a/examples/thttpd/Makefile +++ b/examples/thttpd/Makefile @@ -44,6 +44,7 @@ CSRCS = thttpd_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/tiff/Makefile b/examples/tiff/Makefile index 2194450e2..2a23c384e 100644 --- a/examples/tiff/Makefile +++ b/examples/tiff/Makefile @@ -44,6 +44,7 @@ CSRCS = tiff_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/touchscreen/Makefile b/examples/touchscreen/Makefile index 40b5bb37b..1a39981e9 100644 --- a/examples/touchscreen/Makefile +++ b/examples/touchscreen/Makefile @@ -44,6 +44,7 @@ CSRCS = tc_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/usbserial/Makefile b/examples/usbserial/Makefile index dcc608764..25c45547d 100644 --- a/examples/usbserial/Makefile +++ b/examples/usbserial/Makefile @@ -43,6 +43,7 @@ CSRCS = usbserial_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/usbterm/Makefile b/examples/usbterm/Makefile index 315a431ea..51276d203 100644 --- a/examples/usbterm/Makefile +++ b/examples/usbterm/Makefile @@ -44,6 +44,7 @@ CSRCS = usbterm_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/watchdog/Makefile b/examples/watchdog/Makefile index fc875e351..ee0142938 100644 --- a/examples/watchdog/Makefile +++ b/examples/watchdog/Makefile @@ -44,6 +44,7 @@ CSRCS = watchdog_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/webserver/Makefile b/examples/webserver/Makefile index 8e87baae2..61fcbec1f 100644 --- a/examples/webserver/Makefile +++ b/examples/webserver/Makefile @@ -44,6 +44,7 @@ CSRCS = webserver_main.c cgi.c httpd_fsdata.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/wget/Makefile b/examples/wget/Makefile index 376832ffb..3af7eb352 100644 --- a/examples/wget/Makefile +++ b/examples/wget/Makefile @@ -44,6 +44,7 @@ CSRCS = target.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/wgetjson/Makefile b/examples/wgetjson/Makefile index 63f8f019b..a0d613b2d 100644 --- a/examples/wgetjson/Makefile +++ b/examples/wgetjson/Makefile @@ -44,6 +44,7 @@ CSRCS = wgetjson_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/examples/xmlrpc/Makefile b/examples/xmlrpc/Makefile index dad5eed0d..ec4e0c1a6 100644 --- a/examples/xmlrpc/Makefile +++ b/examples/xmlrpc/Makefile @@ -51,6 +51,7 @@ CSRCS = xmlrpc_main.c calls.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/graphics/screenshot/Makefile b/graphics/screenshot/Makefile index 121073465..0d1e2128d 100644 --- a/graphics/screenshot/Makefile +++ b/graphics/screenshot/Makefile @@ -48,6 +48,7 @@ CSRCS = screenshot_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/netutils/thttpd/Makefile b/netutils/thttpd/Makefile index e7c3a8249..5394550a6 100644 --- a/netutils/thttpd/Makefile +++ b/netutils/thttpd/Makefile @@ -48,6 +48,7 @@ endif AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/cdcacm/Makefile b/system/cdcacm/Makefile index 7e17cb42b..81b161f0b 100644 --- a/system/cdcacm/Makefile +++ b/system/cdcacm/Makefile @@ -44,6 +44,7 @@ CSRCS = cdcacm_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/composite/Makefile b/system/composite/Makefile index ca2853487..ee7a816ab 100644 --- a/system/composite/Makefile +++ b/system/composite/Makefile @@ -44,6 +44,7 @@ CSRCS = composite_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/flash_eraseall/Makefile b/system/flash_eraseall/Makefile index 4592bcf43..544903730 100644 --- a/system/flash_eraseall/Makefile +++ b/system/flash_eraseall/Makefile @@ -58,6 +58,7 @@ CSRCS = flash_eraseall.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/free/Makefile b/system/free/Makefile index 017aa0704..78f0553a8 100644 --- a/system/free/Makefile +++ b/system/free/Makefile @@ -54,6 +54,7 @@ CSRCS = free.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/hex2bin/Makefile b/system/hex2bin/Makefile index c26a6f188..5c4663467 100644 --- a/system/hex2bin/Makefile +++ b/system/hex2bin/Makefile @@ -52,6 +52,7 @@ endif AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/i2c/Makefile b/system/i2c/Makefile index ac7d715a4..8d4827177 100644 --- a/system/i2c/Makefile +++ b/system/i2c/Makefile @@ -44,6 +44,7 @@ CSRCS = i2c_bus.c i2c_common.c i2c_dev.c i2c_get.c i2c_main.c i2c_set.c i2c_verf AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/install/Makefile b/system/install/Makefile index f33abb5ba..4faeb38c1 100644 --- a/system/install/Makefile +++ b/system/install/Makefile @@ -58,6 +58,7 @@ CSRCS = install.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/mdio/Makefile b/system/mdio/Makefile index 605e7fc68..1d7d0d58c 100644 --- a/system/mdio/Makefile +++ b/system/mdio/Makefile @@ -50,6 +50,7 @@ CSRCS = mdio_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/nxplayer/Makefile b/system/nxplayer/Makefile index da9f29709..d0f5de6ec 100644 --- a/system/nxplayer/Makefile +++ b/system/nxplayer/Makefile @@ -60,6 +60,7 @@ endif AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/poweroff/Makefile b/system/poweroff/Makefile index 519079d0b..59e5c92c5 100644 --- a/system/poweroff/Makefile +++ b/system/poweroff/Makefile @@ -58,6 +58,7 @@ CSRCS = poweroff.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/prun/Makefile b/system/prun/Makefile index 5e594811c..5516a5523 100644 --- a/system/prun/Makefile +++ b/system/prun/Makefile @@ -64,6 +64,7 @@ endif AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/ramtest/Makefile b/system/ramtest/Makefile index 6669adbaf..7af004b15 100644 --- a/system/ramtest/Makefile +++ b/system/ramtest/Makefile @@ -51,6 +51,7 @@ CSRCS = ramtest.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/ramtron/Makefile b/system/ramtron/Makefile index f8c4fc213..3bdd708e2 100644 --- a/system/ramtron/Makefile +++ b/system/ramtron/Makefile @@ -58,6 +58,7 @@ CSRCS = ramtron.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/sdcard/Makefile b/system/sdcard/Makefile index c36175db6..7bc239927 100644 --- a/system/sdcard/Makefile +++ b/system/sdcard/Makefile @@ -58,6 +58,7 @@ CSRCS = sdcard.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/sudoku/Makefile b/system/sudoku/Makefile index 4a01959af..164eea25e 100644 --- a/system/sudoku/Makefile +++ b/system/sudoku/Makefile @@ -54,6 +54,7 @@ CSRCS = sudoku.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/sysinfo/Makefile b/system/sysinfo/Makefile index a9a0d0a8d..5d60107a5 100644 --- a/system/sysinfo/Makefile +++ b/system/sysinfo/Makefile @@ -59,6 +59,7 @@ CSRCS = sysinfo.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/usbmsc/Makefile b/system/usbmsc/Makefile index 58a90560f..d01269730 100644 --- a/system/usbmsc/Makefile +++ b/system/usbmsc/Makefile @@ -44,6 +44,7 @@ CSRCS = usbmsc_main.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/vi/Makefile b/system/vi/Makefile index 60357dc46..9a0709006 100644 --- a/system/vi/Makefile +++ b/system/vi/Makefile @@ -55,6 +55,7 @@ CSRCS = vi.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS) diff --git a/system/zmodem/Makefile b/system/zmodem/Makefile index c2e326162..ad0edc9e8 100644 --- a/system/zmodem/Makefile +++ b/system/zmodem/Makefile @@ -54,6 +54,7 @@ CSRCS += zm_state.c zm_proto.c zm_watchdog.c zm_utils.c zm_dumpbuffer.c AOBJS = $(ASRCS:.S=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT)) +MAINOBJ = $(MAINSRC:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) $(MAINSRC) OBJS = $(AOBJS) $(COBJS)