gno/usr.bin/awk/Makefile
tribby 0b6d503134 awk 2.0 for GNO/ME, including modified Bell Labs source code, test cases,
and output files for test case comparison. See README.gno for implementation
notes. NOTE: some test cases in tests/dotests are commented-out because
they depend on pipes working and/or the "sort" utility.
1998-04-07 16:19:01 +00:00

65 lines
2.0 KiB
Makefile

#
# This makefile is intended for use with dmake(1) on Apple IIGS
# $Id: Makefile,v 1.1 1998/04/07 16:13:04 tribby Exp $
#
# Created by Dave Tribby, January 1998
# --------------------------------------------------------------------
# NOTE: the original Bell Labs package uses yacc (or bison) to compile
# awkgram.y into ytab.c and ytab.h. It compiles maketab.c into
# the program maketab, and produces proctab.c using maketab and
# ytab.h. I chose to create ytab.c, ytab.h, and proctab.c on a
# Unix system and bring them to the Apple IIGS, since I don't
# use yacc or bison on my GS. This makefile could be modified
# to include these additional steps. If necessary, remove the
# "#" from the beginning of the following lines and move them
# to the end of this Makefile.
#OBJS += maketab maketab.o
#YFLAGS += -d
#ytab.h: awk.h proto.h awkgram.y
# $(YACC) $(YFLAGS) awkgram.y
# mv y.tab.c ytab.c
# mv y.tab.h ytab.h
#
#proctab.c: maketab
# $(OBJ_DIR)maketab >proctab.c
#
#maketab.o: ytab.h maketab.c
# $(CC) -o $@ $(CFLAGS:s/ -r / /) -a0 -c maketab.c
#
#maketab: maketab.o
# $(CC) -o $(OBJ_DIR)$@ $(LDFLAGS) $< $(LDLIBS)
# --------------------------------------------------------------------
# Default stack size (can be overridden by cmd line)
# This value have been tested and certified as working, although
# even more may be required for deeply recursive awk programs
STACK *= 4096
# Program name
PROG= awk
MAIN= main
# Source files
# Compile main program first, then in size order since ORCA/C
# can run out of memory if run.c is compiled last
SRCS= main.c run.c ytab.c b.c lib.c lex.c tran.c parse.c proctab.c
# Deliver to /usr/bin
BINDIR = /usr/bin
.INCLUDE : /src/gno/prog.mk
#
# Additional dependancies
#
main.o: awk.h proto.h ytab.h
b.o: awk.h proto.h ytab.h
parse.o: awk.h proto.h ytab.h
lib.o: awk.h proto.h ytab.h
run.o: awk.h proto.h ytab.h
tran.o: awk.h proto.h ytab.h
ytab.o: awk.h proto.h
lex.o: awk.h proto.h
proctab.o: awk.h proto.h