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
--- a/Makefile	Mon Mar 31 11:16:32 2014 +0200
+++ b/Makefile	Mon Mar 31 11:41:08 2014 +0200
@@ -35,7 +35,7 @@
 	$(MKDIR) build
 
 chess:
-	cd src/chess; $(MAKE) BUILDDIR=../../build
+	cd src/chess; $(MAKE) BUILDDIR=../../build CONFIG=../../conf.mk
 	
 clean:
 	$(RM) -f -R build
--- a/conf.mk	Mon Mar 31 11:16:32 2014 +0200
+++ b/conf.mk	Mon Mar 31 11:41:08 2014 +0200
@@ -28,12 +28,16 @@
 
 MKDIR   = mkdir
 RM      = rm
+AR      = ar
 
-BIN     = terminal-chess
-CC      = gcc
-CFLAGS  = -g -O2 -std=gnu99 -Wall -Werror -pedantic
-LD      = gcc
-LDFLAGS = -lncurses
+BIN        = terminal-chess
+CC         = gcc
+CFLAGS     = -g -O2 -std=gnu99 -Wall -Werror -pedantic
+LD         = gcc
+LDFLAGS    = -lncurses
+ARFLAGS    = -r
+MKDIRFLAGS = -p
+RMFLAGS    = -f -R
 
 LIB_EXT = .a
 OBJ_EXT = .o
--- a/src/chess/Makefile	Mon Mar 31 11:16:32 2014 +0200
+++ b/src/chess/Makefile	Mon Mar 31 11:41:08 2014 +0200
@@ -27,8 +27,9 @@
 #
 
 BUILDDIR = ../build
+CONFIG = conf.mk
 
-include conf.mk
+include $(CONFIG)
 
 SRC += pawn.c
 SRC += rook.c

mercurial