Makefile

changeset 71
0bdb910478cc
parent 58
7ba8a97a8b6e
equal deleted inserted replaced
70:5427beba96d1 71:0bdb910478cc
24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 24 # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26 # POSSIBILITY OF SUCH DAMAGE. 26 # POSSIBILITY OF SUCH DAMAGE.
27 # 27 #
28 28
29 include conf.mk 29 include config.mk
30 30
31 ROOTDIR=$(shell pwd) 31 all: $(BUILDDIR)
32 cd src; $(MAKE)
32 33
33 all: chess 34 $(BUILDDIR):
34 cd src; $(MAKE) BUILDDIR=$(ROOTDIR)/build/release 35 $(MKDIR) $(MKDIRFLAGS) $(BUILDDIR)
35 36
36 debug: chess-debug 37 clean:
37 cd src; $(MAKE) BUILDDIR=$(ROOTDIR)/build/debug CFLAGS="${CFLAGS_D}" 38 $(RM) $(RMFLAGS) $(BUILDDIR)
38 39
39 chess:
40 cd src/chess; $(MAKE) BUILDDIR=$(ROOTDIR)/build/release
41
42 chess-debug:
43 cd src/chess; $(MAKE) BUILDDIR=$(ROOTDIR)/build/debug CFLAGS="${CFLAGS_D}"
44
45 clean:
46 $(RM) $(RMFLAGS) build

mercurial