]> andersk Git - moira.git/blobdiff - afssync/Makefile
This includes Ted's unchecked-in changes from two years ago, as well
[moira.git] / afssync / Makefile
index 0cf7f5b690c4e8e1eec446b28040167545b0e4bf..c09a4df2678cf0eaf7d69b819996bcf42d412db0 100644 (file)
@@ -1,31 +1,43 @@
 # $Header$
 
+DBCFLAGS=
+DBLIBS=        -L/usr/ingres/lib -lingres -lm
+
 AFSDIR = /mit/afsdev/bld/dest
-CFLAGS = -I$(AFSDIR)/include -I$(AFSDIR)/include/afs -I../include -O
+CFLAGS = -I$(AFSDIR)/include -I$(AFSDIR)/include/afs -I../include \
+       -I/usr/athena/include -O ${DBCFLAGS}
+LDFLAGS= -L/usr/athena/lib
 
-OBJS= ptprocs.o utils.o ubik.o
-LIBS= -L../lib -lmoira -lcom_err -lkrb -ldes \
-        /usr/rtingres/lib/libqlib /usr/rtingres/lib/compatlib
+OBJS= ptutils.o utils.o ubik.o
+LIBS= -L../lib $(LDFLAGS) -lmoira -lcom_err -lkrb -ldes ${DBLIBS}
 
 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
+.SUFFIXES: .dc .sc
 
-.qc.c: 
-       rm -f $*.c
-       /usr/rtingres/bin/eqc -p $*
+.dc.sc:
+       awk -f ../util/imake.includes/ingres.awk < $< > $*.sc
+.sc.c:
+       /usr/ingres/bin/esqlc -p $*
 
-all: sync ptdump
+all: sync ptdump pt_util
 
 sync: sync.o $(OBJS)
        $(CC) -o sync sync.o $(OBJS) $(AFSLIBS) $(LIBS)
-sync.c: sync.qc
 
 ptdump: ptdump.o
-       cc -o ptdump ptdump.o $(AFSLIBS) -lkrb -ldes
+       cc -o ptdump ptdump.o $(AFSLIBS) $(LDFLAGS) -ldes
+
+pt_util: pt_util.o $(OBJS)
+       cc -o pt_util pt_util.o $(OBJS) $(AFSLIBS) $(LDFLAGS) -lcom_err -ldes
+
+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.026527 seconds and 4 git commands to generate.