summaryrefslogtreecommitdiff
path: root/security/skipfish/files/patch-Makefile
blob: 27b31ffe50338b82f8235eb614df28b1f6411efc (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
--- ./Makefile.orig	2012-12-07 10:14:00.000000000 -0500
+++ ./Makefile	2012-12-07 10:15:06.000000000 -0500
@@ -33,13 +33,14 @@
 OBJFILES   = $(patsubst %,$(SRCDIR)/%,$(SFILES))
 INCFILES   = $(patsubst %,$(SRCDIR)/%,$(IFILES))
 
-CFLAGS_GEN = -Wall -funsigned-char -g -ggdb -I/usr/local/include/ \
-             -I/opt/local/include/ $(CFLAGS) -DVERSION=\"$(VERSION)\"
+_LOCALBASE ?= ${LOCALBASE}
+CFLAGS_GEN = -Wall -funsigned-char -g -ggdb -I$(LOCALBASE)/include/ \
+             $(CFLAGS) -DVERSION=\"$(VERSION)\"
 CFLAGS_DBG = -DLOG_STDERR=1 -DDEBUG_ALLOCATOR=1 \
              $(CFLAGS_GEN)
 CFLAGS_OPT =  -O3 -Wno-format $(CFLAGS_GEN)
 
-LDFLAGS   += -L/usr/local/lib/ -L/opt/local/lib
+LDFLAGS   += -L$(LOCALBASE)/lib
 LIBS      += -lcrypto -lssl -lidn -lz -lpcre
 
 all: $(PROGNAME)
@@ -47,12 +48,6 @@
 $(PROGNAME): $(SRCDIR)/$(PROGNAME).c $(OBJFILES) $(INCFILES)
 	$(CC) $(LDFLAGS) $(SRCDIR)/$(PROGNAME).c -o $(PROGNAME) \
         $(CFLAGS_OPT) $(OBJFILES) $(LIBS)
-	@echo
-	@echo "See doc/dictionaries.txt to pick a dictionary for the tool."
-	@echo
-	@echo "Having problems with your scans? Be sure to visit:"
-	@echo "http://code.google.com/p/skipfish/wiki/KnownIssues"
-	@echo
 
 debug: $(SRCDIR)/$(PROGNAME).c $(OBJFILES) $(INCFILES)
 	$(CC) $(LDFLAGS) $(SRCDIR)/$(PROGNAME).c -o $(PROGNAME) \