Files
mercury/util/Mmakefile
Fergus Henderson dfc4e243cd Simplify the code by deleting unnecessary uses of $(EXTRA_*), etc.
Estimated hours taken: 1

browser/Mmakefile:
compiler/Mmakefile:
library/Mmakefile:
profiler/Mmakefile:
runtime/Mmakefile:
trace/Mmakefile:
util/Mmakefile:
	Simplify the code by deleting unnecessary uses of $(EXTRA_*), etc.
	This is now handled once and for all in scripts/Mmake.vars, and
	so it doesn't need to be separately handled by */Mmakefile.
	This patch also fixes an annoyance where if you set EXTRA_CFLAGS,
	the flags that you set were being passed to mgnuc twice.
1999-06-01 08:16:13 +00:00

49 lines
1.5 KiB
Plaintext

#-----------------------------------------------------------------------------#
# Copyright (C) 1995-1999 The University of Melbourne.
# This file may only be copied under the terms of the GNU General
# Public License - see the file COPYING in the Mercury distribution.
#-----------------------------------------------------------------------------#
# Mmake - Mmake file for the Mercury utilities directory
MAIN_TARGET=all
#-----------------------------------------------------------------------------#
MERCURY_DIR=..
include $(MERCURY_DIR)/Mmake.common
#-----------------------------------------------------------------------------#
MGNUC = MERCURY_C_INCL_DIR=$(RUNTIME_DIR) $(SCRIPTS_DIR)/mgnuc
CFLAGS = -I$(RUNTIME_DIR) -O0
# we need -I ../runtime for "mercury_std.h", etc.
# the -O0 is to get around a stupid compiler bug in gcc 2.7.2.3 on cyclone
PROGS=mkinit mdemangle info_to_mdb
#-----------------------------------------------------------------------------#
all: $(PROGS)
.c:
$(MGNUC) $(GRADEFLAGS) $(ALL_MGNUCFLAGS) -o $@ $<
#-----------------------------------------------------------------------------#
.PHONY: install
install: $(PROGS)
[ -d $(INSTALL_BINDIR) ] || mkdir -p $(INSTALL_BINDIR)
cp `vpath_find $(PROGS)` $(INSTALL_BINDIR)
.PHONY: uninstall
uninstall:
-cd $(INSTALL_BINDIR) && rm $(PROGS)
#-----------------------------------------------------------------------------#
realclean:
-rm -f $(PROGS)
#-----------------------------------------------------------------------------#