aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-14 18:53:59 +0300
committerLoïc Hoguin <[email protected]>2015-05-14 18:53:59 +0300
commit91f35af32d0f4acaf3f52bbe52abd239ce103b95 (patch)
treece597c07c630c49176f2d1260da9148e9529bcfb /plugins
parentc0c2863a21a2eee46c69e5a2ce275c91aa2f2ba3 (diff)
parent864ddc05e0265ed8093641ea107736ee3b3fba4b (diff)
downloaderlang.mk-91f35af32d0f4acaf3f52bbe52abd239ce103b95.tar.gz
erlang.mk-91f35af32d0f4acaf3f52bbe52abd239ce103b95.tar.bz2
erlang.mk-91f35af32d0f4acaf3f52bbe52abd239ce103b95.zip
Merge branch 'jj1bdx-c_src-appbuild' of https://github.com/jj1bdx/erlang.mk
Diffstat (limited to 'plugins')
-rw-r--r--plugins/c_src.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/c_src.mk b/plugins/c_src.mk
index 2a0d006..bdec23b 100644
--- a/plugins/c_src.mk
+++ b/plugins/c_src.mk
@@ -48,7 +48,11 @@ link_verbose = $(link_verbose_$(V))
ifeq ($(wildcard $(C_SRC_DIR)),)
else ifneq ($(wildcard $(C_SRC_DIR)/Makefile),)
-app::
+app:: app-c_src
+
+test-build:: app-c_src
+
+app-c_src:
$(MAKE) -C $(C_SRC_DIR) \
CFLAGS="$(CFLAGS)" \
CXXFLAGS="$(CXXFLAGS)" \
@@ -70,6 +74,8 @@ COMPILE_CPP = $(cpp_verbose) $(CXX) $(CXXFLAGS) $(CPPFLAGS) -c
app:: $(C_SRC_ENV) $(C_SRC_OUTPUT)
+test-build:: $(C_SRC_ENV) $(C_SRC_OUTPUT)
+
$(C_SRC_OUTPUT): $(OBJECTS)
@mkdir -p priv/
$(link_verbose) $(CC) $(OBJECTS) $(LDFLAGS) $(LDLIBS) -o $(C_SRC_OUTPUT)