| 1 |
GPSSHOGI_HOME = ../.. |
| 2 |
include $(GPSSHOGI_HOME)/makefile.conf |
| 3 |
-include $(GPSSHOGI_HOME)/makefile.local |
| 4 |
-include makefile.local |
| 5 |
|
| 6 |
CXXOPTFLAGS ?= -O |
| 7 |
OTHERFLAGS = -pipe -Wall -g $(CPUOPTION) |
| 8 |
INCLUDES += -I$(OSL_HOME)/lib/third_party/$(PROTOBUF)/src |
| 9 |
|
| 10 |
CXXFLAGS = -DOSL_HOME=\"`pwd`/../..\" $(CXXOPTFLAGS) $(OTHERFLAGS) $(PROF) $(INCLUDES) |
| 11 |
all: |
| 12 |
$(MAKE) -C$(GPSSHOGI_HOME)/lib/dbm |
| 13 |
$(MAKE) -C$(GPSSHOGI_HOME)/include/gpsshogi/recorddb |
| 14 |
$(MAKE) libgpsshogirecorddb.a |
| 15 |
|
| 16 |
OBJS = recordDb.o facade.o evalDb.o |
| 17 |
SRCS = $(OBJS:.o=.cc) |
| 18 |
|
| 19 |
-include $(patsubst %.cc,.deps/%.cc.d,$(SRCS)) |
| 20 |
|
| 21 |
libgpsshogirecorddb.a : $(OBJS) |
| 22 |
$(ARC) $@ $(OBJS) |
| 23 |
-$(RANLIB) $@ |
| 24 |
|
| 25 |
clean: |
| 26 |
$(MAKE) -C$(GPSSHOGI_HOME)/lib/dbm clean |
| 27 |
$(MAKE) -C$(GPSSHOGI_HOME)/include/gpsshogi/recorddb clean |
| 28 |
-rm -f core *.o $(OBJS) $(PROGNAME) nohup.out |
| 29 |
-rm -rf .deps |
| 30 |
distclean: clean |
| 31 |
rm -f *~ |