summaryrefslogtreecommitdiff
path: root/apps/examples/elf/tests/mutex/Makefile
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-05 16:05:29 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-05 16:05:29 -0600
commit2dc9308e9154086f30ad320f67be5bf6ecbd310b (patch)
tree02d2f3b453d54e3f9ed5e9dbf6e6b084d02eca1f /apps/examples/elf/tests/mutex/Makefile
parent5c571020f21f0127929621ed1c7afc290f1d5077 (diff)
downloadnuttx-2dc9308e9154086f30ad320f67be5bf6ecbd310b.tar.gz
nuttx-2dc9308e9154086f30ad320f67be5bf6ecbd310b.tar.bz2
nuttx-2dc9308e9154086f30ad320f67be5bf6ecbd310b.zip
Need to add CRT0 to every Makefile in apps/examples/tests
Diffstat (limited to 'apps/examples/elf/tests/mutex/Makefile')
-rw-r--r--apps/examples/elf/tests/mutex/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/elf/tests/mutex/Makefile b/apps/examples/elf/tests/mutex/Makefile
index d7ce09041..f8ce4f613 100644
--- a/apps/examples/elf/tests/mutex/Makefile
+++ b/apps/examples/elf/tests/mutex/Makefile
@@ -66,17 +66,17 @@ endif
BIN = mutex
SRCS = $(BIN).c
-OBJS = $(SRCS:.c=.o)
+OBJS = $(SRCS:.c=$(OBJEXT))
all: $(BIN)
-$(OBJS): %.o: %.c
+$(OBJS): %$(OBJEXT): %.c
@echo "CC: $<"
$(Q) $(CC) -c $(CELFFLAGS) $< -o $@
$(BIN): $(OBJS)
@echo "LD: $<"
- $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS)
+ $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS)
clean:
$(call DELFILE, $(BIN))