1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 11:50:37 +02:00

labsw/cam/Makefile: improved indentation; added BOARD_Z and ANY

This commit is contained in:
Werner Almesberger 2011-09-01 04:36:07 -03:00
parent a336e1d383
commit 0d6568c0cb

View File

@ -2,7 +2,9 @@ MKMK=../../../cae-tools/cameo/templates/mkmk-simple
NAME=labsw NAME=labsw
BOARD = X0=9.2mm Y0=8.1mm # 11.5, 0
BOARD = X0=12.5mm Y0=1mm BOARD_Z=1.6mm
# drill: 12.5-13.5 mil # drill: 12.5-13.5 mil
# in: 35 mil endmill; pretend it is smaller, to compensate for # in: 35 mil endmill; pretend it is smaller, to compensate for
@ -10,25 +12,26 @@ BOARD = X0=9.2mm Y0=8.1mm
# out: 35 mil endmill, 11 mil deflection # out: 35 mil endmill, 11 mil deflection
# #
TOOLS = DRILL=7mil,15mil MILL_IN=12mil MILL_OUT=50mil TOOLS = DRILL=7mil,15mil MILL_IN=12mil MILL_OUT=50mil
TOOLS = DRILL=7mil,15mil MILL_IN=35mil MILL_OUT=35mil ANY=any
#FAB = ROT=90 X=0 Y=1 XN=1 YN=2 #FAB = ROT=90 X=0 Y=1 XN=1 YN=2
FAB = ROT=90 X=1 Y=1 XN=1 YN=2 FAB = ROT=0 X=0 Y=0 XN=1 YN=1
.PHONY: all clean .PHONY: all clean
all: Makefile.mkmk all: Makefile.mkmk
Makefile.mkmk: $(MKMK) ../$(NAME).drl ../$(NAME)-PCB_Edges.gbr Makefile Makefile.mkmk: $(MKMK) ../$(NAME).drl ../$(NAME)-PCB_Edges.gbr Makefile
$(MKMK) NAME=$(NAME) $(BOARD) $(TOOLS) $(FAB) $(MKMK) NAME=$(NAME) $(BOARD) $(TOOLS) $(FAB)
../$(NAME).drl: ../$(NAME).brd ../$(NAME).drl: ../$(NAME).brd
pcbnew --drill `pwd`/../$(NAME).brd pcbnew --drill `pwd`/../$(NAME).brd
touch $@ touch $@
../$(NAME)-PCB_Edges.gbr: ../$(NAME).brd ../$(NAME)-PCB_Edges.gbr: ../$(NAME).brd
pcbnew --plot=gerber -l PCB_Edges `pwd`/../$(NAME).brd pcbnew --plot=gerber -l PCB_Edges `pwd`/../$(NAME).brd
-include Makefile.mkmk -include Makefile.mkmk
clean:: clean::
rm -f Makefile.mkmk rm -f Makefile.mkmk