Makefile

changeset 58
7ba8a97a8b6e
parent 55
54ea19938d57
child 71
0bdb910478cc
equal deleted inserted replaced
57:498d92449d6d 58:7ba8a97a8b6e
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 include conf.mk 29 include conf.mk
30 30
31 ROOTDIR=$(shell pwd)
32
31 all: chess 33 all: chess
32 cd src; $(MAKE) 34 cd src; $(MAKE) BUILDDIR=$(ROOTDIR)/build/release
33 35
34 debug: chess-debug 36 debug: chess-debug
35 cd src; $(MAKE) debug 37 cd src; $(MAKE) BUILDDIR=$(ROOTDIR)/build/debug CFLAGS="${CFLAGS_D}"
36 38
37 chess: 39 chess:
38 cd src/chess; $(MAKE) BUILDDIR=../../build CONFIG=../../conf.mk 40 cd src/chess; $(MAKE) BUILDDIR=$(ROOTDIR)/build/release
39 41
40 chess-debug: 42 chess-debug:
41 cd src/chess; $(MAKE) debug BUILDDIR=../../build CONFIG=../../conf.mk 43 cd src/chess; $(MAKE) BUILDDIR=$(ROOTDIR)/build/debug CFLAGS="${CFLAGS_D}"
42 44
43 clean: 45 clean:
44 $(RM) $(RMFLAGS) build 46 $(RM) $(RMFLAGS) build

mercurial