From 70ecca0e437e9fcb3d5a3cd9f89a428c7cbf761c Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Mon, 21 Dec 2020 02:56:29 -0300 Subject: [PATCH] Add PREFIX variable in Makefile. --- Makefile | 1 + lib/Makefile | 2 ++ 2 files changed, 3 insertions(+) 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= -- 2.12.0