mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2024-11-30 08:14:39 +02:00
125055b0fe
- atben/cam/mkmk: introduced variables for board corner - atben/cam/mkmk: updated for new raw board - atusb-pgm/cam/Makefile: updated for new board - atusb/cam/Makefile: introduced abstraction with $(NAME) - atusb/cam/Makefile: use cameo/templates/mkmk-simple instead of local mkmk - atusb/cam/mkmk: removed - atusb/cam/Makefile: updated for new board
35 lines
773 B
Makefile
35 lines
773 B
Makefile
MKMK=../../../cae-tools/cameo/templates/mkmk-simple
|
|
|
|
NAME=atusb
|
|
|
|
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
|