$NetBSD: patch-aa,v 1.1.1.1 2005/10/28 20:46:26 minskim Exp $ --- Makefile.orig 2004-05-27 07:24:30.000000000 -0500 +++ Makefile @@ -2,5 +2,5 @@ #CFLAGS=-g -I. -CFLAGS=-O2 -Wall +#CFLAGS=-O2 -Wall # uncomment for Solaris: @@ -16,12 +16,12 @@ ROOT=root # ROOT=Administrators -CC=gcc +#CC=gcc RELEASE=3.15 balance: balance.c butils.o balance.h - $(CC) $(CFLAGS) -I. -o balance balance.c butils.o $(LIBRARIES) + $(CC) ${CPPFLAGS} $(CFLAGS) -I. -o balance balance.c butils.o $(LIBRARIES) butils.o: butils.c balance.h - $(CC) $(CFLAGS) -I. -c butils.c + $(CC) ${CPPFLAGS} $(CFLAGS) -I. -c butils.c ci: @@ -34,8 +34,8 @@ clean: install: - install -o $(ROOT) -g $(ROOT) -m 755 $(BALANCE) $(DESTIDIR)/usr/sbin/$(BALANCE) - install -o $(ROOT) -g $(ROOT) -m 755 balance.1 $(DESTIDIR)/usr/man/man1 - mkdir -p $(DESTIDIR)/var/run/balance - chmod 1777 $(DESTIDIR)/var/run/balance + ${BSD_INSTALL_PROGRAM} $(BALANCE) $(DESTIDIR)/usr/sbin/$(BALANCE) + ${BSD_INSTALL_MAN} balance.1 $(DESTIDIR)/usr/man/man1 + mkdir -p ${VARBASE}/run/balance + chmod 1777 ${VARBASE}/run/balance release: