summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/ostest/Makefile')
-rw-r--r--nuttx/examples/ostest/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/nuttx/examples/ostest/Makefile b/nuttx/examples/ostest/Makefile
index 44c7f3f06..22fbb2501 100644
--- a/nuttx/examples/ostest/Makefile
+++ b/nuttx/examples/ostest/Makefile
@@ -39,10 +39,10 @@
MKDEP = $(TOPDIR)/tools/mkdeps.sh
ASRCS =
-AOBJS = $(ASRCS:.S=.o)
+AOBJS = $(ASRCS:.S=$(OBJEXT))
CSRCS = main.c dev_null.c mutex.c cancel.c sem.c cond.c \
timedwait.c mqueue.c sighand.c
-COBJS = $(CSRCS:.c=.o)
+COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
@@ -51,10 +51,10 @@ BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
all: $(BIN)
-$(AOBJS): %.o: %.S
+$(AOBJS): %$(OBJEXT): %.S
$(CC) -c $(CFLAGS) $< -o $@
-$(COBJS): %.o: %.c
+$(COBJS): %$(OBJEXT): %.c
$(CC) -c $(CFLAGS) $< -o $@
$(BIN): $(OBJS)
@@ -70,7 +70,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