blob: 6e86ba7c3b6b8de50bb7c5b13314e527360048ec (
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.2 2013/04/11 11:45:44 adam Exp $
--- Makefile.orig 2012-08-12 09:07:43.000000000 +0000
+++ Makefile
@@ -1,7 +1,7 @@
.SUFFIXES:
DESTDIR=
-prefix=/usr/local
+prefix=${PREFIX}
bindir=$(prefix)/bin
mandir=$(prefix)/man
man1dir=$(mandir)/man1
@@ -10,7 +10,7 @@ getoptdir=$(sharedir)/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
@@ -23,8 +23,6 @@ UNLIKELYNAME=a8vwjfd92
SHELL=/bin/sh
-CC=gcc
-LD=ld
RM=rm -f
INSTALL=install
MSGFMT=msgfmt
@@ -42,8 +40,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)
@@ -61,7 +58,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)
|