mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 04:13:46 +00:00
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'.
48 lines
1.4 KiB
Plaintext
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)
|
|
|
|
#-----------------------------------------------------------------------------#
|