diff options
Diffstat (limited to 'astman')
-rwxr-xr-x | astman/Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/astman/Makefile b/astman/Makefile index 476c4915c..06bed92fa 100755 --- a/astman/Makefile +++ b/astman/Makefile @@ -2,7 +2,14 @@ # Don't use ast mm routines # CFLAGS+=-DNO_AST_MM + +OSARCH=$(shell uname -s) +ifeq (${OSARCH},FreeBSD) +CFLAGS+=-I/usr/local/include -L/usr/local/lib +endif + TARGET=$(shell if [ -f /usr/include/newt.h ]; then echo "astman"; else echo "none" ; fi) +TARGET=$(shell if [ -f /usr/local/include/newt.h ]; then echo "astman"; else echo "none" ; fi) all: depend $(TARGET) install: @@ -19,7 +26,7 @@ clean: rm -f *.o astman .depend astman: astman.o ../md5.o - $(CC) -o astman astman.o ../md5.o -lnewt + $(CC) $(CFLAGS) -o astman astman.o ../md5.o -lnewt ifneq ($(wildcard .depend),) include .depend |