X-Git-Url: http://andersk.mit.edu/gitweb/moira.git/blobdiff_plain/a04caf146da019bfb94e5cd5541625e6da793ba1..fb82aa2cb8d1bfa03bcb0096811dd0779aec71ee:/afssync/Makefile diff --git a/afssync/Makefile b/afssync/Makefile index c3e4fd96..3da669b6 100644 --- a/afssync/Makefile +++ b/afssync/Makefile @@ -1,36 +1,41 @@ # $Header$ -CFLAGS = -I/mit/afsdev/build/vax/include -I../include -O +AFSDIR = /mit/afsdev/bld/dest +CFLAGS = -I$(AFSDIR)/include -I$(AFSDIR)/include/afs -I../include \ + -I/usr/athena/include -O +LDFLAGS= -L/usr/athena/lib -OBJS = prprocs.o prutils.o utils.o ubik.o -LIBS= -L../lib -lsms -lcom_err \ +OBJS= ptutils.o utils.o ubik.o +LIBS= -L../lib $(LDFLAGS) -lmoira -lcom_err -lkrb -ldes \ /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib +AFSLIBS=$(AFSDIR)/lib/afs/libprot.a $(AFSDIR)/lib/afs/libauth.a \ + $(AFSDIR)/lib/libubik.a $(AFSDIR)/lib/afs/util.a \ + $(AFSDIR)/lib/librxkad.a $(AFSDIR)/lib/afs/libsys.a \ + $(AFSDIR)/lib/librx.a $(AFSDIR)/lib/liblwp.a + .SUFFIXES: .qc .qc.c: rm -f $*.c /usr/rtingres/bin/eqc -p $* -all: sync resync +all: sync ptdump migrate pt_util sync: sync.o $(OBJS) - cc -o sync sync.o $(OBJS) $(LIBS) + $(CC) -o sync sync.o $(OBJS) $(AFSLIBS) $(LIBS) sync.c: sync.qc -resync: resync.o $(OBJS) - cc -o resync resync.o $(OBJS) $(LIBS) -resync.c: resync.qc - -prnewuser: prnewuser.o $(OBJS) - cc -o prnewuser prnewuser.o $(OBJS) +ptdump: ptdump.o + cc -o ptdump ptdump.o $(AFSLIBS) $(LDFLAGS) -ldes -prnewlist: prnewlist.o $(OBJS) - cc -o prnewlist prnewlist.o $(OBJS) +pt_util: pt_util.o $(OBJS) + cc -o pt_util pt_util.o $(OBJS) $(AFSLIBS) $(LDFLAGS) -lcom_err -ldes -startsync: startsync.o - cc -o startsync startsync.o +migrate: migrate.o + cc -o migrate migrate.o $(LIBS) +migrate.c: migrate.qc clean: - rm -f *.o resync.c sync.c resync sync startsync prnewlist prnewuser + rm -f *.o sync.c sync migrate.c migrate pt_util ptdump