aboutsummaryrefslogtreecommitdiffstats
path: root/funcs/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'funcs/Makefile')
-rwxr-xr-xfuncs/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/funcs/Makefile b/funcs/Makefile
index 274a0df6a..e99cde005 100755
--- a/funcs/Makefile
+++ b/funcs/Makefile
@@ -35,6 +35,10 @@ CFLAGS+=-fPIC
FUNC_SOURCES=$(BUILTINS:.o=.c)
+ifeq ($(findstring BSD,${OSARCH}),BSD)
+ CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
+endif
+
all: $(FUNCS)
clean:
@@ -59,7 +63,7 @@ install: all
for x in $(FUNCS); do $(INSTALL) -m 755 $$x $(DESTDIR)$(MODULES_DIR) ; done
ifneq ($(wildcard .depend),)
-include .depend
+ include .depend
endif
depend: .depend