mirror of https://github.com/YosysHQ/yosys.git
23 lines
660 B
Makefile
23 lines
660 B
Makefile
|
|
OBJS += passes/techmap/techmap.o
|
|
OBJS += passes/techmap/dfflibmap.o
|
|
OBJS += passes/techmap/iopadmap.o
|
|
OBJS += passes/techmap/libparse.o
|
|
|
|
GENFILES += passes/techmap/stdcells.inc
|
|
|
|
passes/techmap/stdcells.inc: techlibs/common/stdcells.v
|
|
echo "// autogenerated from $<" > $@.new
|
|
od -v -td1 -w1 $< | awk 'BEGIN { print "static char stdcells_code[] = {"; } $$2 != "" { print $$2 ","; } \
|
|
END { print 0 "};"; }' | fmt >> $@.new
|
|
mv $@.new $@
|
|
|
|
passes/techmap/techmap.o: passes/techmap/stdcells.inc
|
|
|
|
TARGETS += yosys-filterlib
|
|
GENFILES += passes/techmap/filterlib.o
|
|
|
|
yosys-filterlib: passes/techmap/filterlib.o
|
|
$(CXX) -o yosys-filterlib $(LDFLAGS) $^ $(LDLIBS)
|
|
|