mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-14 05:12:33 +00:00
Estimated hours taken: 0.25 samples/diff/Mmakefile: Fix a bug: it was passing `-O0' in MGNUCFLAGS, rather than CFLAGS. This broke things if you tried to pass an mgnuc option such as `--inline-alloc' in EXTRA_MGNUCFLAGS on the command-line.
23 lines
740 B
Plaintext
23 lines
740 B
Plaintext
# An example of a *short* Mmake file
|
|
# In fact you don't really need any Mmake file at all,
|
|
# just `mmake diff.depend; mmake diff' is enough.
|
|
# But `mmake depend; mmake' is standard, so we will
|
|
# define a target `depend' and a default target `all'
|
|
# to make that work.
|
|
|
|
# This source file is hereby placed in the public domain. -fjh (the author).
|
|
|
|
MAIN_TARGET=all
|
|
depend: diff.depend
|
|
all: diff
|
|
|
|
# Unfortunately, diff does not work quite properly when compiled with gcc
|
|
# 2.7.2 under Digital Unix 3.2 due to a bug in gcc. The bug was fixed
|
|
# in 2.7.2.1, so feel free to comment out this line if you're using
|
|
# an unbuggy compiler.
|
|
#
|
|
# BTW, the predicate which isn't compiled correctly is diff_out__show_file_2
|
|
# in diff_out.m.
|
|
CFLAGS=-O0
|
|
|