5 files changed, 12 insertions(+), 4 deletions(-)
M .gitignore
M Makefile
R cmd/motion-control/{main.ha => main+gy-801.ha}
R tools/pointerc/{main.ha => main+gy-801.ha}
R tools/{gy-801-dump/main.ha => sensors-dump/main+gy-801.ha}
M .gitignore => .gitignore +1 -1
@@ 1,6 1,6 @@
/evdev-dump-events
/uinput-pointer
-/gy-801-dump
+/sensors-dump
/pointerc
/pointerd
/motion-control
M Makefile => Makefile +11 -3
@@ 1,9 1,17 @@
+SENSORS ?= gy-801
+BINARIES = evdev-dump-events uinput-pointer sensors-dump pointerd pointerc motion-control buttonc
+
evdev-dump-events uinput-pointer:
hare build -levdev -o $@ tools/$@/
-gy-801-dump pointerc buttonc:
+sensors-dump pointerc:
+ hare build -T +$(SENSORS) -o $@ tools/$@/
+buttonc:
hare build -o $@ tools/$@/
pointerd:
hare build -levdev -o $@ cmd/$@/
motion-control:
- hare build -o $@ cmd/$@/
-.PHONY: evdev-dump-events uinput-pointer gy-801-dump pointerd pointerc motion-control buttonc
+ hare build -T +$(SENSORS) -o $@ cmd/$@/
+.PHONY: $(BINARIES)
+all: $(BINARIES)
+clean:
+ rm -f $(BINARIES)
R cmd/motion-control/main.ha => cmd/motion-control/main+gy-801.ha +0 -0
R tools/pointerc/main.ha => tools/pointerc/main+gy-801.ha +0 -0
R tools/gy-801-dump/main.ha => tools/sensors-dump/main+gy-801.ha +0 -0