summaryrefslogtreecommitdiff
path: root/nuttx/drivers/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-27 23:59:20 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-02-27 23:59:20 +0000
commit0408272aba8c7c48c682844b9079b558c008aedd (patch)
treee57d96602e7bea5bf57ccd7655eb14d6aaaa271e /nuttx/drivers/Makefile
parent148cde5e982950ad5836fa96baa466de842e1c14 (diff)
downloadpx4-nuttx-0408272aba8c7c48c682844b9079b558c008aedd.tar.gz
px4-nuttx-0408272aba8c7c48c682844b9079b558c008aedd.tar.bz2
px4-nuttx-0408272aba8c7c48c682844b9079b558c008aedd.zip
Working toward successful link using aslink
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@21 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/drivers/Makefile')
-rw-r--r--nuttx/drivers/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/drivers/Makefile b/nuttx/drivers/Makefile
index 711b0ca33..dc07fcdc7 100644
--- a/nuttx/drivers/Makefile
+++ b/nuttx/drivers/Makefile
@@ -38,10 +38,10 @@
MKDEP = $(TOPDIR)/tools/mkdeps.sh
ASRCS =
-AOBJS = $(ASRCS:.S=.o)
+AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = dev_null.c
-COBJS = $(CSRCS:.c=.o)
+COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
@@ -50,10 +50,10 @@ BIN = libdrivers$(LIBEXT)
all: $(BIN)
-$(AOBJS): %.o: %.S
+$(AOBJS): %$(OBJEXT): %.S
$(CC) -c $(CFLAGS) -D__ASSEMBLY__ $< -o $@
-$(cOBJS): %.o: %.c
+$(cOBJS): %$(OBJEXT): %.c
$(CC) -c $(CFLAGS) $< -o $@
$(BIN): $(OBJS)
@@ -69,7 +69,7 @@ $(BIN): $(OBJS)
depend: .depend
clean:
- rm -f $(BIN) *.o *.asm *.lst *.sym *.adb *~
+ rm -f $(BIN) *.o *.rel *.asm *.lst *.sym *.adb *~
distclean: clean
rm -f Make.dep .depend