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
|
From: Florian Ernst <florian@debian.org>
Subject: Use correct set of DEFINES
--- a/makefile
+++ b/makefile
@@ -2,7 +2,7 @@
####### choose the line that makes the binary faster on your machine
# CFLAGS = -O3 -Wall -fomit-frame-pointer -funroll-loops
-CFLAGS = -O0 -Wall -Werror -fomit-frame-pointer -march=k8 -std=c99 -D_GNU_SOURCE
+CFLAGS += -std=c99 -D_GNU_SOURCE
####### debug/tuning options for developers
# CFLAGS = -O -Wall -g3 -static
@@ -19,8 +19,9 @@
### -DLEARN_DIR=\"/var/local/lib\"
### -DQCAPSONLY
-DEFINES = -DGNUFUN
-LDFLAGS =
+DEFINES = -DGNUFUN -DPBOOK_DIR=\"/usr/share/phalanx\" -DSBOOK_DIR=\"/usr/share/phalanx\" \
+-DLEARN_DIR=\"/var/games\" -DLEARN_FILE=\"phalanx.learn\" -DDEBIAN
+#LDFLAGS =
OBJ = .o/phalanx.o .o/bcreate.o .o/search.o .o/io.o .o/data.o \
.o/evaluate.o .o/genmoves.o .o/moving.o .o/hash.o .o/static.o \
@@ -30,7 +31,7 @@
$(CC) $(CFLAGS) $(DEFINES) $(LDFLAGS) $(OBJ) -o phalanx
.o/%.o: makefile %.c
- $(CC) $(CFLAGS) $(DEFINES) -c $*.c -o .o/$*.o
+ $(CC) $(CPPFLAGS) $(CFLAGS) $(DEFINES) -c $*.c -o .o/$*.o
.o:
mkdir .o
|