From 0a4258db6d346b72da93009e75ce9897209fa662 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 11 Sep 2014 06:48:11 -0600 Subject: [PATCH] MAINOBJ needs to be added to object list in many Makefile --- examples/adc/Makefile | 2 +- examples/buttons/Makefile | 2 +- examples/can/Makefile | 2 +- examples/cc3000/Makefile | 2 +- examples/configdata/Makefile | 2 +- examples/cpuhog/Makefile | 2 +- examples/cxxtest/Makefile | 2 +- examples/dhcpd/Makefile | 2 +- examples/discover/Makefile | 2 +- examples/elf/Makefile | 2 +- examples/flash_test/Makefile | 2 +- examples/ftpc/Makefile | 2 +- examples/ftpd/Makefile | 2 +- examples/hello/Makefile | 2 +- examples/helloxx/Makefile | 2 +- examples/hidkbd/Makefile | 2 +- examples/i2schar/Makefile | 2 +- examples/igmp/Makefile | 2 +- examples/json/Makefile | 2 +- examples/keypadtest/Makefile | 2 +- examples/lcdrw/Makefile | 2 +- examples/mm/Makefile | 2 +- examples/modbus/Makefile | 2 +- examples/mount/Makefile | 2 +- examples/mtdpart/Makefile | 2 +- examples/netpkt/Makefile | 2 +- examples/nrf24l01_term/Makefile | 2 +- examples/nsh/Makefile | 2 +- examples/null/Makefile | 2 +- examples/nx/Makefile | 2 +- examples/nxconsole/Makefile | 2 +- examples/nxffs/Makefile | 2 +- examples/nxflat/Makefile | 2 +- examples/nxhello/Makefile | 2 +- examples/nximage/Makefile | 2 +- examples/nxlines/Makefile | 2 +- examples/nxtext/Makefile | 2 +- examples/ostest/Makefile | 2 +- examples/pashello/Makefile | 2 +- examples/pipe/Makefile | 2 +- examples/poll/Makefile | 2 +- examples/posix_spawn/Makefile | 2 +- examples/pwm/Makefile | 2 +- examples/qencoder/Makefile | 2 +- examples/random/Makefile | 2 +- examples/relays/Makefile | 2 +- examples/rgmp/Makefile | 2 +- examples/romfs/Makefile | 2 +- examples/sendmail/Makefile | 2 +- examples/serialblaster/Makefile | 2 +- examples/serialrx/Makefile | 2 +- examples/serloop/Makefile | 2 +- examples/slcd/Makefile | 2 +- examples/smart/Makefile | 2 +- examples/smart_test/Makefile | 2 +- examples/tcpecho/Makefile | 2 +- examples/telnetd/Makefile | 2 +- examples/thttpd/Makefile | 2 +- examples/tiff/Makefile | 2 +- examples/touchscreen/Makefile | 2 +- examples/usbserial/Makefile | 2 +- examples/usbterm/Makefile | 2 +- examples/watchdog/Makefile | 2 +- examples/webserver/Makefile | 2 +- examples/wget/Makefile | 2 +- examples/wgetjson/Makefile | 2 +- examples/xmlrpc/Makefile | 2 +- graphics/screenshot/Makefile | 2 +- netutils/thttpd/Makefile | 2 +- system/cdcacm/Makefile | 2 +- system/composite/Makefile | 2 +- system/flash_eraseall/Makefile | 2 +- system/free/Makefile | 2 +- system/hex2bin/Makefile | 2 +- system/i2c/Makefile | 2 +- system/install/Makefile | 2 +- system/mdio/Makefile | 2 +- system/nxplayer/Makefile | 2 +- system/poweroff/Makefile | 2 +- system/prun/Makefile | 2 +- system/ramtest/Makefile | 2 +- system/ramtron/Makefile | 2 +- system/sdcard/Makefile | 2 +- system/sudoku/Makefile | 2 +- system/sysinfo/Makefile | 2 +- system/usbmsc/Makefile | 2 +- system/vi/Makefile | 2 +- system/zmodem/Makefile | 2 +- 88 files changed, 88 insertions(+), 88 deletions(-) diff --git a/examples/adc/Makefile b/examples/adc/Makefile index 2c84db045..1cd406a80 100644 --- a/examples/adc/Makefile +++ b/examples/adc/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/buttons/Makefile b/examples/buttons/Makefile index 6310e5ba5..ed1361922 100644 --- a/examples/buttons/Makefile +++ b/examples/buttons/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/can/Makefile b/examples/can/Makefile index d9c837587..44d43ace8 100644 --- a/examples/can/Makefile +++ b/examples/can/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/cc3000/Makefile b/examples/cc3000/Makefile index a2e2e306b..fa385a81e 100644 --- a/examples/cc3000/Makefile +++ b/examples/cc3000/Makefile @@ -104,7 +104,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/configdata/Makefile b/examples/configdata/Makefile index b40f7b25b..c5b7dbe2d 100644 --- a/examples/configdata/Makefile +++ b/examples/configdata/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/cpuhog/Makefile b/examples/cpuhog/Makefile index 5ae7f8df1..b21f143c0 100644 --- a/examples/cpuhog/Makefile +++ b/examples/cpuhog/Makefile @@ -94,7 +94,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/cxxtest/Makefile b/examples/cxxtest/Makefile index 6961bce44..c690e88a8 100644 --- a/examples/cxxtest/Makefile +++ b/examples/cxxtest/Makefile @@ -101,7 +101,7 @@ endif $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) $(CXXOBJS): %$(OBJEXT): %.cxx diff --git a/examples/dhcpd/Makefile b/examples/dhcpd/Makefile index ad7f5d514..7ca4bed09 100644 --- a/examples/dhcpd/Makefile +++ b/examples/dhcpd/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/discover/Makefile b/examples/discover/Makefile index 6d419fd41..51abaf5dc 100644 --- a/examples/discover/Makefile +++ b/examples/discover/Makefile @@ -92,7 +92,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/elf/Makefile b/examples/elf/Makefile index 08fc74f06..c813e1eb1 100644 --- a/examples/elf/Makefile +++ b/examples/elf/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) # This is a little messy. The build is broken into two pieces: (1) the diff --git a/examples/flash_test/Makefile b/examples/flash_test/Makefile index d6889d854..ad91bed84 100644 --- a/examples/flash_test/Makefile +++ b/examples/flash_test/Makefile @@ -94,7 +94,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/ftpc/Makefile b/examples/ftpc/Makefile index 10698ba31..950677c9e 100644 --- a/examples/ftpc/Makefile +++ b/examples/ftpc/Makefile @@ -89,7 +89,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/ftpd/Makefile b/examples/ftpd/Makefile index 5037faad6..0675f0a46 100644 --- a/examples/ftpd/Makefile +++ b/examples/ftpd/Makefile @@ -86,7 +86,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/hello/Makefile b/examples/hello/Makefile index 56405cdbb..ce7c5fea2 100644 --- a/examples/hello/Makefile +++ b/examples/hello/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/helloxx/Makefile b/examples/helloxx/Makefile index 151c1faa1..6a5da5416 100644 --- a/examples/helloxx/Makefile +++ b/examples/helloxx/Makefile @@ -99,7 +99,7 @@ endif $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) $(CXXOBJS): %$(OBJEXT): %.cxx diff --git a/examples/hidkbd/Makefile b/examples/hidkbd/Makefile index db60dc76d..acb4d4e24 100644 --- a/examples/hidkbd/Makefile +++ b/examples/hidkbd/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/i2schar/Makefile b/examples/i2schar/Makefile index ba44b401f..3347fb66d 100644 --- a/examples/i2schar/Makefile +++ b/examples/i2schar/Makefile @@ -97,7 +97,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/igmp/Makefile b/examples/igmp/Makefile index 19a901670..1c58629b5 100644 --- a/examples/igmp/Makefile +++ b/examples/igmp/Makefile @@ -89,7 +89,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/json/Makefile b/examples/json/Makefile index aaea3f05d..3a19041c7 100644 --- a/examples/json/Makefile +++ b/examples/json/Makefile @@ -89,7 +89,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/keypadtest/Makefile b/examples/keypadtest/Makefile index 1c8959e94..6aefb4a8c 100644 --- a/examples/keypadtest/Makefile +++ b/examples/keypadtest/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/lcdrw/Makefile b/examples/lcdrw/Makefile index 1e9564cc2..35b2064f3 100644 --- a/examples/lcdrw/Makefile +++ b/examples/lcdrw/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/mm/Makefile b/examples/mm/Makefile index 7884d410f..155f811c9 100644 --- a/examples/mm/Makefile +++ b/examples/mm/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/modbus/Makefile b/examples/modbus/Makefile index e940a248a..b8bbce88c 100644 --- a/examples/modbus/Makefile +++ b/examples/modbus/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/mount/Makefile b/examples/mount/Makefile index 2d3ef52ce..f54edbb82 100644 --- a/examples/mount/Makefile +++ b/examples/mount/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/mtdpart/Makefile b/examples/mtdpart/Makefile index 769e6b891..8b418327c 100755 --- a/examples/mtdpart/Makefile +++ b/examples/mtdpart/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/netpkt/Makefile b/examples/netpkt/Makefile index f4fb2eef1..2f6d2eee5 100644 --- a/examples/netpkt/Makefile +++ b/examples/netpkt/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nrf24l01_term/Makefile b/examples/nrf24l01_term/Makefile index 8ce3e60cd..db267b59e 100644 --- a/examples/nrf24l01_term/Makefile +++ b/examples/nrf24l01_term/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nsh/Makefile b/examples/nsh/Makefile index 28d0cf6b6..bcfb1fb6c 100644 --- a/examples/nsh/Makefile +++ b/examples/nsh/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/null/Makefile b/examples/null/Makefile index a0c9d3a2b..3a63cb748 100644 --- a/examples/null/Makefile +++ b/examples/null/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nx/Makefile b/examples/nx/Makefile index 6b0d59d11..6c5d15063 100644 --- a/examples/nx/Makefile +++ b/examples/nx/Makefile @@ -94,7 +94,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nxconsole/Makefile b/examples/nxconsole/Makefile index eb358e790..5060cbeab 100644 --- a/examples/nxconsole/Makefile +++ b/examples/nxconsole/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nxffs/Makefile b/examples/nxffs/Makefile index 83f921bc3..0d92dc146 100644 --- a/examples/nxffs/Makefile +++ b/examples/nxffs/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nxflat/Makefile b/examples/nxflat/Makefile index 47e8d8ea1..ccc7d4c97 100644 --- a/examples/nxflat/Makefile +++ b/examples/nxflat/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) headers: diff --git a/examples/nxhello/Makefile b/examples/nxhello/Makefile index 5d6dc804f..bd41344c1 100644 --- a/examples/nxhello/Makefile +++ b/examples/nxhello/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nximage/Makefile b/examples/nximage/Makefile index b62fe3943..ec8a96709 100644 --- a/examples/nximage/Makefile +++ b/examples/nximage/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nxlines/Makefile b/examples/nxlines/Makefile index bc9e06816..fae42e1c3 100644 --- a/examples/nxlines/Makefile +++ b/examples/nxlines/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/nxtext/Makefile b/examples/nxtext/Makefile index f73dd42f2..5734b5554 100644 --- a/examples/nxtext/Makefile +++ b/examples/nxtext/Makefile @@ -95,7 +95,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/ostest/Makefile b/examples/ostest/Makefile index c6712038e..f21da9309 100644 --- a/examples/ostest/Makefile +++ b/examples/ostest/Makefile @@ -140,7 +140,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/pashello/Makefile b/examples/pashello/Makefile index ef9acad22..9db97eace 100644 --- a/examples/pashello/Makefile +++ b/examples/pashello/Makefile @@ -93,7 +93,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/pipe/Makefile b/examples/pipe/Makefile index 80ab25c27..45a76c19e 100644 --- a/examples/pipe/Makefile +++ b/examples/pipe/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/poll/Makefile b/examples/poll/Makefile index a9520255b..092945e85 100644 --- a/examples/poll/Makefile +++ b/examples/poll/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/posix_spawn/Makefile b/examples/posix_spawn/Makefile index 43d75885b..2227e0958 100644 --- a/examples/posix_spawn/Makefile +++ b/examples/posix_spawn/Makefile @@ -85,7 +85,7 @@ all: build $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) # This is a little messy. The build is broken into two pieces: (1) the diff --git a/examples/pwm/Makefile b/examples/pwm/Makefile index 318c1d7d0..c836d129e 100644 --- a/examples/pwm/Makefile +++ b/examples/pwm/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/qencoder/Makefile b/examples/qencoder/Makefile index 77f4e4bc3..b0d0ef9f9 100644 --- a/examples/qencoder/Makefile +++ b/examples/qencoder/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/random/Makefile b/examples/random/Makefile index 527df95b6..06c3056ca 100644 --- a/examples/random/Makefile +++ b/examples/random/Makefile @@ -89,7 +89,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/relays/Makefile b/examples/relays/Makefile index 2574f04bd..3cfbaa6e7 100644 --- a/examples/relays/Makefile +++ b/examples/relays/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/rgmp/Makefile b/examples/rgmp/Makefile index 2dda65f3b..c59e92a1e 100644 --- a/examples/rgmp/Makefile +++ b/examples/rgmp/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/romfs/Makefile b/examples/romfs/Makefile index 281357d97..204fe1ed5 100644 --- a/examples/romfs/Makefile +++ b/examples/romfs/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) checkgenromfs: diff --git a/examples/sendmail/Makefile b/examples/sendmail/Makefile index 2fd72c959..926d5cacd 100644 --- a/examples/sendmail/Makefile +++ b/examples/sendmail/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/serialblaster/Makefile b/examples/serialblaster/Makefile index bf4acbec5..44b5c92f4 100644 --- a/examples/serialblaster/Makefile +++ b/examples/serialblaster/Makefile @@ -94,7 +94,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/serialrx/Makefile b/examples/serialrx/Makefile index 4e97e49a0..2558dd979 100644 --- a/examples/serialrx/Makefile +++ b/examples/serialrx/Makefile @@ -94,7 +94,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/serloop/Makefile b/examples/serloop/Makefile index ec945c93e..850d2e1b0 100644 --- a/examples/serloop/Makefile +++ b/examples/serloop/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/slcd/Makefile b/examples/slcd/Makefile index 8d27ca8ec..4f15d6fad 100644 --- a/examples/slcd/Makefile +++ b/examples/slcd/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/smart/Makefile b/examples/smart/Makefile index 6916280ed..9248f5eeb 100644 --- a/examples/smart/Makefile +++ b/examples/smart/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/smart_test/Makefile b/examples/smart_test/Makefile index cb63bf4ff..c9160d629 100644 --- a/examples/smart_test/Makefile +++ b/examples/smart_test/Makefile @@ -94,7 +94,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/tcpecho/Makefile b/examples/tcpecho/Makefile index 1af312020..d0a21e0b7 100644 --- a/examples/tcpecho/Makefile +++ b/examples/tcpecho/Makefile @@ -92,7 +92,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/telnetd/Makefile b/examples/telnetd/Makefile index 74933e709..1713a9645 100644 --- a/examples/telnetd/Makefile +++ b/examples/telnetd/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/thttpd/Makefile b/examples/thttpd/Makefile index eb979a7f8..12db34d8b 100644 --- a/examples/thttpd/Makefile +++ b/examples/thttpd/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) headers: diff --git a/examples/tiff/Makefile b/examples/tiff/Makefile index 31cbc9dac..28078595f 100644 --- a/examples/tiff/Makefile +++ b/examples/tiff/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/touchscreen/Makefile b/examples/touchscreen/Makefile index e10980aa8..69e2549ce 100644 --- a/examples/touchscreen/Makefile +++ b/examples/touchscreen/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/usbserial/Makefile b/examples/usbserial/Makefile index 811b4e38e..78dd4b1c7 100644 --- a/examples/usbserial/Makefile +++ b/examples/usbserial/Makefile @@ -84,7 +84,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/usbterm/Makefile b/examples/usbterm/Makefile index c9c1add69..3b55f0990 100644 --- a/examples/usbterm/Makefile +++ b/examples/usbterm/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/watchdog/Makefile b/examples/watchdog/Makefile index 95ad82b48..2354894f4 100644 --- a/examples/watchdog/Makefile +++ b/examples/watchdog/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/webserver/Makefile b/examples/webserver/Makefile index bb8702561..384bf0910 100644 --- a/examples/webserver/Makefile +++ b/examples/webserver/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/wget/Makefile b/examples/wget/Makefile index fd98c4610..87a39d193 100644 --- a/examples/wget/Makefile +++ b/examples/wget/Makefile @@ -85,7 +85,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/wgetjson/Makefile b/examples/wgetjson/Makefile index a0e2989be..f4ddd234d 100644 --- a/examples/wgetjson/Makefile +++ b/examples/wgetjson/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/examples/xmlrpc/Makefile b/examples/xmlrpc/Makefile index 4c591c328..5b8356db3 100644 --- a/examples/xmlrpc/Makefile +++ b/examples/xmlrpc/Makefile @@ -92,7 +92,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/graphics/screenshot/Makefile b/graphics/screenshot/Makefile index 34641002e..87f8674ad 100644 --- a/graphics/screenshot/Makefile +++ b/graphics/screenshot/Makefile @@ -95,7 +95,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/netutils/thttpd/Makefile b/netutils/thttpd/Makefile index 6e337c2c1..27021857c 100644 --- a/netutils/thttpd/Makefile +++ b/netutils/thttpd/Makefile @@ -98,7 +98,7 @@ all: $(SUBDIR_BIN) .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) ifeq ($(CONFIG_NXFLAT),y) diff --git a/system/cdcacm/Makefile b/system/cdcacm/Makefile index 28c459bbe..fe5207eda 100644 --- a/system/cdcacm/Makefile +++ b/system/cdcacm/Makefile @@ -95,7 +95,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/composite/Makefile b/system/composite/Makefile index 98cb66d54..50819b772 100644 --- a/system/composite/Makefile +++ b/system/composite/Makefile @@ -95,7 +95,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/flash_eraseall/Makefile b/system/flash_eraseall/Makefile index 817a2b8f4..07d9d142e 100644 --- a/system/flash_eraseall/Makefile +++ b/system/flash_eraseall/Makefile @@ -99,7 +99,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/free/Makefile b/system/free/Makefile index 806307257..ace779de6 100644 --- a/system/free/Makefile +++ b/system/free/Makefile @@ -95,7 +95,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/hex2bin/Makefile b/system/hex2bin/Makefile index 03fbd5910..9c49afad5 100644 --- a/system/hex2bin/Makefile +++ b/system/hex2bin/Makefile @@ -116,7 +116,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/i2c/Makefile b/system/i2c/Makefile index 5b960fa8d..cab06eda2 100644 --- a/system/i2c/Makefile +++ b/system/i2c/Makefile @@ -88,7 +88,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/install/Makefile b/system/install/Makefile index 79b0a0999..65a3e97d1 100644 --- a/system/install/Makefile +++ b/system/install/Makefile @@ -99,7 +99,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/mdio/Makefile b/system/mdio/Makefile index 7d0fe5981..2fa178583 100644 --- a/system/mdio/Makefile +++ b/system/mdio/Makefile @@ -91,7 +91,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/nxplayer/Makefile b/system/nxplayer/Makefile index a5a473c93..3b01c4e13 100644 --- a/system/nxplayer/Makefile +++ b/system/nxplayer/Makefile @@ -104,7 +104,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/poweroff/Makefile b/system/poweroff/Makefile index 34d8851b4..3f07f9e8b 100644 --- a/system/poweroff/Makefile +++ b/system/poweroff/Makefile @@ -99,7 +99,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/prun/Makefile b/system/prun/Makefile index fb4d6f79d..73d5ca470 100644 --- a/system/prun/Makefile +++ b/system/prun/Makefile @@ -105,7 +105,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/ramtest/Makefile b/system/ramtest/Makefile index 2c443b08b..f9078cf72 100644 --- a/system/ramtest/Makefile +++ b/system/ramtest/Makefile @@ -92,7 +92,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/ramtron/Makefile b/system/ramtron/Makefile index d4793ca71..baa191e71 100644 --- a/system/ramtron/Makefile +++ b/system/ramtron/Makefile @@ -99,7 +99,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/sdcard/Makefile b/system/sdcard/Makefile index 89e4558c9..9aac89f95 100644 --- a/system/sdcard/Makefile +++ b/system/sdcard/Makefile @@ -99,7 +99,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/sudoku/Makefile b/system/sudoku/Makefile index f86355249..18a6865df 100644 --- a/system/sudoku/Makefile +++ b/system/sudoku/Makefile @@ -95,7 +95,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/sysinfo/Makefile b/system/sysinfo/Makefile index 7135d5a06..545049e0a 100644 --- a/system/sysinfo/Makefile +++ b/system/sysinfo/Makefile @@ -100,7 +100,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/usbmsc/Makefile b/system/usbmsc/Makefile index 7a2485dfc..7d2ef010b 100644 --- a/system/usbmsc/Makefile +++ b/system/usbmsc/Makefile @@ -98,7 +98,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/vi/Makefile b/system/vi/Makefile index 16514ba54..b679115df 100644 --- a/system/vi/Makefile +++ b/system/vi/Makefile @@ -96,7 +96,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS) diff --git a/system/zmodem/Makefile b/system/zmodem/Makefile index a4d59c74e..739f52390 100644 --- a/system/zmodem/Makefile +++ b/system/zmodem/Makefile @@ -99,7 +99,7 @@ all: .built $(AOBJS): %$(OBJEXT): %.S $(call ASSEMBLE, $<, $@) -$(COBJS): %$(OBJEXT): %.c +$(COBJS) $(MAINOBJ): %$(OBJEXT): %.c $(call COMPILE, $<, $@) .built: $(OBJS)