summaryrefslogtreecommitdiff
path: root/nuttx/drivers/Makefile
diff options
context:
space:
mode:
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