summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/dc/Makefile
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>1998-05-01 09:51:31 +0000
committerandreas <andreas@FreeBSD.org>1998-05-01 09:51:31 +0000
commit68804e61797d4c6739c88a4c8ccb85baeee0c6aa (patch)
treeb465c423b3690c74c8c39870bf567a8996d458da /gnu/usr.bin/dc/Makefile
parentf28fdede6f2d2cb5aafec030913ea5ac7ad6eaed (diff)
downloadFreeBSD-src-68804e61797d4c6739c88a4c8ccb85baeee0c6aa.zip
FreeBSD-src-68804e61797d4c6739c88a4c8ccb85baeee0c6aa.tar.gz
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>
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 509be76..60b8b97 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>
OpenPOWER on IntegriCloud