freebsd-dev/gnu/usr.bin/awk/Makefile
David E. O'Brien eb1c57d872 On the sparc64 platform we install this as "gawk" as Gawk is currently
borked on the sparc64.  We are using BWK's AWK at the moment.
2002-03-05 19:40:25 +00:00

36 lines
724 B
Makefile

# Makefile copyright James Raynard (jraynard@freebsd.org) 1997
#
# $FreeBSD$
.include "${.CURDIR}/../Makefile.inc"
.PATH: ${.CURDIR}/../../../contrib/awk
.if ${MACHINE_ARCH} == "sparc64"
PROG= gawk
.else
PROG= awk
.endif
SRCS= array.c awkgram.y builtin.c eval.c field.c gawkmisc.c io.c main.c \
msg.c node.c re.c version.c dfa.c getopt.c getopt1.c ext.c profile.c
MAN= doc/gawk.1
.if ${MACHINE_ARCH} != "sparc64"
MLINKS= gawk.1 awk.1
.endif
YFLAGS=
# Important for ctype macros!
CFLAGS+= -funsigned-char
CFLAGS+= -I${.CURDIR} -I${.CURDIR}/../../../contrib/awk
CFLAGS+= -DHAVE_CONFIG_H -DGAWK -DDEFPATH=\".\"
WARNS= 0
SUBDIR+= doc
DPADD+= ${LIBGNUREGEX} ${LIBM}
LDADD+= -lgnuregex -lm
.include <bsd.prog.mk>