summaryrefslogtreecommitdiffstats
path: root/actuators/motor/Makefile
blob: bd35015a7336956b79bb0acb9b66b4c8ce6bc9e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include ../../config.mk

all: AtmostripeMotorController.so

clean:
	rm -f *.c *.so

atmostripe.c: atmostripe.vala
	$(VALAC) --pkg gmodule-2.0 --pkg posix --pkg linux -C $< ../motor-controller.vala ../../hw/serial-device.vala ../../hw/device.vala

AtmostripeMotorController.so: atmostripe.c
	$(CC) -shared -fPIC `pkg-config --cflags --libs glib-2.0 gobject-2.0 gmodule-2.0` -o $@ $<

.PHONY: all clean