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/examples/udp | |
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/examples/udp')
-rw-r--r-- | nuttx/examples/udp/Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/nuttx/examples/udp/Makefile b/nuttx/examples/udp/Makefile index 04f2005cc..1d3e67590 100644 --- a/nuttx/examples/udp/Makefile +++ b/nuttx/examples/udp/Makefile @@ -72,15 +72,14 @@ HOST_BIN = host all: $(TARG_BIN) $(TARG_AOBJS): %$(OBJEXT): %.S - $(CC) -c $(CFLAGS) $< -o $@ + $(call ASSEMBLE, $<, $@) $(TARG_COBJS): %$(OBJEXT): %.c - $(CC) -c $(CFLAGS) $< -o $@ + $(call COMPILE, $<, $@) $(TARG_BIN): $(TARG_OBJS) $(HOST_BIN) @( for obj in $(TARG_OBJS) ; do \ - $(AR) $@ $${obj} || \ - { echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \ + $(call ARCHIVE, $@, $${obj}); \ done ; ) $(HOST_OBJS): %.o: %.c @@ -96,7 +95,7 @@ $(HOST_BIN): $(HOST_OBJS) depend: .depend clean: - rm -f $(TARG_BIN) $(HOST_BIN) *.o *.rel *.asm *.lst *.sym *.adb *~ + rm -f $(TARG_BIN) $(HOST_BIN) *.o *.obj *.rel *.asm *.lst *.sym *.adb *~ distclean: clean rm -f Make.dep .depend |