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

all: BMP085.so

clean:
	rm -f *.c *.so

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

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

.PHONY: all clean