mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
d7b1c93c53
PR: 12297 Submitted by: Michael V. Harding <mvh@ix.netcom.com>
70 lines
2.1 KiB
Plaintext
70 lines
2.1 KiB
Plaintext
--- Makefile.orig Tue May 18 07:23:36 1999
|
|
+++ Makefile Sat Jun 19 10:54:51 1999
|
|
@@ -69,13 +69,13 @@
|
|
# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B
|
|
# asm = X86.o
|
|
|
|
-# FreeBSD (gcc 2.6.3)
|
|
-#target = FreeBSD
|
|
+# FreeBSD (gcc 2.7.2.1)
|
|
+target = FreeBSD
|
|
#CC = gcc
|
|
-#CFLAGS = -fomit-frame-pointer -m486 -O3 -Wall
|
|
-#LDFLAGS =
|
|
-#opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
|
|
-# -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
|
|
+#CFLAGS = -pipe -O -Wall
|
|
+LDFLAGS =
|
|
+opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -DUSE_ATTACK_FUNCTIONS \
|
|
+ -DUSE_ASSEMBLY_A -DUSE_ASSEMBLY_B -DFAST
|
|
|
|
# FreeBSD (pgcc)
|
|
#target = FreeBSD
|
|
@@ -95,18 +95,21 @@
|
|
|
|
# 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
|
|
-LDFLAGS = -lpthread
|
|
-opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -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
|
|
+#LDFLAGS = -lpthread
|
|
+#opt = -DCOMPACT_ATTACKS -DUSE_SPLIT_SHIFTS -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
|
|
+.if ${PORTOBJFORMAT} == "aout"
|
|
+asm = X86-aout.o
|
|
+.else
|
|
asm = X86-elf.o
|
|
+.endif
|
|
|
|
# LINUX (gcc)
|
|
# Note: You have to uncomment exactly ONE of the `asm' lines below.
|
|
@@ -162,7 +165,7 @@
|
|
|
|
# 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 \
|
|
@@ -189,7 +192,7 @@
|
|
|
|
egtb.o: egtb.cpp
|
|
@echo $(CC) -c $(CFLAGS) egtb.cpp
|
|
- @$(CC) -c -pipe -D_REENTRANT -mpentium -O $(opts) egtb.cpp
|
|
+ @$(CC) -c -pipe -D_REENTRANT -O $(opts) egtb.cpp
|
|
clean:
|
|
-rm -f *.o crafty X86-elf.X X86-aout.S
|
|
|