clean up, use make functions instead of subshells, remove unused stuff
[asterisk/asterisk.git] / agi / Makefile
index 999a077..8cea349 100755 (executable)
@@ -17,7 +17,11 @@ CFLAGS+=
 
 LIBS=
 ifeq ($(OSARCH),SunOS)
-LIBS=-lsocket -lnsl ../strcompat.o
+  LIBS=-lsocket -lnsl ../strcompat.o
+endif
+
+ifeq ($(findstring BSD,${OSARCH}),BSD)
+  CFLAGS+=-I$(CROSS_COMPILE_TARGET)/usr/local/include -L$(CROSS_COMPILE_TARGET)/usr/local/lib
 endif
 
 all: depend $(AGIS)