]> andersk Git - moira.git/blobdiff - afssync/Makefile
better defaults on machine info; print machine aliases
[moira.git] / afssync / Makefile
index c3e4fd969694f40386f078a549d66bd82a0e58b3..c09a4df2678cf0eaf7d69b819996bcf42d412db0 100644 (file)
@@ -1,36 +1,43 @@
 # $Header$
 
-CFLAGS = -I/mit/afsdev/build/vax/include -I../include -O
+DBCFLAGS=
+DBLIBS=        -L/usr/ingres/lib -lingres -lm
 
-OBJS = prprocs.o prutils.o utils.o ubik.o
-LIBS= -L../lib -lsms -lcom_err \
-        /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
+AFSDIR = /mit/afsdev/bld/dest
+CFLAGS = -I$(AFSDIR)/include -I$(AFSDIR)/include/afs -I../include \
+       -I/usr/athena/include -O ${DBCFLAGS}
+LDFLAGS= -L/usr/athena/lib
 
-.SUFFIXES: .qc
+OBJS= ptutils.o utils.o ubik.o
+LIBS= -L../lib $(LDFLAGS) -lmoira -lcom_err -lkrb -ldes ${DBLIBS}
 
-.qc.c: 
-       rm -f $*.c
-       /usr/rtingres/bin/eqc -p $*
+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
 
-all: sync resync
+.SUFFIXES: .dc .sc
 
-sync: sync.o $(OBJS)
-       cc -o sync sync.o $(OBJS) $(LIBS)
-sync.c: sync.qc
+.dc.sc:
+       awk -f ../util/imake.includes/ingres.awk < $< > $*.sc
+.sc.c:
+       /usr/ingres/bin/esqlc -p $*
+
+all: sync ptdump pt_util
 
-resync: resync.o $(OBJS)
-       cc -o resync resync.o $(OBJS) $(LIBS)
-resync.c: resync.qc
+sync: sync.o $(OBJS)
+       $(CC) -o sync sync.o $(OBJS) $(AFSLIBS) $(LIBS)
 
-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
This page took 0.033482 seconds and 4 git commands to generate.