aboutsummaryrefslogtreecommitdiffhomepage
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile20
1 files changed, 12 insertions, 8 deletions
diff --git a/makefile b/makefile
index 1316889..f34bb0b 100644
--- a/makefile
+++ b/makefile
@@ -1,10 +1,10 @@
DMD=dmd
DMD_FLAGS=-de -w -J./views -I./src/sdp -linker=ld.gold
-DMD_FLAGS_RELEASE=-O -release
+DMD_FLAGS_RELEASE=-O -inline -release
DMD_FLAG_BINOF=-of
LDC=ldc2
LDC_FLAGS=-w -J=views -I=src/sdp -linker=ld.gold
-LDC_FLAGS_RELEASE=-O4 -release
+LDC_FLAGS_RELEASE=-O4 -inline -release
LDC_FLAG_BINOF=-of=
GDC=gdc
GDC_FLAGS=
@@ -65,9 +65,9 @@ debug_dub: $(PRG_SRCDIR)/$(PRG_SRC)
# dmd
dub_dmd_release: expunge skel tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-release
-dub_dmd_stamp: tangle
+dub_dmd_release_stamp: clean_src skel tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-dmd
-dub_dmd_release_test: tangle
+dub_dmd_test_release: tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-dmd
dub_dmd_debug: tangle
$(DUB) $(DUB_FLAGS)dmd --config=sdp-debug-dmd
@@ -80,9 +80,9 @@ dub_dmd_debug_src:
# ldc2
dub_ldc_release: expunge skel tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-release
-dub_ldc_stamp: tangle
+dub_ldc_release_stamp: clean_src skel tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-ldc
-dub_ldc_release_test: tangle
+dub_ldc_test_release: tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-ldc
dub_ldc_debug: tangle
$(DUB) $(DUB_FLAGS)ldc2 --config=sdp-debug-ldc
@@ -151,9 +151,13 @@ skel:
init: skel
-clean:
+clean_bin:
rm $(PRG_BINDIR)/*
+clean_src:
+ rm -f $(PRG_SRCDIR)/*; \
+ rm -rf $(PRG_SRCDIR)/$(PRG_NAME); \
+
expunge:
rm -f $(PRG_SRCDIR)/*; \
rm -rf $(PRG_SRCDIR)/$(PRG_NAME); \
@@ -203,5 +207,5 @@ tangle_maker:
gitsnapshot: distclean tangle
git commit -a
.PHONY : all build rebuild debug release \
- clean distclean init \
+ distclean init \
tangle gitsnapshot