Makefile

changeset 71
0bdb910478cc
parent 58
7ba8a97a8b6e
--- a/Makefile	Tue Aug 13 00:33:59 2019 +0200
+++ b/Makefile	Sun Oct 01 12:53:35 2023 +0200
@@ -26,21 +26,14 @@
 # POSSIBILITY OF SUCH DAMAGE.
 #
 
-include conf.mk
+include config.mk
 
-ROOTDIR=$(shell pwd)
-
-all: chess
-	cd src; $(MAKE) BUILDDIR=$(ROOTDIR)/build/release
+all: $(BUILDDIR)
+	cd src; $(MAKE)
 
-debug: chess-debug
-	cd src; $(MAKE) BUILDDIR=$(ROOTDIR)/build/debug CFLAGS="${CFLAGS_D}"
-
-chess:
-	cd src/chess; $(MAKE) BUILDDIR=$(ROOTDIR)/build/release
+$(BUILDDIR):
+	$(MKDIR) $(MKDIRFLAGS) $(BUILDDIR)
 
-chess-debug:
-	cd src/chess; $(MAKE) BUILDDIR=$(ROOTDIR)/build/debug CFLAGS="${CFLAGS_D}"
-	
 clean:
-	$(RM) $(RMFLAGS) build
+	$(RM) $(RMFLAGS) $(BUILDDIR)
+

mercurial