summaryrefslogtreecommitdiff
path: root/www/mini_httpd/files/patch-Makefile
blob: 200a1e4ea41d8ac84dd8c4573d410a5ceddebc9f (plain) (blame)
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
--- Makefile.orig	Thu Oct 30 22:53:07 2003
+++ Makefile	Thu Oct 30 23:03:24 2003
@@ -14,17 +14,18 @@
 # http://www.openssl.org/  Make sure the SSL_TREE definition points to the
 # tree with your OpenSSL installation - depending on how you installed it,
 # it may be in /usr/local instead of /usr/local/ssl.
+.ifndef NO_OPENSSL
 #SSL_TREE =	/usr/local/ssl
-#SSL_DEFS =	-DUSE_SSL
+SSL_DEFS =	-DUSE_SSL
 #SSL_INC =	-I${SSL_TREE}/include
-#SSL_LIBS =	-L${SSL_TREE}/lib -lssl -lcrypto
-
+SSL_LIBS =	-lssl -lcrypto
+.endif
 
 BINDIR =	/usr/local/sbin
 MANDIR =	/usr/local/man
-CC =		gcc
+#CC =		gcc
 CDEFS =		${SSL_DEFS} ${SSL_INC}
-CFLAGS =	-O ${CDEFS}
+CFLAGS +=	${CDEFS}
 #CFLAGS =	-g ${CDEFS}
 LDFLAGS =	-s
 #LDFLAGS =	-g
@@ -76,9 +77,7 @@
 	-mkdir -p ${BINDIR}
 	cp mini_httpd htpasswd ${BINDIR}
 	rm -f ${MANDIR}/man8/mini_httpd.8 ${MANDIR}/man1/htpasswd.1
-	-mkdir -p ${MANDIR}/man8
 	cp mini_httpd.8 ${MANDIR}/man8
-	-mkdir -p ${MANDIR}/man1
 	cp htpasswd.1 ${MANDIR}/man1
 
 clean: