mirror of
git://projects.qi-hardware.com/wernermisc.git
synced 2024-12-19 02:48:27 +02:00
35 lines
773 B
Makefile
35 lines
773 B
Makefile
|
MKMK=../../../cae-tools/cameo/templates/mkmk-simple
|
||
|
|
||
|
NAME=labsw
|
||
|
|
||
|
BOARD = X0=9.2mm Y0=8.1mm
|
||
|
|
||
|
# drill: 12.5-13.5 mil
|
||
|
# in: 35 mil endmill; pretend it is smaller, to compensate for
|
||
|
# tool/board deflections
|
||
|
# out: 35 mil endmill, 11 mil deflection
|
||
|
#
|
||
|
TOOLS = DRILL=7mil,15mil MILL_IN=12mil MILL_OUT=50mil
|
||
|
|
||
|
#FAB = ROT=90 X=0 Y=1 XN=1 YN=2
|
||
|
FAB = ROT=90 X=1 Y=1 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 -l PCB_Edges `pwd`/../$(NAME).brd
|
||
|
|
||
|
-include Makefile.mkmk
|
||
|
|
||
|
clean::
|
||
|
rm -f Makefile.mkmk
|