From: Walter Fetter Lages Date: Mon, 21 Dec 2020 05:56:29 +0000 (-0300) Subject: Add PREFIX variable in Makefile. X-Git-Url: http://git.ece.ufrgs.br/?a=commitdiff_plain;p=bno055.git Add PREFIX variable in Makefile. --- diff --git a/Makefile b/Makefile index 5a774f7..9753c20 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ DIRS=lib test +PREFIX?=/usr/local all: for i in $(DIRS); do $(MAKE) -C $$i; done diff --git a/lib/Makefile b/lib/Makefile index d981168..a6071cf 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,6 +1,8 @@ TARGET=libbno055ifc.a SRCS=bno055_tty.c bno055_delay.c bno055_i2c.c +PREFIX?=/usr/local + FLAGS=-O2 -Wall -MMD -fPIC INCLUDE=-I. -I../include -I../../BNO055_driver LIBDIR=