From 0813c5e414de517ff0fef6cc9eedcb4d512f4fe8 Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 6 Dec 2018 04:50:12 +0300 Subject: Add prefix libs support in the Makefile --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index f9a15a3..41b61b6 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ SOURCES:=$(wildcard $(SRC)/*.c) OBJECTS:=$(SOURCES:$(SRC)/%.c=$(BUILD)/%.c.o) DEPENDS:=$(OBJECTS:.o=.d) +INCLUDE+=$(PREFIX)/include INCLUDE+=include INCLUDE+=$(MUNIT) INCLUDE:=$(INCLUDE:%=-I%) @@ -34,6 +35,8 @@ CFLAGS+=-g3 CFLAGS+=-O0 CFLAGS+=-MD +LDFLAGS+=-L$(PREFIX)/lib +LDFLAGS+=-Wl,-rpath=$(PREFIX)/lib LDFLAGS+=$(COMMON) LDFLAGS_TETRIS+=$(LDFLAGS) -- cgit v1.2.3