summaryrefslogtreecommitdiff
blob: a233449b14ad2145fd0786d4c759d01e723c3899 (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
69
70
71
72
73
74
--- a/Makefile	2006-12-23 15:27:39.000000000 +0100
+++ b/Makefile	2010-08-23 01:12:51.000000000 +0200
@@ -2,8 +2,10 @@
 
 ALLDEPS = nessus.tmpl
 
-all: libnessus-client client sslstuff
-
+all:
+	$(MAKE) -C libnessus
+	$(MAKE) -C nessus
+	$(MAKE) -C ssl
 
 nessus.tmpl: nessus.tmpl.in configure VERSION
 	$(SHELL) configure $(CONFIGURE_ARGS)
@@ -21,20 +23,17 @@
 	$(INSTALL) -m $(CLIENTMODE) nessusclient-mkcert $(DESTDIR)${bindir}
 	$(INSTALL) -m $(CLIENTMODE) ssl/nessusclient-mkrand $(DESTDIR)${bindir}
 
-sslstuff:
-	cd ssl && $(MAKE)
-
 install-man:
 	@echo installing man pages ...
 	@test -d $(DESTDIR)${mandir}/man1 || $(INSTALL_DIR) $(DESTDIR)${mandir}/man1
 	@test -d $(DESTDIR)${mandir}/man8 || $(INSTALL_DIR) $(DESTDIR)${mandir}/man8
 	@test -d $(DESTDIR)${datadir}/doc/ || $(INSTALL_DIR) $(DESTDIR)${datadir}/doc/
-	@test -d $(DESTDIR)${datadir}/doc/NessusClient || $(INSTALL_DIR) $(DESTDIR)${datadir}/doc/NessusClient
+	@test -d $(NESSUS_DOCDIR) || $(INSTALL_DIR) $(NESSUS_DOCDIR)
 
 	$(INSTALL) -c -m 0444 ${MAN_NESSUS_1} $(DESTDIR)${mandir}/man1/NessusClient.1
 	$(INSTALL) -c -m 0444 doc/nessusclient-mkcert.1 $(DESTDIR)${mandir}/man1/nessusclient-mkcert.1
 	$(INSTALL) -c -m 0444 doc/nessusclient-mkrand.1 $(DESTDIR)${mandir}/man1/nessusclient-mkrand.1
-	$(INSTALL) -c -m 0444 doc/NessusClient_UserGuide.pdf $(DESTDIR)${datadir}/doc/NessusClient/NessusClient_UserGuide.pdf
+	$(INSTALL) -c -m 0444 doc/NessusClient_UserGuide.pdf $(NESSUS_DOCDIR)/NessusClient_UserGuide.pdf
 
 win32: ${MAN_NESSUS_1}
 	$(MANROFF) ${MAN_NESSUS_1}  > doc/NessusClient.1.cat
@@ -45,23 +44,15 @@
 	@echo ' --------------------------------------------------------------'
 	@echo
 
-client-install : client
+client-install : nessus
 	test -d $(DESTDIR)${bindir} || $(INSTALL_DIR) -m 755 $(DESTDIR)${bindir}
 	$(INSTALL) -m $(CLIENTMODE) ${make_bindir}/NessusClient $(DESTDIR)${bindir}
 
-client : 
-	cd nessus && $(MAKE)
-
-libnessus-client:
-	cd libnessus && $(MAKE)
-
-
 doc : $(MAN_NESSUS_1)
 
 $(MAN_NESSUS_1) : $(MAN_NESSUS_1).in
 	@sed -e 's?@NESSUSD_CONFDIR@?${NESSUSD_CONFDIR}?g;s?@NESSUSD_DATADIR@?${NESSUSD_DATADIR}?g;s?@NESSUSD_PLUGINS@?${NESSUSD_PLUGINS}?g;' $(MAN_NESSUS_1).in  >$(MAN_NESSUS_1)
 
-
 clean:
 	cd nessus && $(MAKE) clean
 	cd libnessus && $(MAKE) clean
--- a/ssl/Makefile	2006-09-12 23:41:31.000000000 +0200
+++ b/ssl/Makefile	2010-08-23 01:16:51.000000000 +0200
@@ -6,7 +6,7 @@
 all : nessusclient-mkrand
 
 nessusclient-mkrand: $(OBJS)
-	$(CC) $(OBJS) -o nessusclient-mkrand -lm
+	$(CC) $(LDFLAGS) $(OBJS) -o nessusclient-mkrand -lm
 
 nessusclient-mkrand.o: nessusclient-mkrand.c
 	$(CC) $(CFLAGS) -c nessusclient-mkrand.c