From aaf14056e435090f70b7e82d42874d090d1a1e35 Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 8 Jan 2008 17:06:21 +0000 Subject: Make logic reorganized for non-GNU toolchain git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@528 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/mount/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'nuttx/examples/mount/Makefile') diff --git a/nuttx/examples/mount/Makefile b/nuttx/examples/mount/Makefile index 7f40b93db..bee957d07 100644 --- a/nuttx/examples/mount/Makefile +++ b/nuttx/examples/mount/Makefile @@ -49,15 +49,14 @@ BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT) all: $(BIN) $(AOBJS): %$(OBJEXT): %.S - $(CC) -c $(CFLAGS) $< -o $@ + $(call ASSEMBLE, $<, $@) $(COBJS): %$(OBJEXT): %.c - $(CC) -c $(CFLAGS) $< -o $@ + $(call COMPILE, $<, $@) $(BIN): $(OBJS) @( for obj in $(OBJS) ; do \ - $(AR) $@ $${obj} || \ - { echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \ + $(call ARCHIVE, $@, $${obj}); \ done ; ) .depend: Makefile $(SRCS) @@ -67,7 +66,7 @@ $(BIN): $(OBJS) depend: .depend clean: - rm -f $(BIN) *.o *.rel *.asm *.lst *.sym *.adb *~ + rm -f $(BIN) *.o *.obj *.rel *.asm *.lst *.sym *.adb *~ distclean: clean rm -f Make.dep .depend -- cgit v1.2.3