Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / nawk / files / Makefile
blob85799fb9a51308b6a874a500be8c8324c3730578
1 # $NetBSD: Makefile,v 1.2 2007/05/07 22:39:07 rillig Exp $
3 # This file is copied from "makefile.orig" with the following
4 # modifications for pkgsrc:
6 # * Some problematic comments lines were stripped.
7 # * Use the supplied ytab.[ch] files instead of regenerating them
8 # with yacc.
9 # * Use the supplied proctab.c file instead of regenerating it
10 # with maketab.
13 CFLAGS = -g
14 CFLAGS = -O2
15 CFLAGS =
17 CC = gcc -Wall -g -Wwrite-strings
18 CC = gcc -fprofile-arcs -ftest-coverage
19 CC = gcc -Wall -g
20 CC = cc
22 YACC = bison -y
23 YACC = yacc
24 YFLAGS = -d
26 OFILES = b.o main.o parse.o proctab.o tran.o lib.o run.o lex.o
28 SOURCE = awk.h ytab.c ytab.h proto.h awkgram.y lex.c b.c main.c \
29 maketab.c parse.c lib.c run.c tran.c proctab.c missing95.c
31 LISTING = awk.h proto.h awkgram.y lex.c b.c main.c maketab.c parse.c \
32 lib.c run.c tran.c missing95.c
34 SHIP = README FIXES $(SOURCE) ytab[ch].bak makefile makefile.win \
35 vcvars32.bat buildwin.bat mac.code awk.1
37 a.out: ytab.o $(OFILES)
38 $(CC) $(CFLAGS) ytab.o $(OFILES) $(ALLOC) -lm -o $@
40 clean:
41 rm -f a.out *.o *.obj maketab maketab.exe *.bb *.bbg *.da *.gcov # proctab.c