diff options
Diffstat (limited to 'nuttx/arch/c5471/src/Makefile')
-rw-r--r-- | nuttx/arch/c5471/src/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nuttx/arch/c5471/src/Makefile b/nuttx/arch/c5471/src/Makefile index 809032854..c04d9a9a6 100644 --- a/nuttx/arch/c5471/src/Makefile +++ b/nuttx/arch/c5471/src/Makefile @@ -71,15 +71,14 @@ LIBGCC = ${shell $(CC) -print-libgcc-file-name} all: up_head.o libarch$(LIBEXT) $(AOBJS) $(LINKOBJS): %.o: %.S - $(CC) -c $(CFLAGS) -D__ASSEMBLY__ $< -o $@ + $(call ASSEMBLE, $<, $@) $(COBJS): %.o: %.c - $(CC) -c $(CFLAGS) $< -o $@ + $(call COMPILE, $<, $@) libarch$(LIBEXT): $(OBJS) @( for obj in $(OBJS) ; do \ - $(AR) $@ $${obj} || \ - { echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \ + $(call ARCHIVE, $@, $${obj}); \ done ; ) board/libboard$(LIBEXT): @@ -114,7 +113,7 @@ clean: @if [ -e board/Makefile ]; then \ $(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \ fi - rm -f libarch$(LIBEXT) *.o *~ + rm -f libarch$(LIBEXT) *.o *.obj *~ distclean: clean @if [ -e board/Makefile ]; then \ |