#
# Makefile for GNU Shogi
#
-# Copyright (c) 2012 Free Software Foundation
+# Copyright (c) 1993, 1994 Matthias Mutz
+# Copyright (c) 1998, 1999 Michael Vanier and the Free Software Foundation
#
# GNU Shogi is based on GNU Chess
+# Copyright (c) 1992 Free Software Foundation
#
# This file is part of GNU Shogi.
#
CWARNINGS = @WARNINGS@
CEXTRAFLAGS = @CEXTRAFLAGS@
CFLAGS = @CFLAGS@ $(CEXTRAFLAGS) $(CWARNINGS) -I$(ROOT) -I@top_builddir@
-
+LDFLAGS = @LDFLAGS@
# The hashfile is a record of positions seen. It is used by
# GNU Shogi to avoid making the same mistakes, a form of learning.
#
gnushogi:
- $(CC) $(CFLAGS) -o gnushogi $(GNUSHOGI_FILES) $(LCURSES) $(LIBS)
+ $(CC) $(CFLAGS) -o gnushogi $(GNUSHOGI_FILES) $(LDFLAGS) $(LCURSES) $(LIBS)
pat2inc:
- $(CC) $(CFLAGS) -o pat2inc $(PAT2INCFILES) $(LCURSES) $(LIBS)
+ $(CC) $(CFLAGS) -o pat2inc $(PAT2INCFILES) $(LDFLAGS) $(LCURSES) $(LIBS)
sizetest:
- $(CC) $(CFLAGS) -o sizetest sizetest.o $(LIBS)
+ $(CC) $(CFLAGS) -o sizetest sizetest.o $(LDFLAGS) $(LIBS)
profile:
$(MAKE) -f Makefile.profile gnushogi