changeset 66:6ee701e2d8d9

Update compilation instructions and add new targets to build.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 21 Aug 2017 15:15:23 +0300
parents 4aec80a03cb0
children e2415dd9b6b1
files COMPILE.txt Makefile
diffstat 2 files changed, 22 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/COMPILE.txt	Sat Aug 19 19:53:29 2017 +0300
+++ b/COMPILE.txt	Mon Aug 21 15:15:23 2017 +0300
@@ -2,14 +2,25 @@
 
   $ hg clone https://tnsp.org/hg/dmlib
 
-2) To build the demo and the datafile:
+2) To build the demo datafile:
+
+  $ make data
 
-  $ cd dmlib && cp config.mak.in config.mak && make
+  Above attempts to build the necessary tools for datafile
+  building, and if successful, builds the datafile.
+  NOTICE! You may need to edit dmlib/config.mak to disable
+  potentially unnecessary depencies .. YMMV.
 
-  Above builds the necessary tools for datafile building,
-  then you can build the demo and make a zip package:
+3) Then you can build the demo:
+
+  $ make
 
-  $ cd ..
+  Optionally you can try 'make mingw-win32' etc. refer
+  to Makefile for more options.
+
+  The demo files will be under bin/
+
+4) To build a zip package
+
   $ make package
 
-3) The demo files will be under bin/
--- a/Makefile	Sat Aug 19 19:53:29 2017 +0300
+++ b/Makefile	Mon Aug 21 15:15:23 2017 +0300
@@ -24,6 +24,11 @@
 $(DATA):
 	cd $(BPATH)/data && $(DMLIB)/tools/packed -p $@ -c -x \*~ -v *
 
+tools:
+	cd $(DMLIB) && cp config.mak.in config.mak && make -j4
+
+data: tools $(DATA)
+
 package: linux-bin mingw-win32 $(DATA)
 	strip $(BINPATH)/*.bin $(BINPATH)/*.exe
 	$(RM) $(PACKAGE)