1# @(#)sys.mk 5.11 (Berkeley) 03/13/91 2 3unix= We run UNIX. 4 5.SUFFIXES: .out .a .ln .o .c .F .f .e .r .y .l .s .cl .p .h 6 7.LIBS: .a 8 9AR= ar 10ARFLAGS= rl 11RANLIB= ranlib 12 13AS= as 14AFLAGS= 15 16CC= cc 17CFLAGS= -O 18 19CPP= cpp 20 21FC= f77 22FFLAGS= -O 23EFLAGS= 24 25LEX= lex 26LFLAGS= 27 28LD= ld 29LDFLAGS= 30 31LINT= lint 32LINTFLAGS= -chapbx 33 34MAKE= make 35 36PC= pc 37PFLAGS= 38 39RC= f77 40RFLAGS= 41 42SHELL= sh 43 44YACC= yacc 45YFLAGS=-d 46 47.c.o: 48 ${CC} ${CFLAGS} -c ${.IMPSRC} 49 50.p.o: 51 ${PC} ${PFLAGS} -c ${.IMPSRC} 52 53.e.o .r.o .F.o .f.o: 54 ${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC} 55 56.s.o: 57 ${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC} 58 59.y.o: 60 ${YACC} ${YFLAGS} ${.IMPSRC} 61 ${CC} ${CFLAGS} -c y.tab.c -o ${.TARGET} 62 rm -f y.tab.c 63 64.l.o: 65 ${LEX} ${LFLAGS} ${.IMPSRC} 66 ${CC} ${CFLAGS} -c lex.yy.c -o ${.TARGET} 67 rm -f lex.yy.c 68 69.y.c: 70 ${YACC} ${YFLAGS} ${.IMPSRC} 71 mv y.tab.c ${.TARGET} 72 73.l.c: 74 ${LEX} ${LFLAGS} ${.IMPSRC} 75 mv lex.yy.c ${.TARGET} 76 77.s.out .c.out .o.out: 78 ${CC} ${CFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 79 80.f.out .F.out .r.out .e.out: 81 ${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${.IMPSRC} \ 82 ${LDLIBS} -o ${.TARGET} 83 rm -f ${.PREFIX}.o 84 85.y.out: 86 ${YACC} ${YFLAGS} ${.IMPSRC} 87 ${CC} ${CFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET} 88 rm -f y.tab.c 89 90.l.out: 91 ${LEX} ${LFLAGS} ${.IMPSRC} 92 ${CC} ${CFLAGS} lex.yy.c ${LDLIBS} -ll -o ${.TARGET} 93 rm -f lex.yy.c 94