makefile revision 112336
1252602Spjd# /**************************************************************** 2252602Spjd# Copyright (C) Lucent Technologies 1997 3252603Spjd# All Rights Reserved 4252602Spjd# 51553Srgrimes# Permission to use, copy, modify, and distribute this software and 61553Srgrimes# its documentation for any purpose and without fee is hereby 71553Srgrimes# granted, provided that the above copyright notice appear in all 81553Srgrimes# copies and that both that the copyright notice and this 91553Srgrimes# permission notice and warranty disclaimer appear in supporting 101553Srgrimes# documentation, and that the name Lucent Technologies or any of 111553Srgrimes# its entities not be used in advertising or publicity pertaining 121553Srgrimes# to distribution of the software without specific, written prior 131553Srgrimes# permission. 141553Srgrimes# 151553Srgrimes# LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 161553Srgrimes# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. 171553Srgrimes# IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY 181553Srgrimes# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 191553Srgrimes# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER 201553Srgrimes# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 211553Srgrimes# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 221553Srgrimes# THIS SOFTWARE. 231553Srgrimes# ****************************************************************/ 241553Srgrimes 251553SrgrimesCFLAGS = -g 261553SrgrimesCFLAGS = -O2 271553SrgrimesCFLAGS = 281553Srgrimes 291553SrgrimesCC = gcc -Wall -g -Wwrite-strings 301553SrgrimesCC = gcc -Wall -g 311553SrgrimesCC = /opt/SUNWspro/bin/cc 3230380ScharnierCC = /opt/pure/purify/purify cc 331553SrgrimesCC = cc 341553Srgrimes 351553SrgrimesYACC = bison -y 361553SrgrimesYACC = yacc 37117278ScharnierYFLAGS = -d 381553Srgrimes 391553SrgrimesOFILES = b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o 40117278Scharnier 4130380ScharnierSOURCE = awk.h ytab.c ytab.h proto.h awkgram.y lex.c b.c main.c \ 421553Srgrimes maketab.c parse.c lib.c run.c tran.c proctab.c missing95.c 43117278Scharnier 44117278ScharnierLISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \ 45117278Scharnier lib.c run.c tran.c missing95.c 46312034Sngie 47280250SrwatsonSHIP = README FIXES $(SOURCE) ytab[ch].bak makefile makefile.win \ 48312034Sngie vcvars32.bat buildwin.bat mac.code awk.1 49312034Sngie 501553Srgrimesa.out: ytab.o $(OFILES) 511553Srgrimes $(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC) -lm 521553Srgrimes 531553Srgrimes$(OFILES): awk.h ytab.h proto.h 54252603Spjd 551553Srgrimesytab.o: awk.h proto.h awkgram.y 561553Srgrimes $(YACC) $(YFLAGS) awkgram.y 571553Srgrimes mv y.tab.c ytab.c 581553Srgrimes mv y.tab.h ytab.h 591553Srgrimes $(CC) $(CFLAGS) -c ytab.c 6070284Siedowse 611553Srgrimesproctab.c: maketab 621553Srgrimes ./maketab >proctab.c 631553Srgrimes 6430380Scharniermaketab: ytab.h maketab.c 651553Srgrimes $(CC) $(CFLAGS) maketab.c -o maketab 661553Srgrimes 67252602Spjdbundle: 681553Srgrimes @cp ytab.h ytabh.bak 691553Srgrimes @cp ytab.c ytabc.bak 70252602Spjd @bundle $(SHIP) 711553Srgrimes 721553Srgrimestar: 731553Srgrimes @cp ytab.h ytabh.bak 741553Srgrimes @cp ytab.c ytabc.bak 7599825Salfred @bundle $(SHIP) >awk.shar 76252602Spjd @tar cf awk.tar $(SHIP) 771553Srgrimes gzip awk.tar 781553Srgrimes ls -l awk.tar.gz 7917832Spst @zip awk.zip $(SHIP) 8017829Spst ls -l awk.zip 8117829Spst 8210087Sjkhnames: 8310087Sjkh @echo $(LISTING) 8410087Sjkh 8510087Sjkhclean: 8610087Sjkh rm -f a.out *.o *.obj maketab maketab.exe # proctab.c 8710087Sjkh