changeset 278:0dbd0078d1c4

Incorporate Makefile link order fix
author jamiebullock <jamie@jamiebullock.com>
date Fri, 14 Nov 2014 05:17:28 -0800
parents f87c7a8c043f
children 6ee836d79500
files examples/simpletest/Makefile
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/examples/simpletest/Makefile	Fri Nov 14 05:16:50 2014 -0800
+++ b/examples/simpletest/Makefile	Fri Nov 14 05:17:28 2014 -0800
@@ -82,7 +82,7 @@
 ifeq "$(LIBRARY)" "static"
 	@$(AR) rcs $@ $^
 else
-	@$(COMPILER) $(LDFLAGS) $^ -o $@
+	@$(COMPILER) $^ $(LDFLAGS) -o $@
 endif
 
 debug: FLAGS = $(DEBUG_FLAGS)
@@ -92,6 +92,11 @@
 	@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)