Files
mercury/tests/warnings/Mmakefile
Fergus Henderson 6e06050558 Rename Mmake' as Mmakefile', since using the name `Mmake'
Estimated hours taken: 0.25

*/Mmake:
	Rename `Mmake' as `Mmakefile', since using the name `Mmake'
	causes problems on case-insensitive file systems.
1997-09-29 18:05:38 +00:00

60 lines
1.3 KiB
Plaintext

#-----------------------------------------------------------------------------#
main_target: check
#-----------------------------------------------------------------------------#
PROGS= \
double_underscore \
duplicate_call \
inf_recursion_lambda \
infinite_recursion \
missing_if \
pragma_source_file \
simple_code \
singleton_test \
unused_args_test \
unused_import
#-----------------------------------------------------------------------------#
# some files need to be compiled with special options
MCFLAGS = $(MCFLAGS-$*) $(EXTRA_MCFLAGS)
MCFLAGS-duplicate_call = --warn-duplicate-calls
MCFLAGS-unused_args_test = --warn-unused-args
MCFLAGS-unused_import = --warn-interface-imports
#-----------------------------------------------------------------------------#
%.res: %.exp %.err
-rm -f $@
diff -c $*.exp $*.err > $@
#-----------------------------------------------------------------------------#
DEPENDS=$(PROGS:%=%.depend)
ERRS= $(PROGS:%=%.err)
RESS= $(PROGS:%=%.res)
#-----------------------------------------------------------------------------#
depend: $(DEPENDS)
check: $(ERRS) $(RESS)
all: $(PROGS)
clean: clean_err clean_res
clean_mc: clean_c clean_o clean_err clean_res
clean_err:
rm -f *.err
clean_res:
rm -f *.res
#-----------------------------------------------------------------------------#