summaryrefslogtreecommitdiff
path: root/net/ettercap/patches/patch-aa
blob: 63c28bbfbda005eb0d4195a4ad4b8aac58ab26b5 (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
$NetBSD: patch-aa,v 1.4 2003/02/09 23:15:55 dmcmahill Exp $

--- Makefile.in.orig	Wed Jan 22 10:00:38 2003
+++ Makefile.in	Sun Feb  9 18:09:08 2003
@@ -30,5 +30,5 @@
 DEBUG    = @DEBUG@
 CFLAG    = @E_CFLAGS@
-COPTS    = -I. -Isrc/include @COPTS@ @GTK_CFLAGS@
+COPTS    = -I. -Isrc/include -I${prefix}/include @COPTS@ @GTK_CFLAGS@
 
 PROG     = @PROG@
@@ -262,2 +262,16 @@
 
 # vim:ts=4:noexpandtab
+
+COMPILE=$(CC) $(ALLOPT) $(DEFS) -c -o 
+COMPILE_NOOPT=${COMPILE:C/-O[0-9]*//g}
+
+.if (${MACHINE_ARCH} == "alpha")
+# problem files for compiling with optimization
+
+./src/ec_inet.o: ./src/ec_inet.c
+	${COMPILE_NOOPT} ./src/ec_inet.o ./src/ec_inet.c
+
+./src/ec_logtofile.o: ./src/ec_logtofile.c
+	${COMPILE_NOOPT} ./src/ec_logtofile.o ./src/ec_logtofile.c
+
+.endif