diff options
Diffstat (limited to 'apps/examples/elf/tests/helloxx')
-rw-r--r-- | apps/examples/elf/tests/helloxx/Makefile | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/apps/examples/elf/tests/helloxx/Makefile b/apps/examples/elf/tests/helloxx/Makefile index f16ef7e6f..cd153bd52 100644 --- a/apps/examples/elf/tests/helloxx/Makefile +++ b/apps/examples/elf/tests/helloxx/Makefile @@ -72,18 +72,18 @@ endif ALL_BIN = $(BIN1) $(BIN2) $(BIN3) $(BIN4) SRCS1 = $(BIN1).c -OBJS1 = $(SRCS1:.c=.o) +OBJS1 = $(SRCS1:.c=$(OBJEXT)) SRCS2 = $(BIN2).c -OBJS2 = $(SRCS2:.c=.o) +OBJS2 = $(SRCS2:.c=$(OBJEXT)) ifeq ($(CONFIG_BINFMT_CONSTRUCTORS),y) SRCS3 = $(BIN3).c -OBJS3 = $(SRCS3:.c=.o) +OBJS3 = $(SRCS3:.c=$(OBJEXT)) endif #SRCS4 = $(BIN4).c -#OBJS4 = $(SRCS4:.c=.o) +#OBJS4 = $(SRCS4:.c=$(OBJEXT)) SRCS = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4) OBJS = $(OBJS1) $(OBJS2) $(OBJS3) $(OBJS4) @@ -93,7 +93,7 @@ LDLIBSTDC_STUBS_LIB = $(LDLIBSTDC_STUBS_DIR)/liblibxx.a all: $(BIN1) $(BIN2) $(BIN3) $(BIN4) -$(OBJS): %.o: %.cpp +$(OBJS): %$(OBJEXT): %.cpp @echo "CC: $<" $(Q) $(CXX) -c $(CXXELFFLAGS) $< -o $@ @@ -110,18 +110,18 @@ $(LDLIBSTDC_STUBS_LIB): $(BIN1): $(OBJS1) @echo "LD: $<" - $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS) + $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS) $(BIN2): $(OBJS2) @echo "LD: $<" - $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS) + $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS) # BIN3 is equivalent to BIN2 except that is uses static initializers ifeq ($(CONFIG_BINFMT_CONSTRUCTORS),y) $(BIN3): $(OBJS3) @echo "LD: $<" - $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS) + $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS) endif # BIN4 is similar to BIN3 except that it uses the streams code from libstdc++ @@ -130,7 +130,7 @@ endif # #$(BIN4): $(OBJS4) # @echo "LD: $<" -# $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $^ $(LDLIBS) +# $(Q) $(LD) $(LDELFFLAGS) $(LDLIBPATH) -o $@ $(ARCHCRT0OBJ) $^ $(LDLIBS) clean: $(call DELFILE, $(BIN1)) |