blob: 6c2cdcbb438c679067eac673fa0ec2da9e4ae50f (
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
|
--- Makefile.orig Tue Jan 4 22:54:58 2000
+++ Makefile Sat Aug 12 00:49:23 2000
@@ -6,17 +6,18 @@
OPTS = -DALLBYOPTS -DRAND48 -DDEBIAN
# Standard items
-CC = gcc
-CFLAGS = -O3
-LD = cc
-#LDFLAGS = -g
-LIBS = -lm
+CC ?= gcc
+CFLAGS += -I${LOCALBASE}/include
+LD = ${CC}
+LDFLAGS = -L${LOCALBASE}/lib
+LIBS = -lm -lgnugetopt
INSTALL = install -s
INFLAGS =
# Where to install
-DESTDIR = /usr/local/bin
-MANDIR = /usr/local/man/man1
+PREFIX ?= /usr/local
+DESTDIR = ${PREFIX}/bin
+MANDIR = ${PREFIX}/man/man1
# End configuration section
@@ -27,10 +28,8 @@
./pwgen 8 20
install: all
- $(INSTALL) pwgen $(DESTDIR)
- install pwgen.1 $(MANDIR)
- chmod 555 $(DESTDIR)/pwgen
- chmod 444 $(MANDIR)/pwgen.1
+ ${BSD_INSTALL_PROGRAM} pwgen $(DESTDIR)
+ ${BSD_INSTALL_MAN} pwgen.1 $(MANDIR)
spwgen: spwgen.o
$(LD) $(LDFLAGS) -o spwgen spwgen.o $(LIBS)
|