blob: b25e7220459ae57f3a7f6b3080599eaae7a734d1 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
$NetBSD: patch-aa,v 1.5 2008/12/13 13:58:31 obache Exp $
--- Makefile.in.orig 2001-05-10 16:10:49.000000000 +0000
+++ Makefile.in
@@ -18,15 +18,18 @@ LIBS=@LIBS@
AR=@AR@
RANLIB=@RANLIB@
INSTALL=@INSTALL@
-INSTALL_PROGRAM=${INSTALL} -c -s -m 555
-INSTALL_MAN=${INSTALL} -c -m 444
-INSTALL_SCRIPT=${INSTALL} -c -m 555
-INSTALL_DATA=${INSTALL} -c -m 444
+INSTALL_PROGRAM=${BSD_INSTALL_PROGRAM}
+INSTALL_MAN=${BSD_INSTALL_MAN}
+INSTALL_SCRIPT=${BSD_INSTALL_SCRIPT}
+INSTALL_DATA=${BSD_INSTALL_DATA}
PERL=@PERL@
SENDMAIL=@SENDMAIL@
TOUCH=@TOUCH@
LDFLAGS=-L. @LDFLAGS@
+GCC=@GCC@
+host=@host@
+
TARGETS=skey skeyinit skeyinfo skeyaudit
LIBOBJS=skeylogin.o skeysubr.o put.o errx.o md4c.o md5c.o rmd160.o rmd160hl.o sha1.o sha1hl.o flock.o strlcpy.o login_cap.o
SKEYOBJS=skey.o
@@ -49,6 +52,13 @@ HDRS= skey.h sha1.h rmd160.h
all: ${TARGETS} ${MANPAGES}
+ifeq (sparc64, $(findstring sparc64, $(host)))
+ifdef GCC
+sha1.o: config.h
+ ${CC} ${CFLAGS:-O%=-O0} -c -o $@ sha1.c
+endif
+endif
+
${LIBOBJS}: config.h
libskey.a: ${LIBOBJS}
@@ -88,14 +98,7 @@ catman-do:
done
install: ${TARGETS}
- $(INSTALL) -d $(DESTDIR)$(bindir)
- $(INSTALL) -d $(DESTDIR)$(libdir)
- $(INSTALL) -d $(DESTDIR)$(mandir)
- $(INSTALL) -d $(DESTDIR)$(etcdir)
- $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)1
- $(INSTALL) -d $(DESTDIR)$(mandir)/$(mansubdir)8
- $(INSTALL) -d $(DESTDIR)$(includedir)
- $(INSTALL) -d $(DESTDIR)$(sysconfdir)
+ ${BSD_INSTALL_DATA_DIR} $(DESTDIR)$(prefix)/share/examples/skey
${INSTALL_DATA} libskey.a $(DESTDIR)$(libdir)
${INSTALL_DATA} ${HDRS} $(DESTDIR)$(includedir)
@for target in ${TARGETS}; do \
@@ -106,8 +109,8 @@ install: ${TARGETS}
${INSTALL_MAN} skeyinit.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/skeyinit.1
${INSTALL_MAN} skeyinfo.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/skeyinfo.1
${INSTALL_MAN} skeyaudit.[01].out $(DESTDIR)$(mandir)/$(mansubdir)1/skeyaudit.1
- ${INSTALL_MAN} skeyprune.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/skeyprune.1
- ${TOUCH} ${DESTDIR}${sysconfdir}/skeykeys
+ ${INSTALL_MAN} skeyprune.[08].out $(DESTDIR)$(mandir)/$(mansubdir)8/skeyprune.8
+ ${TOUCH} ${DESTDIR}$(prefix)/share/examples/skey/skeykeys
uninstallall: uninstall
-rm -f $(DESTDIR)$(sysconfdir)/skeykeys
|