diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 07:19:19 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-09-07 07:19:19 -0600 |
commit | 0245ea571aff1a005054c608dd187dbb4cfd194f (patch) | |
tree | 34837e2e1d7526d96124f2d02113b11f30429c93 /apps/examples | |
parent | e84faa17ebb87c6a2002c99193c5214a11cdf07e (diff) | |
download | nuttx-0245ea571aff1a005054c608dd187dbb4cfd194f.tar.gz nuttx-0245ea571aff1a005054c608dd187dbb4cfd194f.tar.bz2 nuttx-0245ea571aff1a005054c608dd187dbb4cfd194f.zip |
Determine the main object name from the main source name in every kernel build Makefile
Diffstat (limited to 'apps/examples')
64 files changed, 64 insertions, 0 deletions
diff --git a/apps/examples/adc/Makefile b/apps/examples/adc/Makefile index f6e4f21af..57d406f23 100644 --- a/apps/examples/adc/Makefile +++ b/apps/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/apps/examples/buttons/Makefile b/apps/examples/buttons/Makefile index 6726961bd..1b891e286 100644 --- a/apps/examples/buttons/Makefile +++ b/apps/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/apps/examples/can/Makefile b/apps/examples/can/Makefile index 562dad315..3898bb484 100644 --- a/apps/examples/can/Makefile +++ b/apps/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/apps/examples/cc3000/Makefile b/apps/examples/cc3000/Makefile index d18db504a..c5aa0290f 100644 --- a/apps/examples/cc3000/Makefile +++ b/apps/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/apps/examples/configdata/Makefile b/apps/examples/configdata/Makefile index 8a3895ad2..d88b7f744 100644 --- a/apps/examples/configdata/Makefile +++ b/apps/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/apps/examples/cpuhog/Makefile b/apps/examples/cpuhog/Makefile index cd296d6c9..468013334 100644 --- a/apps/examples/cpuhog/Makefile +++ b/apps/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/apps/examples/dhcpd/Makefile b/apps/examples/dhcpd/Makefile index 400c33b86..28f95ffd7 100644 --- a/apps/examples/dhcpd/Makefile +++ b/apps/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/apps/examples/discover/Makefile b/apps/examples/discover/Makefile index a5eef48ff..ae3c86263 100644 --- a/apps/examples/discover/Makefile +++ b/apps/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/apps/examples/elf/Makefile b/apps/examples/elf/Makefile index 2b5fc3666..cabb7e137 100644 --- a/apps/examples/elf/Makefile +++ b/apps/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/apps/examples/flash_test/Makefile b/apps/examples/flash_test/Makefile index ed1acbf4a..305de38e9 100644 --- a/apps/examples/flash_test/Makefile +++ b/apps/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/apps/examples/ftpc/Makefile b/apps/examples/ftpc/Makefile index 3d22160fc..74741b5ee 100644 --- a/apps/examples/ftpc/Makefile +++ b/apps/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/apps/examples/ftpd/Makefile b/apps/examples/ftpd/Makefile index 40f338b97..1e3255ff8 100644 --- a/apps/examples/ftpd/Makefile +++ b/apps/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/apps/examples/hidkbd/Makefile b/apps/examples/hidkbd/Makefile index a2ff8c98f..91d224fbe 100644 --- a/apps/examples/hidkbd/Makefile +++ b/apps/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/apps/examples/i2schar/Makefile b/apps/examples/i2schar/Makefile index 76e13d33d..8e3473aa1 100644 --- a/apps/examples/i2schar/Makefile +++ b/apps/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/apps/examples/igmp/Makefile b/apps/examples/igmp/Makefile index b5abbd040..1d9802412 100644 --- a/apps/examples/igmp/Makefile +++ b/apps/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/apps/examples/json/Makefile b/apps/examples/json/Makefile index 6ab14d3bb..9781102b4 100644 --- a/apps/examples/json/Makefile +++ b/apps/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/apps/examples/keypadtest/Makefile b/apps/examples/keypadtest/Makefile index 9d681dd90..726646c1e 100644 --- a/apps/examples/keypadtest/Makefile +++ b/apps/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/apps/examples/lcdrw/Makefile b/apps/examples/lcdrw/Makefile index 9fe351ae0..f6f2e3da0 100644 --- a/apps/examples/lcdrw/Makefile +++ b/apps/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/apps/examples/mm/Makefile b/apps/examples/mm/Makefile index c47ee7a14..24d2abb80 100644 --- a/apps/examples/mm/Makefile +++ b/apps/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/apps/examples/modbus/Makefile b/apps/examples/modbus/Makefile index 6b48e343a..0ab84590c 100644 --- a/apps/examples/modbus/Makefile +++ b/apps/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/apps/examples/mount/Makefile b/apps/examples/mount/Makefile index a3ef8f48a..77f224819 100644 --- a/apps/examples/mount/Makefile +++ b/apps/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/apps/examples/mtdpart/Makefile b/apps/examples/mtdpart/Makefile index 2acea02db..0b58c42f1 100755 --- a/apps/examples/mtdpart/Makefile +++ b/apps/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/apps/examples/netpkt/Makefile b/apps/examples/netpkt/Makefile index 490ac78c4..46666be76 100644 --- a/apps/examples/netpkt/Makefile +++ b/apps/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/apps/examples/nrf24l01_term/Makefile b/apps/examples/nrf24l01_term/Makefile index 536677431..18b5fb07e 100644 --- a/apps/examples/nrf24l01_term/Makefile +++ b/apps/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/apps/examples/nsh/Makefile b/apps/examples/nsh/Makefile index 69d47dc3d..ea20b7498 100644 --- a/apps/examples/nsh/Makefile +++ b/apps/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/apps/examples/null/Makefile b/apps/examples/null/Makefile index a1a10228d..4a0a72186 100644 --- a/apps/examples/null/Makefile +++ b/apps/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/apps/examples/nx/Makefile b/apps/examples/nx/Makefile index 5654891ad..fadcddfa5 100644 --- a/apps/examples/nx/Makefile +++ b/apps/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/apps/examples/nxconsole/Makefile b/apps/examples/nxconsole/Makefile index 48bf1ddce..6110091b7 100644 --- a/apps/examples/nxconsole/Makefile +++ b/apps/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/apps/examples/nxffs/Makefile b/apps/examples/nxffs/Makefile index 9a4daf716..adddc943a 100644 --- a/apps/examples/nxffs/Makefile +++ b/apps/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/apps/examples/nxflat/Makefile b/apps/examples/nxflat/Makefile index 1a04e5b0d..a0c198d9d 100644 --- a/apps/examples/nxflat/Makefile +++ b/apps/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/apps/examples/nxhello/Makefile b/apps/examples/nxhello/Makefile index fd2a6e2f0..eda438921 100644 --- a/apps/examples/nxhello/Makefile +++ b/apps/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/apps/examples/nximage/Makefile b/apps/examples/nximage/Makefile index aee3e2348..8218b9b49 100644 --- a/apps/examples/nximage/Makefile +++ b/apps/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/apps/examples/nxlines/Makefile b/apps/examples/nxlines/Makefile index 22670150a..956195daa 100644 --- a/apps/examples/nxlines/Makefile +++ b/apps/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/apps/examples/nxtext/Makefile b/apps/examples/nxtext/Makefile index 06cb5bbfb..8df34d8fd 100644 --- a/apps/examples/nxtext/Makefile +++ b/apps/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/apps/examples/ostest/Makefile b/apps/examples/ostest/Makefile index 890f31087..d121c683e 100644 --- a/apps/examples/ostest/Makefile +++ b/apps/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/apps/examples/pashello/Makefile b/apps/examples/pashello/Makefile index 6f5c2a3e1..13ce7be97 100644 --- a/apps/examples/pashello/Makefile +++ b/apps/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/apps/examples/pipe/Makefile b/apps/examples/pipe/Makefile index ecc9fc6a6..0c65902c1 100644 --- a/apps/examples/pipe/Makefile +++ b/apps/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/apps/examples/poll/Makefile b/apps/examples/poll/Makefile index e4ab42b60..de263d515 100644 --- a/apps/examples/poll/Makefile +++ b/apps/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/apps/examples/posix_spawn/Makefile b/apps/examples/posix_spawn/Makefile index fb41855e0..186777aeb 100644 --- a/apps/examples/posix_spawn/Makefile +++ b/apps/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/apps/examples/pwm/Makefile b/apps/examples/pwm/Makefile index 1ba65ef70..c6513db90 100644 --- a/apps/examples/pwm/Makefile +++ b/apps/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/apps/examples/qencoder/Makefile b/apps/examples/qencoder/Makefile index f831dd766..c590fdb17 100644 --- a/apps/examples/qencoder/Makefile +++ b/apps/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/apps/examples/random/Makefile b/apps/examples/random/Makefile index 4ff9d33f3..49cb92730 100644 --- a/apps/examples/random/Makefile +++ b/apps/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/apps/examples/relays/Makefile b/apps/examples/relays/Makefile index 70c47017b..b4844e5d8 100644 --- a/apps/examples/relays/Makefile +++ b/apps/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/apps/examples/rgmp/Makefile b/apps/examples/rgmp/Makefile index 0349059e7..23b73b67e 100644 --- a/apps/examples/rgmp/Makefile +++ b/apps/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/apps/examples/romfs/Makefile b/apps/examples/romfs/Makefile index 6143b5e51..a9fb891fc 100644 --- a/apps/examples/romfs/Makefile +++ b/apps/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/apps/examples/sendmail/Makefile b/apps/examples/sendmail/Makefile index 83ef65128..1e71ec08d 100644 --- a/apps/examples/sendmail/Makefile +++ b/apps/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/apps/examples/serialblaster/Makefile b/apps/examples/serialblaster/Makefile index c14034a14..d5944283d 100644 --- a/apps/examples/serialblaster/Makefile +++ b/apps/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/apps/examples/serialrx/Makefile b/apps/examples/serialrx/Makefile index 3fc16e4fe..24d17db66 100644 --- a/apps/examples/serialrx/Makefile +++ b/apps/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/apps/examples/serloop/Makefile b/apps/examples/serloop/Makefile index 956d60ddf..adc77606f 100644 --- a/apps/examples/serloop/Makefile +++ b/apps/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/apps/examples/slcd/Makefile b/apps/examples/slcd/Makefile index 0289a8736..419b936c4 100644 --- a/apps/examples/slcd/Makefile +++ b/apps/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/apps/examples/smart/Makefile b/apps/examples/smart/Makefile index 3d97f340e..b16aa7827 100644 --- a/apps/examples/smart/Makefile +++ b/apps/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/apps/examples/smart_test/Makefile b/apps/examples/smart_test/Makefile index 2acbb0a1c..58d1d0477 100644 --- a/apps/examples/smart_test/Makefile +++ b/apps/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/apps/examples/tcpecho/Makefile b/apps/examples/tcpecho/Makefile index 145609a31..165efb385 100644 --- a/apps/examples/tcpecho/Makefile +++ b/apps/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/apps/examples/telnetd/Makefile b/apps/examples/telnetd/Makefile index ab3ab4505..7519a9244 100644 --- a/apps/examples/telnetd/Makefile +++ b/apps/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/apps/examples/thttpd/Makefile b/apps/examples/thttpd/Makefile index 0590134db..2b51a86b9 100644 --- a/apps/examples/thttpd/Makefile +++ b/apps/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/apps/examples/tiff/Makefile b/apps/examples/tiff/Makefile index 2194450e2..2a23c384e 100644 --- a/apps/examples/tiff/Makefile +++ b/apps/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/apps/examples/touchscreen/Makefile b/apps/examples/touchscreen/Makefile index 40b5bb37b..1a39981e9 100644 --- a/apps/examples/touchscreen/Makefile +++ b/apps/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/apps/examples/usbserial/Makefile b/apps/examples/usbserial/Makefile index dcc608764..25c45547d 100644 --- a/apps/examples/usbserial/Makefile +++ b/apps/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/apps/examples/usbterm/Makefile b/apps/examples/usbterm/Makefile index 315a431ea..51276d203 100644 --- a/apps/examples/usbterm/Makefile +++ b/apps/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/apps/examples/watchdog/Makefile b/apps/examples/watchdog/Makefile index fc875e351..ee0142938 100644 --- a/apps/examples/watchdog/Makefile +++ b/apps/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/apps/examples/webserver/Makefile b/apps/examples/webserver/Makefile index 8e87baae2..61fcbec1f 100644 --- a/apps/examples/webserver/Makefile +++ b/apps/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/apps/examples/wget/Makefile b/apps/examples/wget/Makefile index 376832ffb..3af7eb352 100644 --- a/apps/examples/wget/Makefile +++ b/apps/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/apps/examples/wgetjson/Makefile b/apps/examples/wgetjson/Makefile index 63f8f019b..a0d613b2d 100644 --- a/apps/examples/wgetjson/Makefile +++ b/apps/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/apps/examples/xmlrpc/Makefile b/apps/examples/xmlrpc/Makefile index dad5eed0d..ec4e0c1a6 100644 --- a/apps/examples/xmlrpc/Makefile +++ b/apps/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) |