Package: dealer / 20161012-4

makefile Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Don't use embedded getopt and srand copies

--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 # $Header: /home/henk/CVS/dealer/Makefile,v 1.15 1999/08/05 19:57:44 henk Exp $
 
 CC      = gcc
-CFLAGS = -Wall -pedantic -I. -DNDEBUG -c
+CPPFLAGS += -DSTD_RAND # don't use embedded GNU random lib
 FLEX    = flex
 YACC    = yacc
 # Note: this should be the Berkeley Yacc, sometimes called byacc
@@ -10,22 +10,21 @@ PROGRAM  = dealer
 TARFILE  = ${PROGRAM}.tar
 GZIPFILE = ${PROGRAM}.tar.gz
 
-SRC  = dealer.c pbn.c  c4.c getopt.c pointcount.c
+SRC  = dealer.c pbn.c  c4.c pointcount.c
 LSRC = scan.l
 YSRC = defs.y
 HDR  = dealer.h tree.h
 
-OBJ  = dealer.o defs.o pbn.o c4.o getopt.o pointcount.o
+OBJ  = dealer.o defs.o pbn.o c4.o pointcount.o
 LOBJ = scan.c
 YOBJ = defs.c
+MAN  = dealer.6 dealer.dpp.6
 
-
-dealer: ${OBJ} ${LOBJ} ${YOBJ}
-	${MAKE} -C Random lib
-	$(CC) -o $@ ${OBJ} -L./Random -lgnurand
+dealer: ${OBJ} ${LOBJ} ${YOBJ} ${MAN}
+	$(LINK.c) -o $@ ${OBJ}
 
 clean:
-	rm -f ${OBJ} ${LOBJ} ${YOBJ} 
+	rm -f ${OBJ} ${LOBJ} ${YOBJ} ${MAN}
 	${MAKE} -C Examples clean
 	${MAKE} -C Random   clean
 
@@ -60,7 +59,13 @@ test: dealer
 # C-code
 #
 .c.o:
-	${CC} ${CFLAGS} -o $@ $<
+	$(COMPILE.c) -o $@ $<
+
+#
+# Manpages
+#
+%.6: %.pod
+	pod2man --section=6 --release="Dealer" --center="User Documentation" $< > $@
 
 # 
 # File dependencies