blob: 8fc387b81116a4fc3eab9e1b06ddea954e18e626 (
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
|
$NetBSD: patch-aa,v 1.2 2000/12/30 20:12:17 rh Exp $
--- Makefile.orig Sat Nov 11 23:01:25 2000
+++ Makefile
@@ -1,28 +1,14 @@
+PROG= sslwrap
+SRCS= s_server.c s_socket.c s_cb.c
+COPTS+= -DOPENSSL="\"openssl/\""
+LDADD= -lssl -lcrypto
+MAN=
+
+.if defined(PREFIX)
+BINDIR= ${PREFIX}/sbin
+LIBDIR= ${PREFIX}/lib
+MANDIR= ${PREFIX}/man
+DOCDIR= ${PREFIX}/share/doc
+.endif
-SRC = s_server.c s_socket.c s_cb.c
-
-# For Solaris2.6
-#EXTLIBS = -lxnet
-
-# Debug/Optimizations
-#OPT = -g
-OPT = -O2
-
-# Define
-OPENSSL="\"openssl/\""
-#OPENSSL=""
-
-all :
- gcc -o sslwrap ${SRC} ${OPT} -DFLAT_INC -DOPENSSL=${OPENSSL} \
- -L/usr/local/ssl/lib -lssl -lcrypto \
- -I/usr/local/ssl/include \
- ${EXTLIBS}
-
-clean:
- rm -f sslwrap *.o *~
-
-
-
-
-
-
+.include <bsd.prog.mk>
|