Explicitly specify name of plugin and its sources
Signed-off-by: Tomasz Michalak <tmichalak@antmicro.com>
diff --git a/Makefile_plugin.common b/Makefile_plugin.common
index ab8d2f9..3253867 100644
--- a/Makefile_plugin.common
+++ b/Makefile_plugin.common
@@ -4,9 +4,7 @@
LDLIBS = $(shell yosys-config --ldlibs)
PLUGINS_DIR = $(shell yosys-config --datdir)/plugins
-SOURCES := $(shell find -name '*.cc')
OBJS := $(SOURCES:cc=o)
-NAME := $(patsubst %-plugin,%,$(notdir $(shell pwd)))
$(NAME).so: $(OBJS)
$(CXX) $(CXXFLAGS) $(LDFLAGS) -shared -o $@ $^ $(LDLIBS)
diff --git a/fasm-plugin/Makefile b/fasm-plugin/Makefile
index 321e17c..71188e0 100644
--- a/fasm-plugin/Makefile
+++ b/fasm-plugin/Makefile
@@ -1 +1,4 @@
+NAME = fasm
+SOURCES = fasm.cc
include ../Makefile_plugin.common
+
diff --git a/get_count-plugin/Makefile b/get_count-plugin/Makefile
index 321e17c..761d82c 100644
--- a/get_count-plugin/Makefile
+++ b/get_count-plugin/Makefile
@@ -1 +1,3 @@
+NAME = get_count
+SOURCES = get_count.cc
include ../Makefile_plugin.common
diff --git a/params-plugin/Makefile b/params-plugin/Makefile
index 321e17c..ec98ed1 100644
--- a/params-plugin/Makefile
+++ b/params-plugin/Makefile
@@ -1 +1,3 @@
+NAME = params
+SOURCES = params.cc
include ../Makefile_plugin.common
diff --git a/ql-iob-plugin/Makefile b/ql-iob-plugin/Makefile
index 321e17c..741d031 100644
--- a/ql-iob-plugin/Makefile
+++ b/ql-iob-plugin/Makefile
@@ -1 +1,3 @@
+NAME = ql-iob
+SOURCES = ql-iob.cc pcf_parser.cc pinmap_parser.cc
include ../Makefile_plugin.common
diff --git a/sdc-plugin/Makefile b/sdc-plugin/Makefile
index 321e17c..68b0917 100644
--- a/sdc-plugin/Makefile
+++ b/sdc-plugin/Makefile
@@ -1 +1,3 @@
+NAME = sdc
+SOURCES = buffers.cc clocks.cc propagation.cc sdc.cc sdc_writer.cc set_false_path.cc set_max_delay.cc
include ../Makefile_plugin.common
diff --git a/selection-plugin/Makefile b/selection-plugin/Makefile
index 321e17c..5745bbb 100644
--- a/selection-plugin/Makefile
+++ b/selection-plugin/Makefile
@@ -1 +1,3 @@
+NAME = selection
+SOURCES = selection.cc
include ../Makefile_plugin.common
diff --git a/xdc-plugin/Makefile b/xdc-plugin/Makefile
index bf097a5..bd454a1 100644
--- a/xdc-plugin/Makefile
+++ b/xdc-plugin/Makefile
@@ -1,3 +1,5 @@
+NAME = xdc
+SOURCES = xdc.cc
include ../Makefile_plugin.common
VERILOG_MODULES = BANK.v