nixiesp12/Makefile

44 lines
1.1 KiB
Makefile
Raw Permalink Normal View History

2017-06-11 12:05:35 +00:00
# This makefile:
# * Converts KiCad exported Gerber files to G-code files usable with LinuxCNC
# * Merges drill toolpaths to one 1mm drill toolpath
# * Reset coordinate system
# * Use resulting bla_front.ngc, bla_drill.ngc, bla_back.ngc files
PROJECT=nixiesp
2017-08-08 22:27:36 +00:00
MILL_FEED=70
DRILL_FEED=70
2017-06-11 12:05:35 +00:00
SPINDLE_SPEED=6000
FINISH_HEIGHT=40
2017-08-08 22:27:36 +00:00
DRILL_DEPTH=8
2017-06-11 12:05:35 +00:00
# Tiling
TILING_X=1
TILING_Y=1
all: ${PROJECT}_drill.ngc
%_drill.ngc: %.drl %-F.Cu.gtl %-B.Cu.gbl
pcb2gcode \
--zero-start \
--software linuxcnc \
--tile-x ${TILING_X} \
--tile-y ${TILING_Y} \
--front $*-F.Cu.gtl \
--back $*-B.Cu.gbl \
--drill $*.drl \
--front-output $*_front.ngc \
--back-output $*_back.ngc \
--drill-output $*_drill.ngc \
--metric \
--metricoutput \
2017-08-08 22:27:36 +00:00
--zsafe 1 --zchange ${FINISH_HEIGHT} --zcut 0 \
2017-06-11 12:05:35 +00:00
--cutter-diameter 5 --cut-feed ${MILL_FEED} --cut-speed ${SPINDLE_SPEED} --cut-infeed ${MILL_FEED} \
2017-08-08 22:27:36 +00:00
--zwork -0.2 --offset 0.1 --mill-feed ${MILL_FEED} --mill-speed ${SPINDLE_SPEED} \
2017-06-11 12:05:35 +00:00
--zdrill -${DRILL_DEPTH} --drill-feed ${DRILL_FEED} --drill-speed ${SPINDLE_SPEED}
clean:
rm -fv *.ngc
purge: clean
rm -fv *.g* *.drl *.dsn *.ses *.bak *.kicad_pcb-bak *.png *.svg *.net