#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#

TESTS_DIR = ..
THIS_DIR = options_file
MAYBE_J1 =

#-----------------------------------------------------------------------------#

PROGS = \
	basic_test

#-----------------------------------------------------------------------------#

TESTS = $(patsubst %,%-nodepend,$(sort $(PROGS)))
include ../Mmake.common

%.runtest: %.optfile_res ;

%.optfile_out: %.m %.options_file
	-$(MC) --make-interface $*.m > /dev/null 2>&1
	if $(MC) -V --errorcheck-only $(ALL_GRADEFLAGS) $(ALL_MCFLAGS) \
		--options-file $*.options_file \
		--dump-options-file $*.optfile_out $*.m ; \
	then \
		true; \
	else \
		echo COMPILATION FAILED >> $*.optfile_out; \
	fi

#-----------------------------------------------------------------------------#

clean_local: clean_options_file

clean_options_file:

realclean_local: realclean_options_file

realclean_options_file:

#-----------------------------------------------------------------------------#
