mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-21 12:23:44 +00:00
54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
#-----------------------------------------------------------------------------#
|
|
# vim: ts=8 sw=8 noexpandtab
|
|
#-----------------------------------------------------------------------------#
|
|
# Copyright (C) 1997-2000, 2003-2004, 2011 The University of Melbourne.
|
|
# Copyright (C) 2015, 2018 The Mercury team.
|
|
# This file is distributed under the terms specified in COPYING.LIB.
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
MAIN_TARGET = all
|
|
|
|
# We need to use a grade with trailing
|
|
GRADEFLAGS += --use-trail
|
|
|
|
EXTRA_LIB_DIRS = $(INSTALL_PREFIX)/extras/lib/mercury
|
|
EXTRA_LIBRARIES = global
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
PROGS = ref_test glob_test glob_test_2
|
|
|
|
DEPENDS = $(PROGS:%=%.depend)
|
|
CS = $(PROGS:%=%.c)
|
|
RESS = $(PROGS:%=%.res)
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
$(PROGS): ../global.init
|
|
|
|
%.out: %
|
|
./$< > $@ 2>&1;
|
|
|
|
%.res: %.exp %.out
|
|
diff -c $*.exp $*.out > $@
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
.PHONY: depend
|
|
depend: $(DEPENDS)
|
|
|
|
.PHONY: all
|
|
all: $(PROGS)
|
|
|
|
.PHONY: check
|
|
check: $(RESS)
|
|
|
|
.PHONY: cs
|
|
cs: $(CS)
|
|
|
|
.PHONY: clean_local
|
|
clean_local:
|
|
rm -f *.out *.res
|
|
|
|
#-----------------------------------------------------------------------------#
|