summaryrefslogtreecommitdiff
path: root/src/hal/drivers/Submakefile
blob: 46d341784ebfe8408ce91dd61c2f0eb437a386a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
hal/drivers/pluto_servo_rbf.h: hal/drivers/pluto_servo_firmware/pluto_servo.rbf hal/drivers/rbf2h.py
	$(PYTHON) hal/drivers/rbf2h.py -g \
    -c "This is a component of pluto_servo, a PWM servo driver and" \
    -c "quadrature counter for emc2" \
    -c "Copyright (C) 2006, 2007 Jeff Epler" \
	    $< > $@

hal/drivers/pluto_step_rbf.h: hal/drivers/pluto_step_firmware/pluto_step.rbf hal/drivers/rbf2h.py
	$(PYTHON) hal/drivers/rbf2h.py -g \
    -c "This is a component of pluto_step, a hardware step generator for emc2" \
    -c "Copyright (C) 2006, 2007 Jeff Epler" \
	    $< > $@

clean: pluto_clean
pluto_clean:
	rm  -rf \
	    pluto_servo_firmware/db \
	    pluto_servo_firmware/pluto_servo.asm.rpt \
	    pluto_servo_firmware/pluto_servo.done \
	    pluto_servo_firmware/pluto_servo.fit.rpt \
	    pluto_servo_firmware/pluto_servo.fit.summary \
	    pluto_servo_firmware/pluto_servo.flow.rpt \
	    pluto_servo_firmware/pluto_servo.map.rpt \
	    pluto_servo_firmware/pluto_servo.map.summary \
	    pluto_servo_firmware/pluto_servo.pin \
	    pluto_servo_firmware/pluto_servo.pof \
	    pluto_servo_firmware/pluto_servo.qws \
	    pluto_servo_firmware/pluto_servo.rbf \
	    pluto_servo_firmware/pluto_servo.sof \
	    pluto_servo_firmware/pluto_servo.tan.rpt \
	    pluto_servo_firmware/pluto_servo.tan.summary \
	    pluto_servo_firmware/undo_redo.txt

# The kernel's build system won't know how to rebuild generated files
# so modules must depend on them explicitly
ifneq ($(BUILD_SYS),sim)
modules:                                                         \
    hal/drivers/pluto_servo_rbf.h                                \
    hal/drivers/pluto_step_rbf.h
endif