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

all: ADXL345.so

clean:
	rm -f *.c *.so

adxl345.c: adxl345.vala
	$(VALAC) --pkg gmodule-2.0 --pkg posix --pkg linux -C $< ../accelerometer.vala ../../hw/i2c-device.vala ../../hw/device.vala

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

.PHONY: all clean