diff options
Diffstat (limited to 'apps/examples/elf/tests/struct')
-rw-r--r-- | apps/examples/elf/tests/struct/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/examples/elf/tests/struct/Makefile b/apps/examples/elf/tests/struct/Makefile index 4dec5e51e..8fe7cf710 100644 --- a/apps/examples/elf/tests/struct/Makefile +++ b/apps/examples/elf/tests/struct/Makefile @@ -67,17 +67,17 @@ endif BIN = struct SRCS = struct_main.c struct_dummy.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)) |