From b1457366d211cfd3e2c44993d3cf8fdb55532c00 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Tue, 6 Nov 2012 15:06:53 -0300 Subject: [PATCH] whirl/*/pcb/: add Makefiles for cutting/drilling PCBs --- whirl/cpu/pcb/Makefile | 34 ++++++++++++++++++++++++++++++++++ whirl/led/pcb/Makefile | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 whirl/cpu/pcb/Makefile create mode 100644 whirl/led/pcb/Makefile diff --git a/whirl/cpu/pcb/Makefile b/whirl/cpu/pcb/Makefile new file mode 100644 index 0000000..e72a7ea --- /dev/null +++ b/whirl/cpu/pcb/Makefile @@ -0,0 +1,34 @@ +MKMK=../../../../cae-tools/cameo/templates/mkmk-simple + +NAME=cpu + +# 11.5, 0 + +BOARD = X0=70.0mm Y0=3.0mm BOARD_Z=1.6mm CLEARANCE=3mm + +# drill: 12.5-13.5 mil +# mill: 35 mil (889 um) endmill, 3 mil (76 um) deflection +# +TOOLS = DRILL=7mil,15mil MILL_IN=32mil MILL_OUT=32mil ANY=any + +#FAB = ROT=90 X=0 Y=1 XN=1 YN=2 +FAB = ROT=90 X=0 Y=0 XN=1 YN=2 + +.PHONY: all clean + +all: Makefile.mkmk + +Makefile.mkmk: $(MKMK) ../$(NAME).drl ../$(NAME)-PCB_Edges.gbr Makefile + $(MKMK) NAME=$(NAME) $(BOARD) $(TOOLS) $(FAB) + +../$(NAME).drl: ../$(NAME).brd + pcbnew --drill `pwd`/../$(NAME).brd + touch $@ + +../$(NAME)-PCB_Edges.gbr: ../$(NAME).brd + pcbnew --plot=gerber --layers=PCB_Edges `pwd`/../$(NAME).brd + +-include Makefile.mkmk + +clean:: + rm -f Makefile.mkmk diff --git a/whirl/led/pcb/Makefile b/whirl/led/pcb/Makefile new file mode 100644 index 0000000..e2a5ea6 --- /dev/null +++ b/whirl/led/pcb/Makefile @@ -0,0 +1,34 @@ +MKMK=../../../../cae-tools/cameo/templates/mkmk-simple + +NAME=led + +# 11.5, 0 + +BOARD = X0=15.0mm Y0=3.0mm BOARD_Z=1.6mm CLEARANCE=3mm + +# drill: 12.5-13.5 mil +# mill: 35 mil (889 um) endmill, 3 mil (76 um) deflection +# +TOOLS = DRILL=7mil,15mil MILL_IN=32mil MILL_OUT=32mil ANY=any + +#FAB = ROT=90 X=0 Y=1 XN=1 YN=2 +FAB = ROT=90 X=0 Y=0 XN=2 YN=1 + +.PHONY: all clean + +all: Makefile.mkmk + +Makefile.mkmk: $(MKMK) ../$(NAME).drl ../$(NAME)-PCB_Edges.gbr Makefile + $(MKMK) NAME=$(NAME) $(BOARD) $(TOOLS) $(FAB) + +../$(NAME).drl: ../$(NAME).brd + pcbnew --drill `pwd`/../$(NAME).brd + touch $@ + +../$(NAME)-PCB_Edges.gbr: ../$(NAME).brd + pcbnew --plot=gerber --layers=PCB_Edges `pwd`/../$(NAME).brd + +-include Makefile.mkmk + +clean:: + rm -f Makefile.mkmk