$NetBSD: patch-ab,v 1.1.1.1 2001/08/28 13:10:46 tv Exp $ --- Makefile.X.orig Tue Aug 28 08:52:40 2001 +++ Makefile.X Tue Aug 28 08:54:08 2001 @@ -4,8 +4,8 @@ # instead! # # # ################################################################# -CFLAGS=%cflags% -LIBS=%libs% +CFLAGS+=%cflags% +LIBS=%libs% ${LDFLAGS} MANPATH=%manpath% OSTYPE=-DDYNIP_OSTYPE=%ostype% BINDIR=%bindir% @@ -15,27 +15,25 @@ all: dynipclient dynipadmin dynipclient.o: dynipclient.c dynipclient.h dynipgbl.h - cc -O ${CFLAGS} ${CFGDIRDEF} -c dynipclient.c + ${CC} ${CFLAGS} ${CFGDIRDEF} -c dynipclient.c dynipclient: dynipclient.o prof.o opt.o log.o - cc -o dynipclient dynipclient.o prof.o opt.o log.o ${LIBS} - strip dynipclient + ${CC} -o dynipclient dynipclient.o prof.o opt.o log.o ${LIBS} dynipadmin.o: dynipadmin.c dynipadmin.h prof.h dynipgbl.h opt.c opt.h - cc -O ${OSTYPE} ${CFLAGS} ${CFGDIRDEF} -c dynipadmin.c + ${CC} ${OSTYPE} ${CFLAGS} ${CFGDIRDEF} -c dynipadmin.c dynipadmin: dynipadmin.o prof.o opt.o - cc -o dynipadmin dynipadmin.o opt.o prof.o ${LIBS} - strip dynipadmin + ${CC} -o dynipadmin dynipadmin.o opt.o prof.o ${LIBS} prof.o: prof.c prof.h - cc -O -c prof.c + ${CC} ${CFLAGS} -c prof.c opt.o: opt.c opt.h - cc -O -c opt.c + ${CC} ${CFLAGS} -c opt.c log.o: log.c log.h - cc -O -c log.c + ${CC} ${CFLAGS} -c log.c # Copy the MAN pages for the dynipclient and dynipadmin program. # Must run with ROOT in order to save in the man directory