|
|
1.1 ! root 1: # ! 2: # Makefile for INGRES gutil library ! 3: # ! 4: # @(#)Makefile 8.3 12/18/85 ! 5: # ! 6: ! 7: INGRES= ../.. ! 8: H= ../h ! 9: LIB= $(INGRES)/lib ! 10: CPUTYPE=VAX ! 11: ! 12: OBJS= append.o atof.o bequal.o bitcnt.o bitpos.o cat.o \ ! 13: concat.o freebuf.o ftoa.o fullwait.o \ ! 14: getufield.o iocv.o itoa.o length.o \ ! 15: xalloc.o need.o oatoi.o pad.o pmove.o \ ! 16: prargs.o scompare.o sequal.o set_si_buf.o set_so_buf.o \ ! 17: setflag.o trace.o atol.o smove.o \ ! 18: lprintf.o clrmem.o xputchar.o ztack.o syserr.o \ ! 19: min.o xfree.o bmove.$(CPUTYPE).o perror.o locv.o capital.o ! 20: ! 21: SRCS1= append.c atof.c bequal.c bitcnt.c bitpos.c cat.c \ ! 22: concat.c freebuf.c ftoa.c fullwait.c \ ! 23: getufield.c iocv.c itoa.c length.c \ ! 24: xalloc.c need.c oatoi.c pad.c pmove.c capital.c ! 25: SRCS2= prargs.c scompare.c sequal.c set_si_buf.c set_so_buf.c \ ! 26: setflag.c trace.c atol.c smove.c \ ! 27: xputchar.c ztack.c syserr.c \ ! 28: min.c xfree.c lprintf.c clrmem.c perror.c locv.c ! 29: ASSRC= bmove.VAX.s bmove.SUN.c ! 30: SRCS= $(SRCS1) $(SRCS2) $(ASSRC) ! 31: LINTSRCS= $(SRCS1) $(SRCS2) ! 32: ! 33: CFLAGS= -I$H -O ! 34: LINTFLAGS= -huc -I$H ! 35: AR= -ar ! 36: ARFLAGS=urv ! 37: RANLIB= ranlib ! 38: GET= sccs get ! 39: REL= ! 40: LINT= lint ! 41: PR= print ! 42: VGRIND= csh /usr/ucb/vgrind ! 43: HEADER= Gutil Library ! 44: CP= cp ! 45: CHMOD= chmod ! 46: LIBMODE=664 ! 47: ! 48: gutil: $(OBJS) ! 49: $(AR) $(ARFLAGS) gutil $? ! 50: $(CHMOD) $(LIBMODE) gutil ! 51: $(RANLIB) gutil ! 52: ! 53: install: $(LIB)/gutil ! 54: ! 55: $(LIB)/gutil: gutil ! 56: $(CP) gutil $(LIB)/gutil ! 57: $(RANLIB) $(LIB)/gutil ! 58: ! 59: new: ! 60: rm -f gutil ! 61: ! 62: clean: ! 63: rm -f [0-m]*.o ! 64: rm -f [n-z]*.o ! 65: rm -f core gutil ! 66: ! 67: sources: $(SRCS) ! 68: ! 69: $(SRCS): ! 70: $(GET) $(REL) $@ ! 71: ! 72: lint: ! 73: $(LINT) $(LINTFLAGS) $(LINTSRCS) ! 74: print: sources ! 75: $(PR) Makefile *.[hm] *.[csy] ! 76: ! 77: vgrind: sources ! 78: cp /dev/null index ! 79: $(VGRIND) -h "$(HEADER) (Release 8)" -n Makefile ! 80: $(VGRIND) -h "$(HEADER) (Release 8)" *.[csy] ! 81: sed /SCCSID/d < index > tmp ! 82: mv tmp index ! 83: $(VGRIND) -h "$(HEADER) (Release 8)" -x index ! 84: ! 85: tags: sources ! 86: -fgrep ../ tags > othertags ! 87: ctags $(SRCS) $(HDRS) ! 88: sort -o tags tags othertags ! 89: -rm -f othertags ! 90: ! 91: # ! 92: # DANGER DANGER DANGER DANGER DANGER DANGER ! 93: # The following two entries should NOT be executed by the user. ! 94: # These entries are only for the Makefile in conf to construct ! 95: # the system tag files. ! 96: # ! 97: systags: ! 98: ctags $(SRCS) $(HDRS) ! 99: sed "s/ / gutil\//" tags > systags ! 100: cat systags >> ../tags ! 101: ! 102: # ! 103: # We assume that systags has already been done. ! 104: # ! 105: installtags: ! 106: sed "/ gutil/d" ../tags | sed "s/ / ..\//" > othertags ! 107: sort -o tags tags othertags ! 108: -rm -f othertags systags ! 109: ! 110: depend: ! 111: grep '^#[ ]*include' $(SRCS) | sed -n -f ../h/depend.sed > makedep ! 112: echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep ! 113: echo '$$r makedep' >>eddep ! 114: echo 'w' >>eddep ! 115: cp Makefile Makefile.bak ! 116: ed - Makefile < eddep ! 117: rm eddep makedep ! 118: echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile ! 119: echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile ! 120: echo '# see make depend above' >> Makefile ! 121: ! 122: # DO NOT DELETE THIS LINE -- make depend uses it ! 123: ! 124: bequal.o:$H/useful.h ! 125: cat.o:$H/useful.h ! 126: fullwait.o:$H/useful.h ! 127: iocv.o:$H/useful.h ! 128: xalloc.o:$H/useful.h ! 129: scompare.o:$H/useful.h ! 130: sequal.o:$H/useful.h ! 131: set_si_buf.o:$H/ingres.h ! 132: set_so_buf.o:$H/ingres.h ! 133: trace.o:$H/useful.h ! 134: atol.o:$H/useful.h ! 135: ztack.o:$H/useful.h ! 136: lprintf.o:$H/useful.h ! 137: locv.o:$H/useful.h ! 138: # DEPENDENCIES MUST END AT END OF FILE ! 139: # IF YOU PUT STUFF HERE IT WILL GO AWAY ! 140: # see make depend above
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.