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
9 # * Use the supplied proctab.c file instead of regenerating it
17 CC
= gcc
-Wall
-g
-Wwrite-strings
18 CC
= gcc
-fprofile-arcs
-ftest-coverage
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
$@
41 rm -f a.out
*.o
*.obj maketab maketab.exe
*.bb
*.bbg
*.da
*.gcov
# proctab.c