Files
mercury/util/Mmake
Fergus Henderson 97ca90df2d Change -I $(RUNTIME_DIR)' to -I$(RUNTIME_DIR)', since some
Estimated hours taken: 0.1

util/Mmake:
	Change `-I $(RUNTIME_DIR)' to `-I$(RUNTIME_DIR)', since some
	C compilers don't allow a space after `-I'.
1996-03-29 16:31:19 +00:00

48 lines
1.4 KiB
Plaintext

#-----------------------------------------------------------------------------#
# Copyright (C) 1995 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 = $(SCRIPTS_DIR)/mgnuc
CFLAGS = -I$(RUNTIME_DIR) $(EXTRA_CFLAGS)
# we need -I ../runtime for "getopt.h"
PROGS=mkinit mdemangle
#-----------------------------------------------------------------------------#
all: $(PROGS)
.c:
$(MGNUC) --grade $(GRADE) $(CFLAGS) -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)
#-----------------------------------------------------------------------------#