sys.mk revision 2535
11541Srgrimes# from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 21541Srgrimes# $Id: sys.mk,v 1.5 1994/09/04 02:52:27 jkh Exp $ 31541Srgrimes 41541Srgrimesunix ?= We run FreeBSD, not UNIX. 51541Srgrimes 61541Srgrimes.SUFFIXES: .out .a .ln .o .c .cc .cxx .C .F .f .e .r .y .l .s .cl .p .h 71541Srgrimes 81541Srgrimes.LIBS: .a 91541Srgrimes 101541Srgrimes# A few things need X11 so we might as well centralize it so that the 111541Srgrimes# transition to X11R6 is easier. 121541SrgrimesX11BASE ?= /usr/X386 131541Srgrimes 141541SrgrimesAR ?= ar 151541SrgrimesARFLAGS ?= rl 161541SrgrimesRANLIB ?= ranlib 171541Srgrimes 181541SrgrimesAS ?= as 191541SrgrimesAFLAGS ?= 201541Srgrimes 211541SrgrimesCC ?= cc 221541Srgrimes 231541Srgrimes.if ${MACHINE} == "sparc" 241541SrgrimesCFLAGS ?= -O4 251541Srgrimes.else 261541SrgrimesCFLAGS ?= -O 271541Srgrimes.endif 281541Srgrimes 291541SrgrimesCXX ?= c++ 301541SrgrimesCXXFLAGS ?= ${CXXINCLUDES} ${CFLAGS} 311541Srgrimes 321541SrgrimesCPP ?= cpp 331541Srgrimes 341541Srgrimes.if ${.MAKEFLAGS:M-s} == "" 351541SrgrimesECHO ?= echo 361541SrgrimesECHODIR ?= echo 371541Srgrimes.else 381541SrgrimesECHO ?= true 3914328Speter.if ${.MAKEFLAGS:M-s} == "-s" 401541SrgrimesECHODIR ?= echo 411541Srgrimes.else 4213226SwollmanECHODIR ?= true 4314328Speter.endif 4413226Swollman.endif 451541Srgrimes 461541SrgrimesFC ?= f77 471541SrgrimesFFLAGS ?= -O 481541SrgrimesEFLAGS ?= 491541Srgrimes 501541SrgrimesLEX ?= lex 511541SrgrimesLFLAGS ?= 521541Srgrimes 531541SrgrimesLD ?= ld 541541SrgrimesLDFLAGS ?= 551541Srgrimes 561541SrgrimesLINT ?= lint 571541SrgrimesLINTFLAGS ?= -chapbx 581541Srgrimes 591541SrgrimesMAKE ?= make 601541Srgrimes 611541SrgrimesPC ?= pc 622729SdfrPFLAGS ?= 6313226Swollman 642729SdfrRC ?= f77 652729SdfrRFLAGS ?= 6613226Swollman 672729SdfrSHELL ?= sh 681541Srgrimes 691541SrgrimesYACC ?= yacc 701541SrgrimesYFLAGS ?= -d 711541Srgrimes 721541Srgrimes# This rule currently causes both make from 1.x and 2.x to have problems, 731541Srgrimes# and is not being used so disable it for now. 741541Srgrimes#.c: 751541Srgrimes# ${CC} ${CFLAGS} ${.IMPSRC} -o ${.TARGET} 769369Sdg 771541Srgrimes.c.o: 781541Srgrimes ${CC} ${CFLAGS} -c ${.IMPSRC} 791541Srgrimes 801541Srgrimes.cc.o .cxx.o .C.o: 811541Srgrimes ${CXX} ${CXXFLAGS} -c ${.IMPSRC} 821541Srgrimes 831541Srgrimes.p.o: 841541Srgrimes ${PC} ${PFLAGS} -c ${.IMPSRC} 851541Srgrimes 865455Sdg.e.o .r.o .F.o .f.o: 876577Sguido ${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC} 885530Sdg 898747Sdg.s.o: 905455Sdg ${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC} 918747Sdg 928747Sdg.y.o: 938747Sdg ${YACC} ${YFLAGS} ${.IMPSRC} 948747Sdg ${CC} ${CFLAGS} -c y.tab.c -o ${.TARGET} 958747Sdg rm -f y.tab.c 961541Srgrimes 978747Sdg.l.o: 988747Sdg ${LEX} ${LFLAGS} ${.IMPSRC} 991541Srgrimes ${CC} ${CFLAGS} -c lex.yy.c -o ${.TARGET} 1001541Srgrimes rm -f lex.yy.c 1011541Srgrimes 1021541Srgrimes.y.c: 1031541Srgrimes ${YACC} ${YFLAGS} ${.IMPSRC} 1041541Srgrimes mv y.tab.c ${.TARGET} 1056492Sjoerg 1061541Srgrimes.l.c: 1076492Sjoerg ${LEX} ${LFLAGS} ${.IMPSRC} 1086492Sjoerg mv lex.yy.c ${.TARGET} 1091541Srgrimes 1106492Sjoerg.s.out .c.out .o.out: 1116492Sjoerg ${CC} ${CFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} 1121541Srgrimes 1136492Sjoerg.f.out .F.out .r.out .e.out: 1146492Sjoerg ${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${.IMPSRC} \ 1151541Srgrimes ${LDLIBS} -o ${.TARGET} 1166492Sjoerg rm -f ${.PREFIX}.o 1176492Sjoerg 1181541Srgrimes.y.out: 1196492Sjoerg ${YACC} ${YFLAGS} ${.IMPSRC} 1201541Srgrimes ${CC} ${CFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET} 1211541Srgrimes rm -f y.tab.c 1221541Srgrimes 1231541Srgrimes.l.out: 1241541Srgrimes ${LEX} ${LFLAGS} ${.IMPSRC} 1251541Srgrimes ${CC} ${CFLAGS} lex.yy.c ${LDLIBS} -ll -o ${.TARGET} 1261541Srgrimes rm -f lex.yy.c 1271541Srgrimes 1281541Srgrimes.include <bsd.own.mk> 1291541Srgrimes 1301541Srgrimes.if exists(/etc/make.conf) 1312729Sdfr.include </etc/make.conf> 1322729Sdfr.endif 1332729Sdfr