diff options
Diffstat (limited to 'examples/simpletest')
-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) |