diff options
author | jamiebullock <jamie@jamiebullock.com> | 2014-11-14 05:17:28 -0800 |
---|---|---|
committer | jamiebullock <jamie@jamiebullock.com> | 2014-11-14 05:17:28 -0800 |
commit | efb4873c7b7ce63b4de9618d28496221eda9641a (patch) | |
tree | 76e1792411c7b6292da077999e246f6bf9d576ec | |
parent | 114222baf93e3d7ff3bb9b1c046f7cf703d7f804 (diff) | |
download | LibXtract-efb4873c7b7ce63b4de9618d28496221eda9641a.tar.gz LibXtract-efb4873c7b7ce63b4de9618d28496221eda9641a.tar.bz2 LibXtract-efb4873c7b7ce63b4de9618d28496221eda9641a.zip |
Incorporate Makefile link order fix
-rw-r--r-- | examples/simpletest/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
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) |