aboutsummaryrefslogtreecommitdiffstats
path: root/passes/techmap/Makefile.inc
blob: 97023625993e55d96734a3cddce8ea73c75f6fd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
GENFILES += passes/techmap/stdcells.inc
OBJS += passes/techmap/techmap.o

passes/techmap/stdcells.inc: techlibs/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