blob: ff7ea7c5aa954d2ee512be4113026ae115825d21 (
plain)
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
|
$NetBSD: patch-ab,v 1.1.1.1 2004/12/26 15:55:39 wiz Exp $
--- Makefile.orig 2003-01-23 21:52:29.000000000 +0100
+++ Makefile
@@ -1,7 +1,7 @@
.SUFFIXES:
DESTDIR=
-prefix=/usr/local
+prefix=${PREFIX}
bindir=$(prefix)/bin
mandir=$(prefix)/man
man1dir=$(mandir)/man1
@@ -11,7 +11,7 @@ getoptdir=$(libdir)/getopt
localedir=$(sharedir)/locale
# Define this to 0 to use the getopt(3) routines in this package.
-LIBCGETOPT=1
+LIBCGETOPT=0
# Define this to 1 if you do not have the gettext routines
WITHOUT_GETTEXT=0
@@ -20,8 +20,6 @@ WITHOUT_GETTEXT=0
SHELL=/bin/sh
-CC=gcc
-LD=ld
RM=rm -f
INSTALL=install
MSGFMT=msgfmt
@@ -39,8 +37,7 @@ WARNINGS=-Wall \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
-Wnested-externs -Winline
OPTIMIZE=-O3 -fno-strength-reduce
-CFLAGS=$(WARNINGS) $(OPTIMIZE)
-LDFLAGS=
+CFLAGS+=$(WARNINGS)
sources=getopt.c
ifeq ($(LIBCGETOPT),0)
@@ -58,7 +55,7 @@ clean: clean_po
-$(RM) $(objects) $(binaries)
getopt: $(objects)
- $(CC) $(LDFLAGS) -o $@ $(objects)
+ $(CC) $(LDFLAGS) -o $@ $(objects) -lintl
install: getopt install_po
$(INSTALL) -m 755 -d $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
|