mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 20:33:55 +00:00
extras/net/Makefile:
Build a Mercury.modules as some file names do not match
their module names and the compiler no longer accepts this.
extras/net/errno.m:
Ensure we can see the definition of MR_STRERROR_BUF_SIZE.
38 lines
1021 B
Makefile
38 lines
1021 B
Makefile
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab
|
|
#-----------------------------------------------------------------------------#
|
|
# Copyright (C) 2014 The Mercury Team
|
|
# This file may only be copied under the terms of the GNU Library General
|
|
# Public Licence - see the file COPYING in the Mercury distribution.
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
MMC=mmc
|
|
MTAGS=mtags
|
|
MCFLAGS=-O3 --intermodule-optimization --use-grade-subdirs --grade hlc.gc
|
|
|
|
MERCURY_FILES=$(wildcard *.m)
|
|
|
|
all: libnet.so echo test_lookups
|
|
|
|
libnet.so: Mercury.modules
|
|
$(MMC) $(MCFLAGS) --make libnet
|
|
|
|
echo: Mercury.modules
|
|
$(MMC) $(MCFLAGS) --make echo
|
|
|
|
test_lookups: Mercury.modules
|
|
$(MMC) $(MCFLAGS) --make test_lookups
|
|
|
|
Mercury.modules: $(MERCURY_FILES)
|
|
$(MMC) -f $(MERCURY_FILES)
|
|
|
|
tags: $(MERCURY_FILES)
|
|
$(MTAGS) $(MERCURY_FILES)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf Mercury *.mh *.err \
|
|
echo test_lookups libnet.so libnet.a \
|
|
net.init \
|
|
tags
|