makefile revision 224731
14Srgrimes# /**************************************************************** 24Srgrimes# Copyright (C) Lucent Technologies 1997 34Srgrimes# All Rights Reserved 44Srgrimes# 54Srgrimes# Permission to use, copy, modify, and distribute this software and 64Srgrimes# its documentation for any purpose and without fee is hereby 74Srgrimes# granted, provided that the above copyright notice appear in all 84Srgrimes# copies and that both that the copyright notice and this 94Srgrimes# permission notice and warranty disclaimer appear in supporting 104Srgrimes# documentation, and that the name Lucent Technologies or any of 114Srgrimes# its entities not be used in advertising or publicity pertaining 124Srgrimes# to distribution of the software without specific, written prior 134Srgrimes# permission. 144Srgrimes# 154Srgrimes# LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 164Srgrimes# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. 174Srgrimes# IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY 184Srgrimes# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 194Srgrimes# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER 204Srgrimes# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 214Srgrimes# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 224Srgrimes# THIS SOFTWARE. 234Srgrimes# ****************************************************************/ 244Srgrimes 254SrgrimesCFLAGS = -g 264SrgrimesCFLAGS = -O2 274SrgrimesCFLAGS = 284Srgrimes 29619SrgrimesCC = gcc -Wall -g 3050477SpeterCC = cc 314SrgrimesCC = gcc -Wall -g -Wwrite-strings 324SrgrimesCC = gcc -fprofile-arcs -ftest-coverage # then gcov f1.c; cat f1.c.gcov 334SrgrimesCC = gcc -O4 -Wall -pedantic -fno-strict-aliasing 34120119Sbde 354SrgrimesYACC = bison -y 36120119SbdeYACC = yacc 37120119SbdeYFLAGS = -d 38120119Sbde 394SrgrimesOFILES = b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o 40137948Smarcel 41120116SbdeSOURCE = awk.h ytab.c ytab.h proto.h awkgram.y lex.c b.c main.c \ 42120119Sbde maketab.c parse.c lib.c run.c tran.c proctab.c 43137948Smarcel 44120116SbdeLISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \ 45120116Sbde lib.c run.c tran.c 46120116Sbde 47120116SbdeSHIP = README FIXES $(SOURCE) ytab[ch].bak makefile \ 48120116Sbde awk.1 49194600Ssam 50194600Ssama.out: ytab.o $(OFILES) 51120119Sbde $(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC) -lm 52137948Smarcel 53120116Sbde$(OFILES): awk.h ytab.h proto.h 54120116Sbde 55202062Simpytab.o: awk.h proto.h awkgram.y 56120116Sbde $(YACC) $(YFLAGS) awkgram.y 57120116Sbde mv y.tab.c ytab.c 58120116Sbde mv y.tab.h ytab.h 59120116Sbde $(CC) $(CFLAGS) -c ytab.c 60120116Sbde 61120116Sbdeproctab.c: maketab 62120116Sbde ./maketab >proctab.c 63194600Ssam 64194600Ssammaketab: ytab.h maketab.c 65120122Sbde $(CC) $(CFLAGS) maketab.c -o maketab 66120122Sbde 67137948Smarcelbundle: 68120122Sbde @cp ytab.h ytabh.bak 69120122Sbde @cp ytab.c ytabc.bak 70120122Sbde @bundle $(SHIP) 71120122Sbde 72137948Smarceltar: 73137948Smarcel @cp ytab.h ytabh.bak 74137948Smarcel @cp ytab.c ytabc.bak 75137948Smarcel @bundle $(SHIP) >awk.shar 76137948Smarcel @tar cf awk.tar $(SHIP) 77137948Smarcel gzip awk.tar 78137948Smarcel ls -l awk.tar.gz 79137948Smarcel @zip awk.zip $(SHIP) 80137948Smarcel ls -l awk.zip 81137948Smarcel 82137948Smarcelnames: 83137948Smarcel @echo $(LISTING) 84137948Smarcel 85137948Smarcelclean: 86137948Smarcel rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov *.gcno *.gcda # proctab.c 87137948Smarcel