freebsd-ports/security/l0pht-watch/files/patch-aa
Kris Kennaway e8691a5cc2 On FreeBSD 5.0, use the new kqueue() notification system to monitor
for directory changes. This cuts CPU usage from 100% down to about 0.1%
as well as improving the reliability of change monitoring.
2000-04-25 08:04:55 +00:00

28 lines
815 B
Text

--- Makefile.orig Thu Sep 23 10:18:18 1999
+++ Makefile Tue Apr 25 00:30:11 2000
@@ -9,12 +9,13 @@
# debugging
# DFLAGS = -DTEST -DDEBUG
DFLAGS = -DREGEX
-CFLAGS =-O -Wall
+CFLAGS ?=-O -Wall
XFLAGS = # xtra cflags, set by systype targets
XLIBS = # xtra libs if necessary?
# -Bstatic for sunos, -static for gcc, etc. You want this, trust me.
STATIC =
-CC = cc $(CFLAGS)
+CC ?= cc
+CC += $(CFLAGS)
LD = $(CC) -s # linker; defaults to stripped executables
o = o # object extension
CKTEMP_OBJS=check_tmp.o daemon.o list_utils.o usage.o
@@ -60,7 +61,8 @@
OpenBSD:
make -e $(ALL) $(MFLAGS) \
- XFLAGS='-DBSD -DREGEX -DREGCOMP_3C' CC="gcc $(CFLAGS)" STATIC=-static
+ XFLAGS='-DREGEX -DREGCOMP_3C' CC="$(CC) $(CFLAGS)" \
+ STATIC=-static
generic:
make -e $(ALL) $(MFLAGS) \