added optional alternate config for chess lib

Mon, 31 Mar 2014 11:41:08 +0200

author
Mike Becker <universe@uap-core.de>
date
Mon, 31 Mar 2014 11:41:08 +0200
changeset 20
fd1eb081de40
parent 19
6a26114297a1
child 21
2e5846019b4f

added optional alternate config for chess lib

Makefile file | annotate | diff | comparison | revisions
conf.mk file | annotate | diff | comparison | revisions
src/chess/Makefile file | annotate | diff | comparison | revisions
     1.1 --- a/Makefile	Mon Mar 31 11:16:32 2014 +0200
     1.2 +++ b/Makefile	Mon Mar 31 11:41:08 2014 +0200
     1.3 @@ -35,7 +35,7 @@
     1.4  	$(MKDIR) build
     1.5  
     1.6  chess:
     1.7 -	cd src/chess; $(MAKE) BUILDDIR=../../build
     1.8 +	cd src/chess; $(MAKE) BUILDDIR=../../build CONFIG=../../conf.mk
     1.9  	
    1.10  clean:
    1.11  	$(RM) -f -R build
     2.1 --- a/conf.mk	Mon Mar 31 11:16:32 2014 +0200
     2.2 +++ b/conf.mk	Mon Mar 31 11:41:08 2014 +0200
     2.3 @@ -28,12 +28,16 @@
     2.4  
     2.5  MKDIR   = mkdir
     2.6  RM      = rm
     2.7 +AR      = ar
     2.8  
     2.9 -BIN     = terminal-chess
    2.10 -CC      = gcc
    2.11 -CFLAGS  = -g -O2 -std=gnu99 -Wall -Werror -pedantic
    2.12 -LD      = gcc
    2.13 -LDFLAGS = -lncurses
    2.14 +BIN        = terminal-chess
    2.15 +CC         = gcc
    2.16 +CFLAGS     = -g -O2 -std=gnu99 -Wall -Werror -pedantic
    2.17 +LD         = gcc
    2.18 +LDFLAGS    = -lncurses
    2.19 +ARFLAGS    = -r
    2.20 +MKDIRFLAGS = -p
    2.21 +RMFLAGS    = -f -R
    2.22  
    2.23  LIB_EXT = .a
    2.24  OBJ_EXT = .o
     3.1 --- a/src/chess/Makefile	Mon Mar 31 11:16:32 2014 +0200
     3.2 +++ b/src/chess/Makefile	Mon Mar 31 11:41:08 2014 +0200
     3.3 @@ -27,8 +27,9 @@
     3.4  #
     3.5  
     3.6  BUILDDIR = ../build
     3.7 +CONFIG = conf.mk
     3.8  
     3.9 -include conf.mk
    3.10 +include $(CONFIG)
    3.11  
    3.12  SRC += pawn.c
    3.13  SRC += rook.c

mercurial