Make macsearch compile on FreeBSD 6 - see http://www.ashberg.de/macsearch/ --Maximillian Dornseif diff -ubBNr macsearch-0.3/Makefile macsearch-0.3-md-freebsd/Makefile --- macsearch-0.3/Makefile Sun Oct 9 20:57:15 2005 +++ macsearch-0.3-md-freebsd/Makefile Wed Apr 12 07:19:00 2006 @@ -2,8 +2,10 @@ CC=gcc CPP=c++ CFLAGS=-Wall # -DMINGW # uncomment when using MINGW +CFLAGS+=et-snmp-config --base-cflags CPPFLAGS=-Wall LIBS=-lnetsnmp # -lws2_32 -lregex -lshlwapi # uncomment when using MINGW +LIBS+=et-snmp-config --libs DISTNAME="macsearch-0.3" DISTEXTRA="macsearch.conf.example mibs" @@ -43,10 +45,10 @@ dep depend .dep: @echo "creating depencies" - rm .tmp.dep -f - @find -name "*.c" -maxdepth 1 -print0 | xargs -n 1 -0rt $(CC) -M $(CFLAGS) >>.tmp.dep - @find -name "*.cc" -maxdepth 1 -print0 | xargs -n 1 -0rt $(CPP) -M $(CPPFLAGS) >>.tmp.dep - @find -name "*.cpp" -maxdepth 1 -print0 | xargs -n 1 -0rt $(CPP) -M $(CPPFLAGS) >>.tmp.dep + rm -f .tmp.dep + @find . -name "*.c" -maxdepth 1 -print0 | xargs -n 1 -0t $(CC) -M $(CFLAGS) >>.tmp.dep + @find . -name "*.cc" -maxdepth 1 -print0 | xargs -n 1 -0t $(CPP) -M $(CPPFLAGS) >>.tmp.dep + @find . -name "*.cpp" -maxdepth 1 -print0 | xargs -n 1 -0t $(CPP) -M $(CPPFLAGS) >>.tmp.dep mv .tmp.dep .dep install: $(PROGRAMS)