diff --git a/Makefile b/Makefile index 136e3fa..f0d0aff 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ CFLAGS?=-fPIC CFLAGS_SHARED?=-shared OBJ=mma8451.o LIBNAME=libmma8451.so +HEADER=mma8451.h TESTOBJ=mma8451-test.o TESTNAME=mma8451-test @@ -11,9 +12,10 @@ all: compile compile: $(LIBNAME) $(TESTNAME) install: $(LIBNAME) - install -d 0755 ${DESTDIR}/usr/lib $(DESTDIR)/usr/bin + install -d 0755 ${DESTDIR}/usr/lib $(DESTDIR)/usr/bin $(DESTDIR)/usr/include/mma8451 install -m 0644 $(LIBNAME) $(DESTDIR)/usr/lib/$(LIBNAME) install -m 0644 $(TESTNAME) $(DESTDIR)/usr/bin/$(TESTNAME) + install -m 0644 $(HEADER) $(DESTDIR)/usr/include/mma8451/$(HEADER) fix-i2c: echo -n 1 > /sys/module/i2c_bcm2708/parameters/combined