Package: docbook-to-man / 1:2.0.0-32

05-makefile.patch 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
Index: docbook-to-man-2.0.0/Instant/tptregexp/Makefile
===================================================================
--- docbook-to-man-2.0.0.orig/Instant/tptregexp/Makefile	1999-07-03 12:58:23.000000000 +0000
+++ docbook-to-man-2.0.0/Instant/tptregexp/Makefile	2012-04-27 09:23:08.000000000 +0000
@@ -50,7 +50,7 @@
 # -p			profiler
 PROF=
 
-CFLAGS=-O $(ENV) $(TEST) $(PROF)
+CFLAGS=-O $(ENV)
 LINTFLAGS=$(LENV) $(TEST) -ha
 LDFLAGS=
 
@@ -67,6 +67,9 @@
 try:	try.o $(OBJ)
 	$(CC) $(LDFLAGS) try.o $(OBJ) -o try
 
+%.o : %.c
+	$(CC) -c $(CFLAGS) $(TEST) $(PROF) $< -o $@
+
 # Making timer will probably require putting stuff in $(PROF) and then
 # recompiling everything; the following is just the final stage.
 timer:	timer.o $(OBJ)
Index: docbook-to-man-2.0.0/Instant/Makefile
===================================================================
--- docbook-to-man-2.0.0.orig/Instant/Makefile	1999-07-03 12:58:23.000000000 +0000
+++ docbook-to-man-2.0.0/Instant/Makefile	2012-04-27 09:24:48.000000000 +0000
@@ -76,8 +76,6 @@
 CC	= gcc
 
 OPT	= -g
-CFLAGS	= $(OPT) $(REGEX_INC) $(DEFINES)
-LDFLAGS	= $(OPT)
 REGEX	= -L$(REGEX_LIB) -ltptregexp
 
 CFILES	= main.c util.c info.c translate.c traninit.c tranvar.c tables.c \
@@ -89,6 +87,9 @@
 
 all:	dotptregexp $(PROGS)
 
+%.o : %.c
+	$(CC) -c $(CFLAGS) $(OPT) $(REGEX_INC) $(DEFINES) $< -o $@
+
 dotptregexp:
 	cd tptregexp; $(MAKE) all