]> andersk Git - moira.git/blobdiff - afssync/Makefile
Correctly initialize ubik header.
[moira.git] / afssync / Makefile
index 9145b74a197b61d0a3b696e42a0c19b968bdcdea..546a5848f3baa9622681b9396795cb5c2286a0c9 100644 (file)
@@ -1,36 +1,31 @@
 # $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 -O
 
-OBJS = prprocs.o prutils.o utils.o ubik.o
-LIBS= -L../lib -lmoira -lcom_err \
+OBJS= ptutils.o ptprocs.o utils.o ubik.o
+LIBS= -L../lib -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
 
 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)
-
-prnewlist: prnewlist.o $(OBJS)
-       cc -o prnewlist prnewlist.o $(OBJS)
-
-startsync: startsync.o
-       cc -o startsync startsync.o
-
+ptdump: ptdump.o
+       cc -o ptdump ptdump.o $(AFSLIBS) -lkrb -ldes
 
 clean:
        rm -f *.o resync.c sync.c resync sync startsync prnewlist prnewuser
This page took 0.038183 seconds and 4 git commands to generate.