diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-08 17:06:21 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-01-08 17:06:21 +0000 |
commit | aaf14056e435090f70b7e82d42874d090d1a1e35 (patch) | |
tree | 41a2ddea543958ebb2c2d0e4018edd3275b690f2 /nuttx/net | |
parent | 6be6922d92309de635a5c222d94224adab2f73e5 (diff) | |
download | px4-nuttx-aaf14056e435090f70b7e82d42874d090d1a1e35.tar.gz px4-nuttx-aaf14056e435090f70b7e82d42874d090d1a1e35.tar.bz2 px4-nuttx-aaf14056e435090f70b7e82d42874d090d1a1e35.zip |
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
Diffstat (limited to 'nuttx/net')
-rw-r--r-- | nuttx/net/Makefile | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/nuttx/net/Makefile b/nuttx/net/Makefile index 2ffb0826f..5124a64ad 100644 --- a/nuttx/net/Makefile +++ b/nuttx/net/Makefile @@ -34,7 +34,6 @@ ############################################################################ -include $(TOPDIR)/Make.defs -CFLAGS += -I./uip ifeq ($(CONFIG_NET),y) SOCK_ASRCS = @@ -76,15 +75,14 @@ VPATH = uip all: $(BIN) $(AOBJS): %$(OBJEXT): %.S - $(CC) -c $(CFLAGS) -D__ASSEMBLY__ $< -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) @@ -96,7 +94,7 @@ endif depend: .depend clean: - rm -f $(BIN) *.o *.rel *.asm *.lst *.sym *.adb *~ + rm -f $(BIN) *.o *.obj *.rel *.asm *.lst *.sym *.adb *~ rm -f uip/*~ if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi |