head     1.19;
branch   ;
access   ;
symbols  ATH7_7:1.13 ATH7_4:1.9 ATH7_6:1.12;
locks    ; strict;
comment  @# @;


1.19
date     96.03.19.14.51.24;  author warlord;  state Exp;
branches ;
next     1.18;

1.18
date     95.09.08.22.00.12;  author ghudson;  state Exp;
branches ;
next     1.17;

1.17
date     95.09.08.20.32.48;  author yoav;  state Exp;
branches ;
next     1.16;

1.16
date     95.09.08.20.15.45;  author ghudson;  state Exp;
branches ;
next     1.15;

1.15
date     95.09.08.20.07.03;  author yoav;  state Exp;
branches ;
next     1.14;

1.14
date     95.08.23.18.57.23;  author cfields;  state Exp;
branches ;
next     1.13;

1.13
date     94.06.14.14.27.53;  author vrt;  state Exp;
branches ;
next     1.12;

1.12
date     93.07.25.01.25.40;  author probe;  state Exp;
branches ;
next     1.11;

1.11
date     92.11.06.03.54.19;  author probe;  state Exp;
branches ;
next     1.10;

1.10
date     92.07.23.14.40.50;  author miki;  state Exp;
branches ;
next     1.9;

1.9
date     92.06.19.18.17.17;  author lwvanels;  state Exp;
branches ;
next     1.8;

1.8
date     92.04.10.20.26.57;  author probe;  state Exp;
branches ;
next     1.7;

1.7
date     91.07.08.09.12.40;  author probe;  state Exp;
branches ;
next     1.6;

1.6
date     91.07.04.22.58.20;  author probe;  state Exp;
branches ;
next     1.5;

1.5
date     91.06.30.02.40.00;  author probe;  state Exp;
branches ;
next     1.4;

1.4
date     91.04.01.18.05.22;  author epeisach;  state Exp;
branches ;
next     1.3;

1.3
date     91.03.20.18.28.08;  author mar;  state Exp;
branches ;
next     1.2;

1.2
date     91.03.20.11.51.40;  author mar;  state Exp;
branches ;
next     1.1;

1.1
date     91.03.20.11.49.53;  author mar;  state Exp;
branches ;
next     ;


desc
@@


1.19
log
@linux needs additional .o files
@
text
@#ifdef UseInstalled
ATTACH=/afs/sipb/project/sipb-athena/attach
#else
ATTACH=../attach
#endif

AFSLIBS= -L/usr/athena/lib -lsys -L$(AFSDIR)/lib -L$(AFSDIR)/lib/afs -L/usr/athena/lib -lrx -llwp

DEFINES=$(MACHDEFS) -I. -I$(ATTACH) -I$(AFSDIR)/include

BINDIR=$(ATHBINDIR)
INSTOPT=-o root -m 4755

OBJS = quota.o attachtab.o nfs.o afs.o $(MACHOBJS)
#ifdef SOLARIS
LIBS = $(MACHLIBS) $(AFSLIBS) -lbsd
#else
#ifdef __NetBSD__
LIBS = $(MACHLIBS) $(AFSLIBS) -lcompat
#else
LIBS = $(MACHLIBS) $(AFSLIBS)
#endif
#endif
#if defined(vax) || defined(ibm032)
BINDIR=/usr/ucb
MACHDEFS= -DUW
MACHLIBS= -lrpcsvc
#endif

#ifdef __NetBSD__
MACHLIBS= -lrpcsvc -lcompat
#endif

#if defined(_IBMR2) || defined(SOLARIS) || defined(sgi) || defined(linux)
MACHOBJS=rcquotaxdr.o rquotaxdr.o mountxdr.o
#endif

#if defined(ultrix)
MACHOBJS=rcquotaxdr.o
#endif

build_program(quota,$(OBJS),,$(LIBS))
install_program(quota,$(INSTOPT),$(BINDIR))
install_man(quota.1,quota.1)

@


1.18
log
@Fix to work with Athena Imake templates.
@
text
@d34 1
a34 1
#if defined(_IBMR2) || defined(SOLARIS) || defined(sgi)
@


1.17
log
@works on NetBSD
@
text
@d7 1
a7 6
#ifdef NetBSDArchitecture
AFSPATH= /afs/athena.mit.edu/astaff/project/afsdev/beta
AFSLIBS= -L/usr/athena/lib -L/usr/athena/lib/afs -lsys -L$(AFSPATH)/i386_nbsd1/lib -L$(AFSPATH)/lib/afs -L/usr/athena/lib -lrx -llwp
#else
AFSLIBS= -L/usr/athena/lib -lsys -L$(AFSPATH)/lib -L$(AFSPATH)/lib/afs -L/usr/athena/lib -lrx -llwp
#endif
d9 1
a9 1
DEFINES=$(MACHDEFS) -I. -I$(ATTACH) -I$(AFSPATH)/include
d18 1
a18 1
#ifdef NetBSDArchitecture
d30 1
a30 1
#ifdef NetBSDArchitecture
d38 1
a38 1
#if defined(ultrix) || defined(i386)
@


