summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/Makefile b/plugins/Makefile
index 130ee0f..cace09b 100644
--- a/plugins/Makefile
+++ b/plugins/Makefile
@@ -35,5 +35,8 @@ endif
.SECONDARY:
-$(PLUGINNAME)/%.$(SO_EXT): $(patsubst %.c,%.o,$(wildcard $(PLUGINNAME)/*.c)) $(wildcard ../*.o ../*.h)
+$(PLUGINNAME)/%.$(SO_EXT): $(patsubst %.c,%.o,$(wildcard $(PLUGINNAME)/*.c)) $(wildcard ../*.o)
$(CC) $(SO_FLAGS) -o $@ $(filter %.o,$^)
+
+$(PLUGINNAME)/%.o: $(PLUGINNAME)/%.c $(wildcard $(PLUGINNAME)/*.h) $(wildcard ../*.h)
+ $(CC) $(CFLAGS) -c -o $@ $<