From 30865cf1a75a144629c6029ac55fbc744e330adf Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Tue, 8 Aug 2017 12:10:22 -0400 Subject: maker.org makefile supported compilers, make all_builds_debug - dmd ldc2 gdc --- maker.org | 193 +++++++++++++++++++++++++++++++++++++++++++++++++------------- 1 file changed, 155 insertions(+), 38 deletions(-) (limited to 'maker.org') diff --git a/maker.org b/maker.org index 75b513f..38f738a 100644 --- a/maker.org +++ b/maker.org @@ -240,7 +240,7 @@ makefile_new: make -k tangle_maker #+END_SRC -**** _dub_ build rebuild [#A] :dub: +**** _dub_ build rebuild [#A] :dub: ***** generic #+BEGIN_SRC makefile :tangle makefile @@ -250,6 +250,51 @@ debug_dub: $(PRG_SRCDIR)/$(PRG_SRC) $(DUB) $(DUB_FLAGS)$(DC) $(DUB_FLAGS_DEBUG) #+END_SRC +#+BEGIN_SRC makefile :tangle makefile +all_builds_quick: + $(DUB) --compiler=dmd --config=sdp-dmd-version + mv bin/sdp-dmd-ver bin/sdp-$(PROJECT_VERSION)-dmd + $(DUB) --compiler=ldc2 --config=sdp-ldc-version + mv bin/sdp-ldc-ver bin/sdp-$(PROJECT_VERSION)-ldc + $(DUB) --compiler=gdc --config=sdp-gdc-version + mv bin/sdp-gdc-ver bin/sdp-$(PROJECT_VERSION)-gdc +#+END_SRC + +#+BEGIN_SRC makefile :tangle makefile +all_builds_quick_release: + $(DUB) --compiler=dmd --config=sdp-dmd-version + mv bin/sdp-dmd-ver bin/sdp-$(PROJECT_VERSION)-dmd + $(DUB) --compiler=ldc2 --config=sdp-ldc-version + mv bin/sdp-ldc-ver bin/sdp-$(PROJECT_VERSION)-ldc + $(DUB) --compiler=gdc --config=sdp-gdc-version + mv bin/sdp-gdc-ver bin/sdp-$(PROJECT_VERSION)-gdc +#+END_SRC + +#+BEGIN_SRC makefile :tangle makefile +all_builds: clean skel tangle + $(DUB) --compiler=dmd --config=sdp-dmd-version + mv bin/sdp-dmd-ver bin/sdp-$(PROJECT_VERSION)-dmd + $(DUB) --compiler=ldc2 --config=sdp-ldc-version + mv bin/sdp-ldc-ver bin/sdp-$(PROJECT_VERSION)-ldc + $(DUB) --compiler=gdc --config=sdp-gdc-version + mv bin/sdp-gdc-ver bin/sdp-$(PROJECT_VERSION)-gdc +#+END_SRC + +#+BEGIN_SRC makefile :tangle makefile +all_builds_debug: clean skel tangle + $(DUB) --compiler=dmd --config=sdp-dmd-debug-version + mv bin/sdp-dmd-debug-ver bin/sdp-$(PROJECT_VERSION)-dmd-debug + $(DUB) --compiler=ldc2 --config=sdp-ldc-debug-version + mv bin/sdp-ldc-debug-ver bin/sdp-$(PROJECT_VERSION)-ldc-debug + $(DUB) --compiler=gdc --config=sdp-gdc-debug-version + mv bin/sdp-gdc-debug-ver bin/sdp-$(PROJECT_VERSION)-gdc-debug +#+END_SRC + +#+BEGIN_SRC makefile :tangle makefile +ver: + echo sdp-$(PROJECT_VERSION) +#+END_SRC + ***** dmd #+BEGIN_SRC makefile :tangle makefile @@ -275,8 +320,6 @@ dmd_debug_unittest: tangle $(DUB) --compiler=dmd --config=sdp-dmd-debug-unittest dmd_debug_clean: tangle $(DUB) --compiler=dmd --config=sdp-debug-clean -dmd_tmp: tangle - $(DUB) --compiler=dmd --config=sdp-tmp dmd_debug_src: $(DUB) --compiler=dmd --config=sdp-debug #+END_SRC @@ -306,8 +349,6 @@ gdc_debug_unittest: tangle $(DUB) --compiler=gdc --config=sdp-gdc-debug-unittest gdc_debug_clean: tangle $(DUB) --compiler=gdc --config=sdp-debug-clean -gdc_tmp: tangle - $(DUB) --compiler=gdc --config=sdp-tmp gdc_debug_src: $(DUB) --compiler=gdc --config=sdp-debug #+END_SRC @@ -337,8 +378,6 @@ ldc_debug_unittest: tangle $(DUB) --compiler=ldc2 --config=sdp-ldc-debug-unittest ldc_debug_clean: tangle $(DUB) --compiler=ldc2 --config=sdp-debug-clean -ldc_tmp: tangle - $(DUB) --compiler=ldc2 --config=sdp-tmp ldc_debug_src: $(DUB) --compiler=ldc2 --config=sdp-debug #+END_SRC @@ -580,27 +619,6 @@ configuration "sdp-debug" { } #+END_SRC -**** sdp-tmp - -#+BEGIN_SRC sh :tangle dub.sdl -configuration "sdp-tmp" { - name "tmp" - targetType "executable" - platforms "posix" - targetName "sdp-tmp" - dflags "-J=views" "-I=src/sdp" - #lflags "ld.gold" - buildRequirements "allowWarnings" - buildOptions "verbose" "debugMode" "debugInfo" "optimize" - debugVersions "checkdoc" "summary" - debugVersions "tmp" - debugVersions "crap" - debugVersions "header" - debugVersions "header1" - postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-tmp'" -} -#+END_SRC - **** sdp-debug-clean #+BEGIN_SRC sh :tangle dub.sdl @@ -617,6 +635,7 @@ configuration "sdp-debug-clean" { *** dmd [#A] :dmd: **** sdp-dmd +***** sdp-dmd #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-dmd" { @@ -631,7 +650,23 @@ configuration "sdp-dmd" { } #+END_SRC +***** sdp-dmd-version + +#+BEGIN_SRC sh :tangle dub.sdl +configuration "sdp-dmd-version" { + name "dmd" + targetType "executable" + platforms "posix" + targetName "sdp-dmd-ver" + dflags "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "releaseMode" "optimize" "inline" + postGenerateCommands "/usr/bin/notify-send -t 0 'D dmd compiled test release executable ready' 'sdp-[version]-dmd'" +} +#+END_SRC + **** sdp-dmd-debug :debug: +***** sdp-dmd-debug :debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-dmd-debug" { @@ -648,7 +683,24 @@ configuration "sdp-dmd-debug" { } #+END_SRC -**** sdp-dmd-debug-unittest :unittest:debug: +***** sdp-dmd-debug-version :debug: + +#+BEGIN_SRC sh :tangle dub.sdl +configuration "sdp-dmd-debug-version" { + name "debuging" + targetType "executable" + platforms "posix" + targetName "sdp-dmd-debug-ver" + dflags "-g" "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + debugVersions "dumpdoc" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-[version]-dmd-debug'" +} +#+END_SRC + +***** sdp-dmd-debug-unittest :unittest:debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-dmd-debug-unittest" { @@ -665,7 +717,7 @@ configuration "sdp-dmd-debug-unittest" { } #+END_SRC -**** sdp-dmd-debug-docs :docs:debug: +***** sdp-dmd-debug-docs :docs:debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-dmd-debug-docs" { @@ -685,6 +737,7 @@ configuration "sdp-dmd-debug-docs" { *** ldc [#A] :ldc: **** sdp-ldc +***** sdp-ldc #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-ldc" { @@ -692,14 +745,30 @@ configuration "sdp-ldc" { targetType "executable" platforms "posix" targetName "sdp-ldc" - dflags "-J=views" "-I=src/sdp" + dflags "-O2" "-J=views" "-I=src/sdp" buildRequirements "allowWarnings" buildOptions "verbose" "releaseMode" "optimize" "inline" postGenerateCommands "/usr/bin/notify-send -t 0 'D ldc2 compiled test release executable ready' 'sdp-ldc'" } #+END_SRC +***** sdp-ldc-version + +#+BEGIN_SRC sh :tangle dub.sdl +configuration "sdp-ldc-version" { + name "ldc" + targetType "executable" + platforms "posix" + targetName "sdp-ldc-ver" + dflags "-O2" "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "releaseMode" "optimize" "inline" + postGenerateCommands "/usr/bin/notify-send -t 0 'D ldc2 compiled test release executable ready' 'sdp-[version]-ldc'" +} +#+END_SRC + **** sdp-ldc-debug :debug: +***** sdp-ldc-debug :debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-ldc-debug" { @@ -715,7 +784,23 @@ configuration "sdp-ldc-debug" { } #+END_SRC -**** sdp-ldc-debug-unittest :unittest:debug: +***** sdp-ldc-debug-version :debug: + +#+BEGIN_SRC sh :tangle dub.sdl +configuration "sdp-ldc-debug-version" { + name "debuging" + targetType "executable" + platforms "posix" + targetName "sdp-ldc-debug-ver" + dflags "-g" "-J=views" "-I=src/sdp" + buildRequirements "allowWarnings" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + postGenerateCommands "/usr/bin/notify-send -t 0 'D (debug) executable ready' 'sdp-[version]-ldc-debug'" +} +#+END_SRC + +***** sdp-ldc-debug-unittest :unittest:debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-ldc-debug-unittest" { @@ -731,7 +816,7 @@ configuration "sdp-ldc-debug-unittest" { } #+END_SRC -**** sdp-ldc-debug-docs :docs:debug: +***** sdp-ldc-debug-docs :docs:debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-ldc-debug-docs" { @@ -749,6 +834,7 @@ configuration "sdp-ldc-debug-docs" { *** gdc :gdc: **** sdp-gdc +***** sdp-gdc #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-gdc" { @@ -764,7 +850,24 @@ configuration "sdp-gdc" { } #+END_SRC -**** sdp-gdc-debug :debug: +***** sdp-gdc-version + +#+BEGIN_SRC sh :tangle dub.sdl +configuration "sdp-gdc-version" { + name "gdc" + targetType "executable" + platforms "posix" + targetName "sdp-gdc-ver" + dflags "-O2" "-J=views" "-I=src/sdp" + lflags "-lz" + buildRequirements "allowWarnings" + buildOptions "verbose" "releaseMode" "optimize" "inline" + postGenerateCommands "/usr/bin/notify-send -t 0 'D gdc compiled test release executable ready' 'sdp-[version]-gdc'" +} +#+END_SRC + +**** sdp-gdc-debug :debug: +***** sdp-gdc-debug :debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-gdc-debug" { @@ -780,7 +883,23 @@ configuration "sdp-gdc-debug" { } #+END_SRC -**** sdp-gdc-debug-unittest :unittest:debug: +***** sdp-gdc-debug-version :debug: + +#+BEGIN_SRC sh :tangle dub.sdl +configuration "sdp-gdc-debug-version" { + name "debuging" + targetType "executable" + platforms "posix" + targetName "sdp-gdc-debug-ver" + dflags "-O2" "-fbuiltin" "-Wall" "-Werror" "-Wformat=2" "-g" "-J=views" "-I=src/sdp" + lflags "-lz" + buildOptions "verbose" "debugMode" "debugInfo" "optimize" + debugVersions "checkdoc" "summary" + postGenerateCommands "/usr/bin/notify-send -t 0 'D gdc compiled (debug with -g) executable ready' 'sdp-gdc-debug'" +} +#+END_SRC + +***** sdp-gdc-debug-unittest :unittest:debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-gdc-debug-unittest" { @@ -797,7 +916,7 @@ configuration "sdp-gdc-debug-unittest" { } #+END_SRC -**** sdp-gdc-debug-docs :docs:debug: +***** sdp-gdc-debug-docs :docs:debug: #+BEGIN_SRC sh :tangle dub.sdl configuration "sdp-gdc-debug-docs" { @@ -976,8 +1095,6 @@ dub --compiler=ldc2 -v --force --config=sdp-release # sdp # time ~sdp3/bin/sdp -v --html --no-assert en/autonomy_markup0.sst dub --compiler=ldc2 -v --force --config=sdp-debug # sdp-debug # time ~sdp3/bin/sdp-debug -v --html --no-assert en/autonomy_markup0.sst -dub --compiler=ldc2 -v --force --config=sdp-tmp # sdp-tmp -# time ~sdp3/bin/sdp-tmp -v --html --no-assert en/autonomy_markup0.sst dub --compiler=ldc2 -v --force --config=sdp-debug-clean # sdp-debug-clean # time ~sdp3/bin/sdp-debug-clean -v --html --no-assert en/autonomy_markup0.sst #+END_SRC -- cgit v1.2.3