mirror of https://github.com/YosysHQ/yosys.git
14 lines
416 B
Makefile
14 lines
416 B
Makefile
|
|
GENFILES += passes/techmap/stdcells.inc
|
|
OBJS += passes/techmap/techmap.o
|
|
|
|
passes/techmap/stdcells.inc: techlibs/stdcells.v
|
|
echo -n "// autogenerated from $< on " > $@.new
|
|
LANG=C date >> $@.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
|
|
|