aboutsummaryrefslogtreecommitdiff
path: root/gnu/usr.bin/dc/Makefile
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>1998-05-01 09:51:31 +0000
committerAndreas Klemm <andreas@FreeBSD.org>1998-05-01 09:51:31 +0000
commit04a7994dc48e346c4b554c515e2a89019bb3022f (patch)
treefbd5a09414b908ca06888bd75e0995a4b2db6cc4 /gnu/usr.bin/dc/Makefile
parentc474c6d309dbf31b1fdd55a96b9b13f4d8c988ba (diff)
downloadsrc-04a7994dc48e346c4b554c515e2a89019bb3022f.tar.gz
src-04a7994dc48e346c4b554c515e2a89019bb3022f.zip
Style:
- Makefiles shouldn't have copyrights. - $Id$ should be preceded by a tab. - Don't include ../Makefile.inc when it is not used explicitly. - Use the normal amount of horizontal and vertical whitspace (1 tab/none). - Don't override the (correct) default for MAN1. - Use the correct order for -I paths. - Don't use += to initialize SUBDIR. - use the config.h generated by `configure' and don't use a huge CFLAGS statement. I think the other Makefiles under src/gnu needs some polishing as well ;-) Thanks to Bruce, everythig looks smarter now. Obtained from: Bruce Evans <bde@zeta.org.au>
Notes
Notes: svn path=/head/; revision=35576
Diffstat (limited to 'gnu/usr.bin/dc/Makefile')
-rw-r--r--gnu/usr.bin/dc/Makefile27
1 files changed, 8 insertions, 19 deletions
diff --git a/gnu/usr.bin/dc/Makefile b/gnu/usr.bin/dc/Makefile
index 509be76dcd0f..60b8b97022b8 100644
--- a/gnu/usr.bin/dc/Makefile
+++ b/gnu/usr.bin/dc/Makefile
@@ -1,26 +1,15 @@
-# Makefile copyright Andreas Klemm <andreas@FreeBSD.ORG> 1998
-#
-# $Id: Makefile,v 1.6 1998/04/29 22:14:40 andreas Exp $
-
-.include "${.CURDIR}/../Makefile.inc"
+# $Id$
.PATH: ${.CURDIR}/../../../contrib/bc/dc \
${.CURDIR}/../../../contrib/bc/lib \
${.CURDIR}/../../../contrib/bc/doc
-PROG= dc
-SRCS= array.c dc.c eval.c misc.c numeric.c stack.c string.c \
- getopt.c getopt1.c number.c
-MAN1= dc.1
-
-CFLAGS+= -DHAVE_VPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_ISGRAPH=1 \
- -DHAVE_LIMITS_H=1 -DHAVE_STDARG_H=1 -DHAVE_STDDEF_H=1 \
- -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 \
- -I${.CURDIR}/../../../contrib/bc/h -I${.CURDIR}
-
-DPADD= ${LIBM}
-LDADD= -lm
-
-SUBDIR+= doc
+PROG= dc
+SRCS= array.c dc.c eval.c misc.c numeric.c stack.c string.c \
+ getopt.c getopt1.c number.c
+CFLAGS+=-I${.CURDIR} -I${.CURDIR}/../../../contrib/bc/h
+DPADD= ${LIBM}
+LDADD= -lm
+SUBDIR= doc
.include <bsd.prog.mk>