diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/c_src.mk | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/plugins/c_src.mk b/plugins/c_src.mk index 99b1c66..0aee88c 100644 --- a/plugins/c_src.mk +++ b/plugins/c_src.mk @@ -46,9 +46,13 @@ clean:: $(MAKE) -C $(C_SRC_DIR) clean else -app:: $(C_SRC_ENV) +SOURCE := $(shell find $(C_SRC_DIR) -type f -name \*.c) + +app:: $(C_SRC_ENV) $(C_SRC_OUTPUT) + +$(C_SRC_OUTPUT): $(SOURCE) @mkdir -p priv/ - $(c_src_verbose) $(CC) $(CFLAGS) $(C_SRC_DIR)/*.c \ + $(c_src_verbose) $(CC) $(CFLAGS) $(SOURCE) \ $(LDFLAGS) $(LDLIBS) -o $(C_SRC_OUTPUT) $(C_SRC_OPTS) $(C_SRC_ENV): |