From efb4873c7b7ce63b4de9618d28496221eda9641a Mon Sep 17 00:00:00 2001 From: jamiebullock Date: Fri, 14 Nov 2014 05:17:28 -0800 Subject: Incorporate Makefile link order fix --- examples/simpletest/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/simpletest/Makefile b/examples/simpletest/Makefile index f120975..2b8428c 100644 --- a/examples/simpletest/Makefile +++ b/examples/simpletest/Makefile @@ -82,7 +82,7 @@ $(OUT): $(OBJ) ifeq "$(LIBRARY)" "static" @$(AR) rcs $@ $^ else - @$(COMPILER) $(LDFLAGS) $^ -o $@ + @$(COMPILER) $^ $(LDFLAGS) -o $@ endif debug: FLAGS = $(DEBUG_FLAGS) @@ -92,6 +92,11 @@ $(OUT_DIR)/%.o: %$(SUFFIX) @mkdir -p $(dir $@) @$(COMPILER) $(CXXFLAGS) $(FLAGS) -MMD -MP -fPIC -c $< -o $@ +check: $(OUT) + @./$(OUT) + +test: check + install: $(OUT) @install -d $(INSTALL_DIR) @install $(OUT) $(INSTALL_DIR) -- cgit v1.2.3