summaryrefslogtreecommitdiff
path: root/emulators/hercules/patches/patch-aa
blob: 2157bba3a4cd811452a95a981d2730fb86e721ff (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
$NetBSD: patch-aa,v 1.5 2001/05/08 23:23:49 dmcmahill Exp $

Set up compilation flags for NetBSD

--- makefile.orig	Sat Feb 10 22:21:58 2001
+++ makefile	Tue May  8 18:57:45 2001
@@ -9,5 +9,5 @@
 #   overridden in the make command line, as in "PREFIX=/foo make install"
 #   (the directory is only used when installing).
-DESTDIR  = $(PREFIX)/usr/bin
+DESTDIR  = $(PREFIX)/bin
 
 # Standard flags for all architectures
@@ -22,24 +22,26 @@
 # Handle host architecture if specified
 ifeq ($(HOST_ARCH),i386)
-CFLAGS	 += -O3 -malign-double -DNO_ASM_BYTESWAP
-endif
+CFLAGS	 += -O3 -DNO_ASM_BYTESWAP
+else
 ifeq ($(HOST_ARCH),i586)
-CFLAGS	 += -O3 -malign-double -march=pentium
-endif
+CFLAGS	 += -O3
+else
 ifeq ($(HOST_ARCH),i686)
-CFLAGS	 += -O3 -malign-double -march=pentiumpro
-endif
+CFLAGS	 += -O3
+else
 ifeq ($(HOST_ARCH),alpha)
 CFLAGS	 += -O2 -DNO_ASM_BYTESWAP
-endif
-ifeq ($(HOST_ARCH),other)
+else
 CFLAGS	 += -O3 -DNO_ASM_BYTESWAP
-endif
+endif  # alpha
+endif  # i686
+endif  # i586
+endif  # i386
 
 # Uncomment these lines for NetBSD, with either the unproven-pthreads
 #   or pth packages
-#CFLAGS  += -I/usr/pkg/pthreads/include -I/usr/pkg/include
-#LFLAGS	 += -L/usr/pkg/pthreads/lib -R/usr/pkg/pthreads
-#LFLAGS	 += -L/usr/pkg/lib -R/usr/pkg/pthreads/lib
+CFLAGS  += -I${PREFIX}/pthreads/include -I${PREFIX}/include
+LFLAGS	 += -L${PREFIX}/pthreads/lib -R${PREFIX}/pthreads
+LFLAGS	 += -L${PREFIX}/lib -R${PREFIX}/pthreads/lib
 
 # Reverse the comments below to disable Compressed CKD Dasd support