# HG changeset patch # User Matti Hamalainen # Date 1503317723 -10800 # Node ID 6ee701e2d8d98065a329f74898f54c0c62abf9f0 # Parent 4aec80a03cb04bbcfce2735ac8882f4c1f7d3b69 Update compilation instructions and add new targets to build. diff -r 4aec80a03cb0 -r 6ee701e2d8d9 COMPILE.txt --- 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/ diff -r 4aec80a03cb0 -r 6ee701e2d8d9 Makefile --- 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)