1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/games/crafty/files/patch-aa

78 lines
2.4 KiB
Plaintext
Raw Normal View History

1999-08-06 18:21:44 +00:00
--- Makefile.orig Wed Jul 28 16:54:47 1999
+++ Makefile Fri Aug 6 10:52:33 1999
@@ -23,7 +23,7 @@
# SGI {SGI Workstation running Irix (SYSV/R4) Unix}
# SUN {Sun SparcStation running Solaris (SYSV/R4) Unix}
# SUN_BSD {Sun SparcStation running SunOS (BSD) Unix}
-# FreeBSD {80X86 architecture running FreeBSD (unix)}
+# FreeBSD {80X86/Alpha architecture running FreeBSD (unix)}
#
# The next options are optimizations inside Crafty that you will have
# test to see if they help. on some machines, these will slow things
1999-08-06 18:21:44 +00:00
@@ -75,14 +75,16 @@
# asm = X86.o
1999-08-06 18:21:44 +00:00
# FreeBSD (gcc 2.6.3)
-#target = FreeBSD
1999-01-03 00:04:23 +00:00
+target = FreeBSD
#CC = gcc
1999-08-06 18:21:44 +00:00
#CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall
#CXX = $(CC)
#CXXFLAGS= $(CFLAGS)
-#LDFLAGS =
1999-08-06 18:21:44 +00:00
-#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
-# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
+LDFLAGS =
+opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS
+.if ${MACHINE_ARCH} == "i386"
+opt += -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
+.endif
# FreeBSD (pgcc)
#target = FreeBSD
1999-08-06 18:21:44 +00:00
@@ -106,20 +108,25 @@
# LINUX (pgcc)
# Note: You have to uncomment exactly ONE of the `asm' lines below.
-target = LINUX
-CC = gcc
-CFLAGS = -Wall -pipe -D_REENTRANT -mpentium -O
1999-08-06 18:21:44 +00:00
-CXX = $(CC)
-CXXFLAGS= -pipe -D_REENTRANT -mpentium -O
-LDFLAGS = -lpthread
1999-08-06 18:21:44 +00:00
-opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
- -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 -DDGT
+#target = LINUX
+#CC = gcc
+#CFLAGS = -Wall -pipe -D_REENTRANT -mpentium -O
1999-08-06 18:21:44 +00:00
+#CXX = $(CC)
+#CXXFLAGS= -pipe -D_REENTRANT -mpentium -O
+#LDFLAGS = -lpthread
1999-08-06 18:21:44 +00:00
+#opt = -DCOMPACT_ATTACKS -DUSE_ATTACK_FUNCTIONS \
+# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST -DSMP -DCPUS=4 -DDGT
# Uncomment the FIRST `asm' line for a.out systems.
# Uncomment the SECOND `asm' line for ELF systems.
#
-#asm = X86-aout.o
1999-08-06 18:21:44 +00:00
-asm = X86-elf.o
+.if ${MACHINE_ARCH} == "i386"
+.if ${PORTOBJFORMAT} == "aout"
1999-08-06 18:21:44 +00:00
+asm = X86-aout.o
+.else
1999-08-06 18:21:44 +00:00
+asm = X86-elf.o
+.endif
+.endif
# LINUX (gcc)
# Note: You have to uncomment exactly ONE of the `asm' lines below.
1999-08-06 18:21:44 +00:00
@@ -185,7 +192,7 @@
1999-01-03 00:04:23 +00:00
# Do not change anything below this line!
-opts = $(opt) -D$(target)
+CFLAGS += $(opt) -D$(target)
objects = searchr.o search.o thread.o searchmp.o repeat.o next.o nexte.o \
nextr.o history.o quiesce.o evaluate.o movgen.o make.o unmake.o \