From 0408272aba8c7c48c682844b9079b558c008aedd Mon Sep 17 00:00:00 2001 From: patacongo Date: Tue, 27 Feb 2007 23:59:20 +0000 Subject: Working toward successful link using aslink git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@21 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/examples/ostest/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'nuttx/examples/ostest') 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 -- cgit v1.2.3