-
Notifications
You must be signed in to change notification settings - Fork 57
/
Copy pathMakefile
41 lines (31 loc) · 1.06 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#-----------------------------------------------------------------------------#
# 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)
.PHONY: install
install:
$(MMC) $(MMCFLAGS) --make libnet.install
tags: $(MERCURY_FILES)
$(MTAGS) $(MERCURY_FILES)
.PHONY: clean
clean:
rm -rf Mercury *.mh *.err \
echo test_lookups libnet.so libnet.a \
net.init \
tags