diff options
Diffstat (limited to 'apps/examples/elf/tests/errno/Makefile')
-rw-r--r-- | apps/examples/elf/tests/errno/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/examples/elf/tests/errno/Makefile b/apps/examples/elf/tests/errno/Makefile index b9029e163..89e3f2bfd 100644 --- a/apps/examples/elf/tests/errno/Makefile +++ b/apps/examples/elf/tests/errno/Makefile @@ -66,17 +66,17 @@ endif BIN = errno 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)) @@ -85,4 +85,3 @@ clean: install: $(Q) mkdir -p $(ROMFS_DIR) $(Q) install $(BIN) $(ROMFS_DIR)/$(BIN) - |