2011-12-15 23:18:17 +02:00
|
|
|
SPOOL=/home/moko/svn.openmoko.org/developers/werner/cncmap/spool/spool
|
2011-12-16 10:09:43 +02:00
|
|
|
CNGT=/home/qi/cae-tools/cngt/cngt
|
2011-12-15 23:18:17 +02:00
|
|
|
|
2011-12-16 10:09:43 +02:00
|
|
|
Z0=-55.0
|
|
|
|
BOARD=X0=5.0mm Y0=0.0mm Z0=$(Z0)mm BOARD_Z=4.5mm
|
|
|
|
TASK=Y=1
|
2011-12-15 23:18:17 +02:00
|
|
|
|
2011-12-16 10:09:43 +02:00
|
|
|
.PHONY: all front rear cng clean
|
2011-12-15 23:18:17 +02:00
|
|
|
|
2011-12-16 10:09:43 +02:00
|
|
|
all: front.rml rear.rml
|
2011-12-15 23:18:17 +02:00
|
|
|
|
2011-12-16 10:09:43 +02:00
|
|
|
front.gp: case.fpd
|
|
|
|
fped -g -1 M1-front $< $@
|
2011-12-15 23:18:17 +02:00
|
|
|
|
2011-12-16 10:09:43 +02:00
|
|
|
rear.gp: case.fpd
|
|
|
|
fped -g -1 M1-rear $< $@
|
2011-12-15 23:18:17 +02:00
|
|
|
|
2011-12-16 10:09:43 +02:00
|
|
|
%.rml: %.gp
|
|
|
|
./doit `basename $< .gp` $(BOARD) $(TASK) CLEARANCE=5mm || \
|
|
|
|
{ rm -f $@; exit 1; }
|
|
|
|
|
|
|
|
front: front.rml
|
|
|
|
PORT=/dev/ttyUSB0 $(SPOOL) $<
|
|
|
|
|
|
|
|
rear: rear.rml
|
|
|
|
PORT=/dev/ttyUSB0 $(SPOOL) $<
|
|
|
|
|
|
|
|
cng: front.gp
|
|
|
|
$(CNGT) $(Z0) 20 front.gp
|
2011-12-15 23:18:17 +02:00
|
|
|
|
|
|
|
clean:
|
2011-12-16 10:09:43 +02:00
|
|
|
rm -f front.gp _front.gp front.rml
|
|
|
|
rm -f rear.gp _rear.gp rear.rml
|