aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjamiebullock <jamie@jamiebullock.com>2014-11-14 05:17:28 -0800
committerjamiebullock <jamie@jamiebullock.com>2014-11-14 05:17:28 -0800
commitefb4873c7b7ce63b4de9618d28496221eda9641a (patch)
tree76e1792411c7b6292da077999e246f6bf9d576ec
parent114222baf93e3d7ff3bb9b1c046f7cf703d7f804 (diff)
downloadLibXtract-efb4873c7b7ce63b4de9618d28496221eda9641a.tar.gz
LibXtract-efb4873c7b7ce63b4de9618d28496221eda9641a.tar.bz2
LibXtract-efb4873c7b7ce63b4de9618d28496221eda9641a.zip
Incorporate Makefile link order fix
-rw-r--r--examples/simpletest/Makefile7
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)