1# /**************************************************************** 2# Copyright (C) Lucent Technologies 1997 3# All Rights Reserved 4# 5# Permission to use, copy, modify, and distribute this software and 6# its documentation for any purpose and without fee is hereby 7# granted, provided that the above copyright notice appear in all 8# copies and that both that the copyright notice and this 9# permission notice and warranty disclaimer appear in supporting 10# documentation, and that the name Lucent Technologies or any of 11# its entities not be used in advertising or publicity pertaining 12# to distribution of the software without specific, written prior 13# permission. 14# 15# LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. 17# IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY 18# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 19# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER 20# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 21# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 22# THIS SOFTWARE. 23# ****************************************************************/ 24 25CFLAGS = -g 26CFLAGS = -O2 27CFLAGS = 28 29CC = gcc -Wall -g -Wwrite-strings 30CC = gcc -Wall -g 31CC = /opt/SUNWspro/bin/cc 32CC = /opt/pure/purify/purify cc 33CC = cc 34 35YACC = bison -y 36YACC = yacc 37YFLAGS = -d 38 39OFILES = b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o 40 41SOURCE = awk.h ytab.c ytab.h proto.h awkgram.y lex.c b.c main.c \ 42 maketab.c parse.c lib.c run.c tran.c proctab.c missing95.c 43 44LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \ 45 lib.c run.c tran.c missing95.c 46 47SHIP = README FIXES $(SOURCE) ytab[ch].bak makefile makefile.win \
| 1# /**************************************************************** 2# Copyright (C) Lucent Technologies 1997 3# All Rights Reserved 4# 5# Permission to use, copy, modify, and distribute this software and 6# its documentation for any purpose and without fee is hereby 7# granted, provided that the above copyright notice appear in all 8# copies and that both that the copyright notice and this 9# permission notice and warranty disclaimer appear in supporting 10# documentation, and that the name Lucent Technologies or any of 11# its entities not be used in advertising or publicity pertaining 12# to distribution of the software without specific, written prior 13# permission. 14# 15# LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. 17# IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY 18# SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 19# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER 20# IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, 21# ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 22# THIS SOFTWARE. 23# ****************************************************************/ 24 25CFLAGS = -g 26CFLAGS = -O2 27CFLAGS = 28 29CC = gcc -Wall -g -Wwrite-strings 30CC = gcc -Wall -g 31CC = /opt/SUNWspro/bin/cc 32CC = /opt/pure/purify/purify cc 33CC = cc 34 35YACC = bison -y 36YACC = yacc 37YFLAGS = -d 38 39OFILES = b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o 40 41SOURCE = awk.h ytab.c ytab.h proto.h awkgram.y lex.c b.c main.c \ 42 maketab.c parse.c lib.c run.c tran.c proctab.c missing95.c 43 44LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \ 45 lib.c run.c tran.c missing95.c 46 47SHIP = README FIXES $(SOURCE) ytab[ch].bak makefile makefile.win \
|
49 50a.out: ytab.o $(OFILES) 51 $(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC) -lm 52 53$(OFILES): awk.h ytab.h proto.h 54 55ytab.o: awk.h proto.h awkgram.y 56 $(YACC) $(YFLAGS) awkgram.y 57 mv y.tab.c ytab.c 58 mv y.tab.h ytab.h 59 $(CC) $(CFLAGS) -c ytab.c 60 61proctab.c: maketab 62 ./maketab >proctab.c 63 64maketab: ytab.h maketab.c 65 $(CC) $(CFLAGS) maketab.c -o maketab 66 67bundle: 68 @cp ytab.h ytabh.bak 69 @cp ytab.c ytabc.bak 70 @bundle $(SHIP) 71 72tar: 73 @cp ytab.h ytabh.bak 74 @cp ytab.c ytabc.bak 75 @bundle $(SHIP) >awk.shar 76 @tar cf awk.tar $(SHIP) 77 gzip awk.tar 78 ls -l awk.tar.gz 79 @zip awk.zip $(SHIP) 80 ls -l awk.zip 81 82names: 83 @echo $(LISTING) 84 85clean: 86 rm -f a.out *.o *.obj maketab maketab.exe # proctab.c
| 49 50a.out: ytab.o $(OFILES) 51 $(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC) -lm 52 53$(OFILES): awk.h ytab.h proto.h 54 55ytab.o: awk.h proto.h awkgram.y 56 $(YACC) $(YFLAGS) awkgram.y 57 mv y.tab.c ytab.c 58 mv y.tab.h ytab.h 59 $(CC) $(CFLAGS) -c ytab.c 60 61proctab.c: maketab 62 ./maketab >proctab.c 63 64maketab: ytab.h maketab.c 65 $(CC) $(CFLAGS) maketab.c -o maketab 66 67bundle: 68 @cp ytab.h ytabh.bak 69 @cp ytab.c ytabc.bak 70 @bundle $(SHIP) 71 72tar: 73 @cp ytab.h ytabh.bak 74 @cp ytab.c ytabc.bak 75 @bundle $(SHIP) >awk.shar 76 @tar cf awk.tar $(SHIP) 77 gzip awk.tar 78 ls -l awk.tar.gz 79 @zip awk.zip $(SHIP) 80 ls -l awk.zip 81 82names: 83 @echo $(LISTING) 84 85clean: 86 rm -f a.out *.o *.obj maketab maketab.exe # proctab.c
|