| @@ -1,64 +1,56 @@ | | | @@ -1,64 +1,56 @@ |
1 | $NetBSD: patch-aa,v 1.2 2011/08/05 15:40:47 reed Exp $ | | 1 | $NetBSD: patch-aa,v 1.3 2015/01/16 11:49:07 wiz Exp $ |
2 | | | 2 | |
3 | --- Makefile.in.orig 2007-08-03 05:05:15.000000000 -0500 | | 3 | --- Makefile.in.orig 2011-08-31 17:04:19.000000000 +0000 |
4 | +++ Makefile.in 2011-08-05 10:34:05.000000000 -0500 | | 4 | +++ Makefile.in |
5 | @@ -11,14 +11,14 @@ | | 5 | @@ -18,7 +18,7 @@ CFLAGS= @CFLAGS@ |
6 | prefix= @prefix@ | | | |
7 | exec_prefix= @exec_prefix@ | | | |
8 | datarootdir= @datarootdir@ | | | |
9 | -localedir= @localedir@ | | | |
10 | +localedir= /usr/pkg/share/locale | | | |
11 | | | | |
12 | CC= @CC@ | | | |
13 | CFLAGS= @CFLAGS@ | | | |
14 | CPPFLAGS= @CPPFLAGS@ -I. -DSHAREDIR=\"@datarootdir@\" -DLOCALEDIR=\"$(localedir)\" | | 6 | CPPFLAGS= @CPPFLAGS@ -I. -DSHAREDIR=\"@datarootdir@\" -DLOCALEDIR=\"$(localedir)\" |
15 | LDFLAGS= @LDFLAGS@ | | 7 | LDFLAGS= @LDFLAGS@ |
16 | LIBM= -lm | | 8 | LIBM= -lm |
17 | -LIBS= @LIBS@ | | 9 | -LIBS= @LIBS@ |
18 | +LIBS= @LIBS@ ${LIBPCREPOSIX} | | 10 | +LIBS= @LIBS@ ${LIBPCREPOSIX} |
19 | | | 11 | |
20 | CATALOGS= de.mo en_GB.mo nl.mo | | 12 | CATALOGS= de.mo en_GB.mo nl.mo |
21 | | | 13 | |
22 | @@ -26,13 +26,13 @@ | | 14 | @@ -26,13 +26,13 @@ all: diction style all-po-@USE_NLS@ |
23 | all-po-no: | | 15 | all-po-no: |
24 | all-po-yes: $(CATALOGS) | | 16 | all-po-yes: $(CATALOGS) |
25 | | | 17 | |
26 | -diction: diction.o sentence.o misc.o getopt.o getopt1.o | | 18 | -diction: diction.o sentence.o misc.o getopt.o getopt1.o |
27 | - $(CC) -o $@ $(LDFLAGS) diction.o sentence.o misc.o \ | | 19 | - $(CC) -o $@ $(LDFLAGS) diction.o sentence.o misc.o \ |
28 | - getopt.o getopt1.o $(LIBS) | | 20 | - getopt.o getopt1.o $(LIBS) |
29 | - | | 21 | - |
30 | -style: style.o sentence.o misc.o getopt.o getopt1.o | | 22 | -style: style.o sentence.o misc.o getopt.o getopt1.o |
31 | - $(CC) -o $@ $(LDFLAGS) style.o sentence.o misc.o \ | | 23 | - $(CC) -o $@ $(LDFLAGS) style.o sentence.o misc.o \ |
32 | - getopt.o getopt1.o $(LIBM) $(LIBS) | | 24 | - getopt.o getopt1.o $(LIBM) $(LIBS) |
33 | +diction: diction.o sentence.o misc.o | | 25 | +diction: diction.o sentence.o misc.o |
34 | + ${LIBTOOL} --mode=link --tag=CC $(CC) -o $@ $(LDFLAGS) \ | | 26 | + ${LIBTOOL} --mode=link --tag=CC $(CC) -o $@ $(LDFLAGS) \ |
35 | + diction.lo sentence.lo misc.lo $(LIBS) | | 27 | + diction.lo sentence.lo misc.lo $(LIBS) |
36 | + | | 28 | + |
37 | +style: style.o sentence.o misc.o | | 29 | +style: style.o sentence.o misc.o |
38 | + ${LIBTOOL} --mode=link --tag=CC $(CC) -o $@ $(LDFLAGS) \ | | 30 | + ${LIBTOOL} --mode=link --tag=CC $(CC) -o $@ $(LDFLAGS) \ |
39 | + style.lo sentence.lo misc.lo $(LIBM) $(LIBS) | | 31 | + style.lo sentence.lo misc.lo $(LIBM) $(LIBS) |
40 | | | 32 | |
41 | check: diction | | 33 | check: diction |
42 | for i in $(srcdir)/test/test*; do $$i || break; done | | 34 | for i in $(srcdir)/test/test*; do $$i || break; done |
43 | @@ -61,7 +61,7 @@ | | 35 | @@ -61,7 +61,7 @@ install-po-yes: $(CATALOGS) |
44 | done | | 36 | done |
45 | | | 37 | |
46 | .c.o: | | 38 | .c.o: |
47 | - $(CC) -c $(CPPFLAGS) $(CFLAGS) $< | | 39 | - $(CC) -c $(CPPFLAGS) $(CFLAGS) $< |
48 | + ${LIBTOOL} --mode=compile --tag=CC $(CC) -c $(CPPFLAGS) $(CFLAGS) -prefer-pic $< | | 40 | + ${LIBTOOL} --mode=compile --tag=CC $(CC) -c $(CPPFLAGS) $(CFLAGS) -prefer-pic $< |
49 | | | 41 | |
50 | .SUFFIXES: .po .mo | | 42 | .SUFFIXES: .po .mo |
51 | | | 43 | |
52 | @@ -110,10 +110,8 @@ | | 44 | @@ -110,10 +110,8 @@ tar: distclean |
53 | (b=`pwd`; b=`basename $$b`; cd ..; tar zcvf $$b.tar.gz $$b/COPYING $$b/INSTALL $$b/Makefile.in $$b/README $$b/NEWS $$b/configure $$b/install-sh $$b/de $$b/en $$b/en_GB $$b/nl $$b/test $$b/[a-z]*.*) | | 45 | (b=`pwd`; b=`basename $$b`; cd ..; tar zcvf $$b.tar.gz $$b/COPYING $$b/INSTALL $$b/Makefile.in $$b/README $$b/NEWS $$b/configure $$b/install-sh $$b/de $$b/en $$b/en_GB $$b/nl $$b/test $$b/[a-z]*.*) |
54 | #}}} | | 46 | #}}} |
55 | #{{{ dependencies | | 47 | #{{{ dependencies |
56 | -diction.o: diction.c config.h getopt.h misc.h sentence.h | | 48 | -diction.o: diction.c config.h getopt.h misc.h sentence.h |
57 | -getopt.o: getopt.c getopt.h getopt_int.h | | 49 | -getopt.o: getopt.c getopt.h getopt_int.h |
58 | -getopt1.o: getopt1.c getopt.h getopt_int.h | | 50 | -getopt1.o: getopt1.c getopt.h getopt_int.h |
59 | +diction.o: diction.c config.h misc.h sentence.h | | 51 | +diction.o: diction.c config.h misc.h sentence.h |
60 | misc.o: misc.c config.h misc.h | | 52 | misc.o: misc.c config.h misc.h |
61 | sentence.o: sentence.c config.h misc.h sentence.h | | 53 | sentence.o: sentence.c config.h misc.h sentence.h |
62 | -style.o: style.c config.h getopt.h misc.h sentence.h | | 54 | -style.o: style.c config.h getopt.h misc.h sentence.h |
63 | +style.o: style.c config.h misc.h sentence.h | | 55 | +style.o: style.c config.h misc.h sentence.h |
64 | #}}} | | 56 | #}}} |