[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] experimental support for Hugh Sconyers' full15x15bearoff

From: Øystein Johansen
Subject: Re: [Bug-gnubg] experimental support for Hugh Sconyers' full15x15bearoff
Date: Fri, 11 Jul 2003 21:20:07 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.2.1) Gecko/20021130

Nardy Pillards wrote:

Also add -lglib-2.0.dll for makehyper

Hmmm.... I have my own config file for compiling the additional tools. In that way I make the additional tools independent of all unnecesarry dlls. I have attached the config file and the makefile for compiling these tools (makehyper.exe, makebearoff.exe and makeweights.exe)


X bitmap

CC      = gcc
CFLAGS  = -O3 -Wall $(DEFS) $(INCLUDE)
DEFS    = -DHAVE_CONFIG_H -DLOCALEDIR=\"/mingw/lib/locale\"
INCLUDE = -I. -I./lib 
CONFIG  = config.h

LIBPATH = -L./lib

# -mwindows : NOT for makebearoff / makebearoff1

LIBS     = $(LIBPATH) -levent -lm

TARGET = makehyper makebearoff makeweights

LIBEVENT = lib/libevent.a

makehyper_SOURCES = makehyper.c eval.h eval.c positionid.h positionid.c \
       pub_eval.c matchequity.c matchequity.h matchid.h matchid.c \
       i18n.c i18n.h getopt.c getopt.h getopt1.c osr.c osr.h \
       bearoffgammon.c bearoffgammon.h bearoff.c bearoff.h path.c path.h \
       drawboard.c drawboard.h erf.c
makehyper_OBJS = makehyper.o eval.o positionid.o \
       pub_eval.o matchequity.o matchid.o \
       i18n.o getopt.o getopt1.o osr.o \
       bearoffgammon.o bearoff.o path.o \
       drawboard.o erf.o
makehyper_LDADD = -Llib -levent $(COMMON_LIBS)
makehyper_DEPENDENCIES = lib/libevent.a

makehyper:      $(LIBEVENT) $(makehyper_OBJS) $(makehyper_DEPENDENCIES)
        $(CC) -o makehyper $(makehyper_OBJS) $(makehyper_LDADD)

MAKEBEAROFF1_OBJS = makebearoff1.o getopt.o getopt1.o 
MAKEBEAROFF1_SOURCE = makebearoff1.c getopt.c getopt1.c 


makebearoff1:   $(MAKEBEAROFF1_OBJS)
        $(CC) -o makebearoff1 $(MAKEBEAROFF1_OBJS) $(LIBSMB)

MAKEBEAROFF_OBJS = makebearoff.o eval.o positionid.o pub_eval.o \
        matchequity.o matchid.o i18n.o getopt.o getopt1.o erf.o \
        osr.o bearoffgammon.o bearoff.o path.o

MAKEBEAROFF_SOURCE = makebearoff.c eval.c positionid.c pub_eval.c \
        matchequity.c matchid.c i18n.c getopt.c getopt1.c erf.c \
        osr.c bearoffgammon.c bearoff.c path.c


makebearoff:    $(CONFIG) $(MAKEBEAROFF_OBJS) $(LIBEVENT) 
        $(CC) -o makebearoff $(MAKEBEAROFF_OBJS) $(LIBSMB)

br1.c: makebearoff makebearoff1
        if not exist br1.c makebearoff -o 6 -s 7999999 -f temp.bd
        if not exist br1.c makebearoff1 -o br1.c -i temp.bd
        if exist temp.bd del temp.bd
        if not exist gnubg_ts0.bd makebearoff -t 6x6 -f gnubg_ts0.bd

makeweights_SOURCES = makeweights.c i18n.c i18n.h
makeweights_OBJS = makeweights.o i18n.o
makeweights_LDADD = -Llib -levent $(COMMON_LIBS)
makeweights_DEPENDENCIES = lib/libevent.a

makeweights:  $(LIBEVENT) $(CONFIG) $(makeweights_OBJS)
        $(CC) -o makeweights $(makeweights_OBJS) $(LIBS)

        $(MAKE) -C lib

        cp config.tools $(CONFIG)
        del *.o $(CONFIG)
        $(MAKE) clean -C lib

reply via email to

[Prev in Thread] Current Thread [Next in Thread]