mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Adjust makefiles to work with out-of-tree builds
This is based on work done by Larry Doolittle
This commit is contained in:
parent
c43f38c81b
commit
e4ef000b70
12 changed files with 32 additions and 41 deletions
|
@ -24,6 +24,7 @@ endif
|
|||
GENFILES += passes/techmap/techmap.inc
|
||||
|
||||
passes/techmap/techmap.inc: techlibs/common/techmap.v
|
||||
$(Q) mkdir -p $(dir $@)
|
||||
$(P) echo "// autogenerated from $<" > $@.new
|
||||
$(Q) echo "static char stdcells_code[] = {" >> $@.new
|
||||
$(Q) od -v -td1 -An $< | $(SED) -e 's/[0-9][0-9]*/&,/g' >> $@.new
|
||||
|
@ -37,6 +38,7 @@ TARGETS += yosys-filterlib$(EXE)
|
|||
EXTRA_OBJS += passes/techmap/filterlib.o
|
||||
|
||||
yosys-filterlib$(EXE): passes/techmap/filterlib.o
|
||||
$(Q) mkdir -p $(dir $@)
|
||||
$(P) $(CXX) -o yosys-filterlib$(EXE) $(LDFLAGS) $^ $(LDLIBS)
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue