From 11256f43f6adc075f1cbe9cf201d3a6ab902e6f7 Mon Sep 17 00:00:00 2001 From: jmcmullan Date: Sun, 31 May 2015 03:17:27 +0000 Subject: [PATCH] config/make.tmpl: Add includedir= and libdir= to %build_prog Signed-off-by: Jason S. McMullan git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@50771 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- config/make.tmpl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/make.tmpl b/config/make.tmpl index 87c9bc9369..4a3bd3fb95 100644 --- a/config/make.tmpl +++ b/config/make.tmpl @@ -1336,6 +1336,7 @@ BDID := $(BDTARGETID) asmfiles= objdir=$(GENDIR)/$(CURDIR) targetdir=$(AROSDIR)/$(CURDIR) \ cflags=$(CFLAGS) dflags=$(BD_CFLAGS) ldflags=$(LDFLAGS) \ aflags=$(AFLAGS) uselibs= usehostlibs= usestartup=yes detach=no nix=no \ + includedir= libdir= \ compiler=target linker= .PHONY : %(mmake) @@ -1368,6 +1369,15 @@ BD_AFLAGS := %(aflags) BD_DFLAGS := %(dflags) BD_LDFLAGS := %(ldflags) +ifneq (%(includedir),) +BD_CFLAGS += -I%(includedir) +BD_AFLAGS += -I%(includedir) +endif + +ifneq (%(libdir),) +BD_LDFLAGS += -L%(libdir) +endif + #MM %(mmake)-quick : %(mmake) -- 2.11.4.GIT