$NetBSD: patch-aa,v 1.3 2003/03/09 12:25:53 jmmv Exp $ --- Makefile.orig 2003-01-12 20:45:12.000000000 +0000 +++ Makefile @@ -5,10 +5,6 @@ # Paths -INSTALL = /usr/ucb/install -EBIN = /usr/local/sbin -MAN = /usr/local/man/man - # OS-Dependant settings # Choose one of this pair... @@ -33,26 +29,22 @@ MAN = /usr/local/man/man # -DCIDR_KEY # keys in CIDR format # -DTERM_KD # keys and data nul-terminated -DEFS = -DTI_RPC -DFCNTL_LOCK -DSYSINFO +DEFS = -DSOCK_RPC -DFCNTL_LOCK -DGETHOST -DDASH_C # Compiler flags -CC = cc -RANLIB = : -CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-4.1.25/build_unix +CFLAGS += $(DEFS) #CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-3.1.17/build_unix #CFLAGS = $(DEFS) -g -I/usr/local/src/db/db-2.4.14/Unix #CFLAGS = $(DEFS) -g -I/usr/local/src/db/db.1.85/PORT/sunos.5.2/include -LDLIBS = -L/usr/local/src/db/db-4.1.25/build_unix -lnsl -ldb-4.1 #LDLIBS = -L/usr/local/src/db/db-3.1.17/build_unix -lnsl -ldb #LDLIBS = -L/usr/local/src/db/db-2.4.14/Unix -lnsl -ldb #LDLIBS = -L/usr/local/src/db/db.1.85/PORT/sunos.5.2 -lnsl -ldb -TSTLIBS = -L. -ldrac -lnsl -RPCGENFLAGS = -#RPCGENFLAGS = -C +TSTLIBS = -L. -ldrac +RPCGENFLAGS = -I -C # Man sections MANLIB = 3 -MANADM = 1m +MANADM = 8 ## Nothing to change after this point @@ -119,10 +111,15 @@ clean: tar: $(PACKAGE) tar cf drac.tar $(PACKAGE) -install: $(SERVER) +install: $(SERVER) $(SERVER).1m dracauth.3 $(INSTALL) -c -o bin -g bin -m 0755 $(SERVER) $(EBIN) - -install-man: $(SERVER).1m dracauth.3 $(INSTALL) -c -m 0444 $(SERVER).1m $(MAN)$(MANADM)/$(SERVER).$(MANADM) $(INSTALL) -c -m 0444 dracauth.3 $(MAN)$(MANLIB)/dracauth.$(MANLIB) - + $(MKDIR) -p $(EXAMPLES) + $(INSTALL) -c -m 0444 README $(EXAMPLES)/README + $(INSTALL) -c -m 0444 INSTALL $(EXAMPLES)/INSTALL + $(INSTALL) -c -m 0444 testing.c $(EXAMPLES)/testing.c + $(INSTALL) -c -m 0444 dracd-setup $(EXAMPLES)/dracd-setup + $(INSTALL) -c -m 0444 dracd.allow-sample $(EXAMPLES)/dracd.allow-sample + $(INSTALL) -c -m 0444 drac.h $(LOCALBASE)/include/drac.h + $(INSTALL) -c -m 0444 libdrac.a $(LOCALBASE)/lib/libdrac.a