1.16
log
@Use __NetBSD__ instead of NetBSDArchitecture.
Need $(AFSDIR)/lib/afs for AFS libraries.
@
text
@d7 8
a14 1
DEFINES=$(MACHDEFS) -I. -I$(ATTACH) -I$(AFSDIR)/include
a17 1
AFSLIBS= -lsys -L$(AFSDIR)/lib -L$(AFSDIR)/lib/afs -L/usr/athena/lib -lrx -llwp
d23 1
a23 1
#ifdef __NetBSD__
d35 1
a35 1
#if defined(__NetBSD__)
@


1.15
log
@should compile for NetBSD, sans ufs support
@
text
@a7 3
#ifdef NetBSDArchitecture
AFSDIR=/mit/afsdev/beta
#endif
d11 1
a11 1
AFSLIBS= -lsys -L$(AFSDIR)/lib -L/usr/athena/lib -lrx -llwp
d17 1
a17 1
#ifdef NetBSDArchitecture
d29 2
a30 6
#if defined(NetBSDArchitecture)
MACHLIBS= -lrpcsvc
#endif

#if defined(i386)
MACHLIBS= -lrpclib
@


1.14
log
@Build rquotaxdr.o and mountxdr.o for sgi.
@
text
@d2 1
a2 1
ATTACH=/source/athena/athena.bin/attach
d4 1
a4 1
ATTACH=../../athena.bin/attach
d8 3
d14 1
a14 1
AFSLIBS= $(AFSDIR)/lib/afs/libsys.a -L$(AFSDIR)/lib -lrx -llwp
d20 3
d25 1
a25 1

d29 4
@


1.13
log
@added -lbsd for solaris.
@
text
@d30 1
a30 1
#if defined(_IBMR2) || defined(SOLARIS)
@


1.12
log
@Solaris is more like AIX... also need -lrx -llwp
@
text
@d14 3
d18 1
@


1.11
log
@$(AFSDIR) is now the root of the AFS libs/includes
@
text
@d11 1
a11 1
AFSLIBS= $(AFSDIR)/lib/afs/libsys.a
d16 1
a16 1
#if defined(vax) || defined(ibm032) || defined(sun)
d26 1
a26 1
#if defined(_IBMR2)
d30 1
a30 1
#if defined(ultrix) || defined(i386) || defined(sun)
@


1.10
log
@ported to Sun
@
text
@a2 1
AFSDIR=/mit/afsdev/bld/dest
a4 1
AFSDIR=/usr/local
@


1.9
log
@make location of AFS include files/libraries depend on UseInstalled.
@
text
@d18 1
a18 1
#if defined(vax) || defined(ibm032)
d32 1
a32 1
#if defined(ultrix) || defined(i386)
@


1.8
log
@Various re-structuring of the entire quota program
@
text
@d3 1
d6 1
d9 1
a9 1
DEFINES=$(MACHDEFS) -I. -I$(ATTACH) -I/usr/local/include
d13 1
a13 1
AFSLIBS= /usr/local/lib/afs/libsys.a
@


1.7
log
@Fixed install directory on VAX/RT
-I./include not needed (we have -I. and rpcsvc already exists)
@
text
@d1 5
a5 2
DEFINES=-DUW $(MACHDEFS) \
	-I. -I../../athena.bin/attach -I../../bin.athena/attach -I/usr/local/include
d7 2
d13 1
a13 1
OBJS = quota.o attachtab.o afsquota.o $(MACHOBJS)
d18 1
a26 1
/* Need to use the local header files and sources */
a27 1
INSTOPT=-o root -m 0755
a30 1
/* Need to use the local header files and sources */
@


1.6
log
@Fixed include path
@
text
@d3 2
d6 1
d9 1
a9 1
LIBS = $(MACHLIBS) /usr/local/lib/afs/libsys.a
d12 1
d15 2
a16 1
#if defined(_AIX) && !defined(_IBMR2)
a21 1
MACHDEFS=-I./include
a27 1
MACHDEFS=-I./include
d32 1
a32 1
install_program(quota,$(INSTOPT),$(ATHBINDIR))
@


1.5
log
@Support AFS quotas / RIOS integration
@
text
@d2 1
a2 1
	-I. -I../../bin.athena/attach -I/usr/local/include
@


1.4
log
@Install was wrong.
@
text
@d1 3
a3 1
DEFINES=-DUW $(MACHDEFS)
d5 3
a7 3
PROGRAM=	quota
SRCS=		quota.c $(MACHSRCS)
OBJS=		quota.o $(MACHOBJS)
d9 1
a9 1
LIBS=		-lrpcsvc
d11 2
a12 2
#ifdef _AIX
LIBS=		-lrpclib
d15 7
a24 1
MACHSRCS=rcquotaxdr.c
d29 1
a29 1
install_program(quota,-o root -m 4755,/usr/ucb/quota)
@


1.3
log
@one more try
@
text
@d21 1
a21 1
install_program(quota,-o root -m 4755,/usr/ucb/program)
@


1.2
log
@AIX needs -lrpc, not -lrpcsvc
@
text
@d10 1
a10 1
LIBS=		-lrpc
@


1.1
log
@Initial revision
@
text
@d6 1
a6 1
#ifndef ultrix
d9 4
@
