fixup over commit 829b5cca to re-enable ABCEXTERNAL support
authorGabriel Somlo <gsomlo@gmail.com>
Wed, 25 Nov 2020 17:29:59 +0000 (12:29 -0500)
committerGabriel Somlo <gsomlo@gmail.com>
Thu, 26 Nov 2020 11:12:12 +0000 (06:12 -0500)
Makefile

index d352358a0e016dc1d45433d1a1cd6745d46e7d92..02592df98ff375f808c8c25471a583f1558e2e2e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -608,6 +608,11 @@ $(eval $(call add_include_file,backends/cxxrtl/cxxrtl_vcd_capi.cc))
 $(eval $(call add_include_file,backends/cxxrtl/cxxrtl_vcd_capi.h))
 
 OBJS += kernel/driver.o kernel/register.o kernel/rtlil.o kernel/log.o kernel/calc.o kernel/yosys.o
+ifeq ($(ENABLE_ABC),1)
+ifneq ($(ABCEXTERNAL),)
+kernel/yosys.o: CXXFLAGS += -DABCEXTERNAL='"$(ABCEXTERNAL)"'
+endif
+endif
 OBJS += kernel/cellaigs.o kernel/celledges.o kernel/satgen.o kernel/mem.o
 
 kernel/log.o: CXXFLAGS += -DYOSYS_SRC='"$(YOSYS_SRC)"'