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

# Automatically generated module dependencies for
# module `mdb.name_mangle' in source file `name_mangle.m'.
# Generated by Mercury compiler version 22.01.9-beta-2026-08-29
# configured for x86_64-pc-linux-gnu.

# RULE date_file_deps
# target group names:
#   dates_and_err
# source group names:
#   (unnamed)
#   ancestors
#   long deps
#   short deps
#   type_repn self dep
#   type_repn ancestor dep
mdb.name_mangle.optdate mdb.name_mangle.trans_opt_date name_mangle.err mdb.name_mangle.c_date mdb.name_mangle.java_date : \
		name_mangle.m \
	\
		mdb.int0 \
	\
		builtin.int \
		char.int \
		list.int \
		private_builtin.int \
		string.int \
	\
		assoc_list.int2 \
		construct.int2 \
		deconstruct.int2 \
		enum.int2 \
		map.int2 \
		maybe.int2 \
		ops.int2 \
		pair.int2 \
		pretty_printer.int2 \
		term.int2 \
		tree234.int2 \
		type_desc.int2 \
		univ.int2 \
	\
		mdb.name_mangle.int \
	\
		mdb.int

# RULE objs_on_mihs
mdb.name_mangle.pic_o mdb.name_mangle.$O : \
		assoc_list.mih \
		builtin.mih \
		char.mih \
		construct.mih \
		deconstruct.mih \
		enum.mih \
		list.mih \
		map.mih \
		maybe.mih \
		mdb.mih \
		ops.mih \
		pair.mih \
		pretty_printer.mih \
		private_builtin.mih \
		string.mih \
		term.mih \
		tree234.mih \
		type_desc.mih \
		univ.mih

# RULE mh_and_mih_on_c
mdb.name_mangle.mh mdb.name_mangle.mih : mdb.name_mangle.c

ifeq ($(findstring java,$(GRADE)),java)

# RULE module_dep_on_java
mdb.name_mangle.module_dep : jmercury/mdb__name_mangle.java

else

# RULE module_dep_on_c
mdb.name_mangle.module_dep : mdb.name_mangle.c

endif # conditional fragment

# RULE self_and_parent_date_deps
# source group names:
#   (unnamed)
#   ancestor int0
#   long dep int3s
#   short dep int3s
mdb.name_mangle.date mdb.name_mangle.date0 mdb.date : \
		name_mangle.m \
	\
		mdb.int0 \
	\
		builtin.int3 \
		char.int3 \
		list.int3 \
		private_builtin.int3 \
		string.int3 \
	\
		assoc_list.int3 \
		construct.int3 \
		deconstruct.int3 \
		enum.int3 \
		map.int3 \
		maybe.int3 \
		ops.int3 \
		pair.int3 \
		pretty_printer.int3 \
		term.int3 \
		tree234.int3 \
		type_desc.int3 \
		univ.int3

# RULE self_and_parent_date0_deps
# target group names:
#   date0s
# source group names:
#   (unnamed)
#   long dep int3s
#   short dep int3s
mdb.name_mangle.date0 mdb.date0 : \
		name_mangle.m \
	\
		builtin.int3 \
		char.int3 \
		list.int3 \
		private_builtin.int3 \
		string.int3 \
	\
		assoc_list.int3 \
		construct.int3 \
		deconstruct.int3 \
		enum.int3 \
		map.int3 \
		maybe.int3 \
		ops.int3 \
		pair.int3 \
		pretty_printer.int3 \
		term.int3 \
		tree234.int3 \
		type_desc.int3 \
		univ.int3

# RULE foreign_deps_for_mh
mdb.name_mangle.$O mdb.name_mangle.pic_o : \
		mdb.mh \
		mdb.name_mangle.mh

# RULE int0_on_date0
mdb.name_mangle.int0 : mdb.name_mangle.date0
	@:

# RULE int_on_date
mdb.name_mangle.int : mdb.name_mangle.date
	@:

# RULE int2_on_date
mdb.name_mangle.int2 : mdb.name_mangle.date
	@:

# RULE int3_on_date3
mdb.name_mangle.int3 : mdb.name_mangle.date3
	@:

# RULE opt_on_opt_date
mdb.name_mangle.opt : mdb.name_mangle.optdate
	@:

# RULE trans_opt_on_trans_opt_date
mdb.name_mangle.trans_opt : mdb.name_mangle.trans_opt_date
	@:

# RULE date0_on_src
mdb.name_mangle.date0 : name_mangle.m
	$(MCPI) $(ALL_GRADEFLAGS) $(ALL_MCPIFLAGS) mdb.name_mangle

# RULE date_on_src
mdb.name_mangle.date : name_mangle.m
	$(MCI) $(ALL_GRADEFLAGS) $(ALL_MCIFLAGS) mdb.name_mangle

# RULE date3_on_src
mdb.name_mangle.date3 : name_mangle.m
	$(MCSI) $(ALL_GRADEFLAGS) $(ALL_MCSIFLAGS) mdb.name_mangle

# RULE opt_date_on_src
mdb.name_mangle.optdate : name_mangle.m
	$(MCOI) $(ALL_GRADEFLAGS) $(ALL_MCOIFLAGS) mdb.name_mangle

# RULE trans_opt_date_on_src
mdb.name_mangle.trans_opt_date : name_mangle.m
	$(MCTOI) $(ALL_GRADEFLAGS) $(ALL_MCTOIFLAGS) mdb.name_mangle

# RULE c_date_on_src
mdb.name_mangle.c_date : name_mangle.m
	$(MCG) $(ALL_GRADEFLAGS) $(ALL_MCGFLAGS) mdb.name_mangle $(ERR_REDIRECT)

# RULE java_date_on_src
mdb.name_mangle.java_date : name_mangle.m
	$(MCG) $(ALL_GRADEFLAGS) $(ALL_MCGFLAGS) --java-only mdb.name_mangle $(ERR_REDIRECT)

