Root/bom/Makefile

Source at commit 3f28b92c4fff20effa67c75c9fa01cb494ad8083 created 9 years 1 month ago.
By Werner Almesberger, CAM process for the antenna test boards.
1BOOM=PATH=/home/moko/svn.openmoko.org/trunk/eda/boom:../boom:$$PATH boom
2
3BOOM2=../../eda-tools/boom
4BOOM_CONFIG=$(BOOM2)/boom-config
5
6KITS=1
7
8EQU=atrf.equ dk/digi-key.equ $(shell $(BOOM_CONFIG) equ)
9INV=atrf.inv dk/digi-key.inv $(shell $(BOOM_CONFIG) inv)
10DSC=dk/digi-key.dsc $(shell $(BOOM_CONFIG) dsc)
11CHR=atrf.chr $(shell $(BOOM_CONFIG) chr)
12
13
14.PHONY: all again spotless
15.PRECIOUS: %.par
16
17all: atusb.ord atusd.ord cntr.ord
18
19again:
20        $(MAKE) spotless
21        $(MAKE) all
22
23%.ord: %.par $(INV) $(EQU)
24        $(BOOM) part2order $(KITS) $^ >$@ || { rm -f $@; exit 1; }
25
26vpath atusb.lst ../atusb
27vpath atusd.lst ../atusd
28vpath cntr.lst ../cntr
29
30%.par: $(EQU) $(INV) $(CHR) %.lst atrf.sub
31        $(BOOM) bom2part $^ >$@ || { rm -f $@; exit 1; }
32
33dk/digi-key.inv:
34        $(MAKE) -C dk digi-key.inv
35
36dk/digi-key.dsc:
37        $(MAKE) -C dk digi-key.dsc
38
39show-%: %.ord $(DSC)
40        grep -vw ATRF $< | $(BOOM) prettyord -t - $(DSC) | \
41          sed 's/^... //'
42
43spotless:
44        $(MAKE) -C dk spotless
45        rm -f atusb.par arusb.ord atusd.par atusd.ord cntr.par cntr.ord
46

Archive Download this file



interactive