summaryrefslogtreecommitdiffstats
path: root/eshtrans
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2016-02-26 18:33:49 (EST)
committer P. J. McDermott <pj@pehjota.net>2016-02-26 18:33:49 (EST)
commit38af32c47112c1833669f87f0f626f4e6dcfa067 (patch)
treebccfda8bd0e41ac136b66bca2246a7f0f704c3bc /eshtrans
parentb9fd6d1e6c6262f269e9bba9207c76aef914dbc5 (diff)
downloadeggshell-38af32c47112c1833669f87f0f626f4e6dcfa067.zip
eggshell-38af32c47112c1833669f87f0f626f4e6dcfa067.tar.gz
eggshell-38af32c47112c1833669f87f0f626f4e6dcfa067.tar.bz2
eshtrans/Makefile: Make libeshprof optional
Diffstat (limited to 'eshtrans')
-rw-r--r--eshtrans/Makefile12
1 files changed, 8 insertions, 4 deletions
diff --git a/eshtrans/Makefile b/eshtrans/Makefile
index 8ab8310..a2ff5c9 100644
--- a/eshtrans/Makefile
+++ b/eshtrans/Makefile
@@ -11,6 +11,10 @@ OBJECTS1 = $(SOURCES:.esh=.sh1)
OBJECTS2 = $(SOURCES:.esh=.sh2)
OBJECTS3 = $(SOURCES:.esh=.sh3)
+WITH_PROF = n
+PROF_y = ../libeshprof/hooks.esh
+PROF = $(PROF_$(WITH_PROF))
+
bootstrap: stage3
stage1:
@printf 'Stage 1:\n'
@@ -37,10 +41,10 @@ eshtrans.stage1: $(OBJECTS1) Makefile
cat $(OBJECTS1) >$@
printf 'main "$${@}"\n' >>$@
chmod a+x $@
-eshtrans.stage2: eshtrans.stage1 $(OBJECTS2) ../libeshprof/hooks.esh Makefile
- ../eshld/eshld -o $@ $(OBJECTS2) ../libeshprof/hooks.esh
-eshtrans.stage3: eshtrans.stage2 $(OBJECTS3) ../libeshprof/hooks.esh Makefile
- ../eshld/eshld -o $@ $(OBJECTS3) ../libeshprof/hooks.esh
+eshtrans.stage2: eshtrans.stage1 $(OBJECTS2) $(PROF) Makefile
+ ../eshld/eshld -o $@ $(OBJECTS2) $(PROF)
+eshtrans.stage3: eshtrans.stage2 $(OBJECTS3) $(PROF) Makefile
+ ../eshld/eshld -o $@ $(OBJECTS3) $(PROF)
$(OBJECTS1) $(OBJECTS2) $(OBJECTS3): Makefile