Fix a problem when compiling the source distribution.

Estimated hours taken: 0.2
Branches: main

Fix a problem when compiling the source distribution.

deep_profiler/Mmakefile:
	Make sure that the C files for mdprof_procrep are built and
	included in the source distribution; otherwise make will try
	and build them from the Mercury files - which doesn't work
	if you don't have a Mercury compiler installed.
This commit is contained in:
Julien Fischer
2007-09-24 13:26:58 +00:00
parent 154ca51671
commit c63829b430

View File

@@ -115,6 +115,8 @@ mdprof_dump: $(RUNTIME_DIR)/lib$(RT_LIB_NAME).$A
mdprof_dump: $(LIBRARY_DIR)/lib$(STD_LIB_NAME).$A
mdprof_feedback: $(RUNTIME_DIR)/lib$(RT_LIB_NAME).$A
mdprof_feedback: $(LIBRARY_DIR)/lib$(STD_LIB_NAME).$A
mdprof_procrep: $(RUNTIME_DIR)/lib$(RT_LIB_NAME).$A
mdprof_procrep: $(LIBRARY_DIR)/lib$(STD_LIB_NAME).$A
# XXX Should also depend on $(BOEHM_GC_DIR)/libgc(_prof).$A, but only
# if in .gc(.prof) grade.
endif
@@ -123,6 +125,7 @@ $(cs_subdir)mdprof_cgi_init.c: $(UTIL_DIR)/mkinit
$(cs_subdir)mdprof_test_init.c: $(UTIL_DIR)/mkinit
$(cs_subdir)mdprof_dump_init.c: $(UTIL_DIR)/mkinit
$(cs_subdir)mdprof_feedback_init.c: $(UTIL_DIR)/mkinit
$(cs_subdir)mdprof_procrep_init.c: $(UTIL_DIR)/mkinit
#-----------------------------------------------------------------------------#
@@ -146,7 +149,8 @@ DEEP_MS = \
$(mdprof_cgi.ms) \
$(mdprof_test.ms) \
$(mdprof_dump.ms) \
$(mdprof_feedback.ms)
$(mdprof_feedback.ms) \
$(mdprof_procrep.ms)
.deep_tags: $(MTAGS) $(DEEP_MS) $(MDBCOMP_DIR)/*.m $(LIBRARY_DIR)/*.m
$(MTAGS) $(DEEP_MS) $(MDBCOMP_DIR)/*.m $(LIBRARY_DIR)/*.m
@@ -163,7 +167,7 @@ tags_file_exists:
.PHONY: dates
dates:
touch $(mdprof_cgi.dates) $(mdprof_test.dates) $(mdprof_dump.dates) \
$(mdprof_feedback.dates)
$(mdprof_feedback.dates) $(mdprof_procrep.dates)
#-----------------------------------------------------------------------------#
@@ -172,10 +176,12 @@ os: $(mdprof_cgi.os) $(os_subdir)mdprof_cgi_init.o
os: $(mdprof_test.os) $(os_subdir)mdprof_test_init.o
os: $(mdprof_dump.os) $(os_subdir)mdprof_dump_init.o
os: $(mdprof_feedback.os) $(os_subdir)mdprof_feedback_init.o
os: $(mdprof_procrep.os) $(os_subdir)mdprof_procrep_init.o
cs: $(mdprof_cgi.cs) $(cs_subdir)mdprof_cgi_init.c
cs: $(mdprof_test.cs) $(cs_subdir)mdprof_test_init.c
cs: $(mdprof_dump.cs) $(cs_subdir)mdprof_dump_init.c
cs: $(mdprof_feedback.cs) $(cs_subdir)mdprof_feedback_init.c
cs: $(mdprof_procrep.cs) $(cs_subdir)mdprof_procrep_init.c
#-----------------------------------------------------------------------------#