IEEE 802.15.4 subsystem
Sign in or create your account | Project List | Help
IEEE 802.15.4 subsystem Git Source Tree
Root/
Source at commit 22f7eee195951bed5e23401dfcab221c8e0306bf created 13 years 1 month ago. By Werner Almesberger, atusb-pgm: changed LED color; cleanup of silk screen | |
---|---|
1 | PLOT_BRD = pcbnew --plot=ps_a4 --ps-pads-drill-opt=none --fill-all-zones |
2 | |
3 | NAME = atben |
4 | |
5 | .PHONY: all gen generate sch brd xpdf front back clean |
6 | .PHONY: gerber gerbv |
7 | |
8 | all: |
9 | @echo "make what ? target: gen sch brd xpdf" |
10 | @exit 1 |
11 | |
12 | gen generate: |
13 | eeschema --plot `pwd`/$(NAME).sch |
14 | # need scripts |
15 | |
16 | sch: |
17 | eeschema `pwd`/$(NAME).sch |
18 | |
19 | brd: |
20 | pcbnew `pwd`/$(NAME).brd |
21 | |
22 | xpdf: |
23 | xpdf $(NAME).pdf |
24 | |
25 | front: $(NAME)-Front.ps |
26 | lpr $< |
27 | |
28 | back: $(NAME)-Back.ps |
29 | lpr $< |
30 | |
31 | # this needs more work |
32 | |
33 | gerber: |
34 | pcbnew --plot=gerber \ |
35 | -l `pcbnew --list-layers atben.brd | tr '\012' ,` \ |
36 | --fill-all-zones $(NAME).brd |
37 | |
38 | gerbv: |
39 | gerbv $(NAME)-Comments.gbr \ |
40 | $(NAME)-SilkS_Front.gto \ |
41 | $(NAME)-SoldP_Front.gtp \ |
42 | $(NAME)-Front.gtl \ |
43 | $(NAME)-Mask_Front.gts \ |
44 | $(NAME)-Back.gbl \ |
45 | $(NAME)-Mask_Back.gbs |
46 | |
47 | # |
48 | # Postscript for production of front/back layer, using the toner transfer |
49 | # method. Note that other artwork transfer methods may require different |
50 | # mirror settings. |
51 | # |
52 | # We use --ps-pads-drill-opt=none to avoid having any hole before drilling, |
53 | # which yields the best results with a CNC drill. For manual drilling, "real" |
54 | # would be preferrable. Do not use "small", for this created holes that are |
55 | # larger (!) than designed. |
56 | # |
57 | |
58 | %-Front.ps: %.brd |
59 | $(PLOT_BRD) -l Front --mirror $< |
60 | |
61 | %-Back.ps: %.brd |
62 | $(PLOT_BRD) -l Back $< |
63 | |
64 | clean: |
65 | rm -f $(NAME)-Front.ps $(NAME)-Back.ps |
66 | rm -f $(NAME).drl $(NAME)-PCB_Edges.gbr |
67 | rm -f $(NAME)-Front.gtl $(NAME)-Mask_Front.gts |
68 | rm -f $(NAME)-SilkS_Front.gto $(NAME)-SoldP_Front.gtp |
69 | rm -f $(NAME)-Back.gbl $(NAME)-Mask_Back.gbs |
70 | rm -f $(NAME)-SilkS_Back.gbo $(NAME)-SoldP_Back.gbp |
71 | rm -f $(NAME)-Comments.gbr |
72 |