| 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 |
|
| 9 |
CXXFLAGS = -DOSL_HOME=\"`pwd`/..\" $(CXXOPTFLAGS) $(OTHERFLAGS) $(PROF) $(INCLUDES) |
| 10 |
all : phony-mkdir libgpsshogi.a |
| 11 |
|
| 12 |
PPAIR_OBJS = |
| 13 |
PROGRESS_OBJS = |
| 14 |
STAT_OBJS = |
| 15 |
EXPERIMENTAL_OBJS = |
| 16 |
|
| 17 |
OBJS = $(patsubst %.o,stat/%.o,$(STAT_OBJS)) \ |
| 18 |
$(patsubst %.o,ppair/%.o,$(PPAIR_OBJS)) \ |
| 19 |
$(patsubst %.o,progress/%.o,$(PROGRESS_OBJS)) |
| 20 |
SRCS = $(OBJS:.o=.cc) |
| 21 |
|
| 22 |
-include $(patsubst %.cc,.deps/%.cc.d,$(SRCS)) |
| 23 |
|
| 24 |
phony-mkdir: |
| 25 |
-mkdir stat ppair > /dev/null 2>&1 |
| 26 |
libgpsshogi.a : $(OBJS) |
| 27 |
$(ARC) $@ $(OBJS) |
| 28 |
-$(RANLIB) $@ |
| 29 |
|
| 30 |
clean: |
| 31 |
-rm -f core *.o $(OBJS) $(PROGNAME) nohup.out |
| 32 |
-rm -rf .deps |
| 33 |
distclean: clean |
| 34 |
rm -f *~ |