Root/atusb/cam/Makefile

Source at commit 624caeb00652f6118dc64698b7dad6fa3e5bdcc2 created 3 years 17 days ago.
By Werner Almesberger, atusb/: use VR, POWERED, and LED from kicad-libs
1MKMK=../../../cae-tools/cameo/templates/mkmk-simple
2
3NAME=atusb
4
5BOARD = X0=9.2mm Y0=8.1mm
6
7# drill: 12.5-13.5 mil
8# in: 35 mil endmill; pretend it is smaller, to compensate for
9# tool/board deflections
10# out: 35 mil endmill, 11 mil deflection
11#
12TOOLS = DRILL=7mil,15mil MILL_IN=12mil MILL_OUT=50mil
13
14#FAB = ROT=90 X=0 Y=1 XN=1 YN=2
15FAB = ROT=90 X=1 Y=1 XN=1 YN=2
16
17.PHONY: all clean
18
19all: Makefile.mkmk
20
21Makefile.mkmk: $(MKMK) ../$(NAME).drl ../$(NAME)-PCB_Edges.gbr Makefile
22            $(MKMK) NAME=$(NAME) $(BOARD) $(TOOLS) $(FAB)
23
24../$(NAME).drl: ../$(NAME).brd
25            pcbnew --drill `pwd`/../$(NAME).brd
26            touch $@
27
28../$(NAME)-PCB_Edges.gbr: ../$(NAME).brd
29            pcbnew --plot=gerber -l PCB_Edges `pwd`/../$(NAME).brd
30
31-include Makefile.mkmk
32
33clean::
34            rm -f Makefile.mkmk
35

Archive Download this file



interactive