# -*- Makefile -*- for gettext-tools/src on VMS using the MMS utility

#### Start of system configuration section. ####

# Directories used by "make install":
prefix = SYS$DATA:[
exec_prefix = $(prefix)
bindir = $(exec_prefix).bin
libdir = $(exec_prefix).lib
includedir = $(prefix).include
datadir = $(prefix).share
localedir = $(datadir).locale
aliaspath = $(localedir)
jardir = $(datadir).gettext
pkgdatadir = $(datadir).gettext
projectsdir = $(pkgdatadir).projects

# Programs used by "make":

CC = cc

# These flags affect binary compatibility. GNU gettext does not need them,
# but other packages do, and we need to be binary compatible with them.
ABIFLAGS = /name=(as_is,short) /float=ieee

WARN_CFLAGS = /warning

OPTIMFLAGS = /optimize

CFLAGS = $(ABIFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS)
DEFS = "VMS=1","HAVE_CONFIG_H=1","LOCALEDIR=""$(localedir)]""","GETTEXTJAR=""$(jardir)]gettext.jar""","LIBDIR=""$(libdir)]""","GETTEXTDATADIR=""$(pkgdatadir)]""","PROJECTSDIR=""$(projectsdir)"""

INCLUDES = /include=([],[-],[-.libgrep],[-.libuniname],[-.lib],[-.intl],[-.-.gettext-runtime.intl])

LDADD = libiconv.opt/opt,[-.-.vms]link_options.opt
LDADD_EXPAT = sys$library:expat/lib

AR = library
AR_FLAGS = /create

LN = copy
RM = delete

# Programs used by "make install":
INSTALL = copy
INSTALL_PROGRAM = copy
INSTALL_DATA = copy

#### End of system configuration section. ####

PROGRAMS = msgcmp.exe, msgfmt.exe, msgmerge.exe, msgunfmt.exe, xgettext.exe, msgattrib.exe, msgcat.exe, msgcomm.exe, msgconv.exe, msgen.exe, msgexec.exe, msgfilter.exe, msggrep.exe, msginit.exe, msguniq.exe, recode-sr-latin.exe

OBJECTS = \
  message.obj, \
  po-error.obj, \
  read-po-abstract.obj, \
  po-lex.obj, \
  po-gram-gen.obj, \
  po-charset.obj, \
  read-properties.obj, \
  read-stringtable.obj, \
  open-po.obj, \
  dir-list.obj, \
  str-list.obj, \
  read-po.obj, \
  write-properties.obj, \
  write-stringtable.obj, \
  write-po.obj, \
  msgl-ascii.obj, \
  msgl-iconv.obj, \
  msgl-equal.obj, \
  msgl-cat.obj, \
  msgl-english.obj, \
  file-list.obj, \
  msgl-charset.obj, \
  po-time.obj, \
  plural.obj, \
  plural-table.obj, \
  format.obj, \
  format-c.obj, \
  format-sh.obj, \
  format-python.obj, \
  format-lisp.obj, \
  format-elisp.obj, \
  format-librep.obj, \
  format-scheme.obj, \
  format-java.obj, \
  format-csharp.obj, \
  format-awk.obj, \
  format-pascal.obj, \
  format-ycp.obj, \
  format-tcl.obj, \
  format-perl.obj, \
  format-perl-brace.obj, \
  format-php.obj, \
  format-gcc-internal.obj, \
  format-qt.obj, \
  format-boost.obj

msgcmp_OBJECTS = msgcmp.obj
msgfmt_OBJECTS = msgfmt.obj, write-mo.obj, write-java.obj, write-csharp.obj, write-resources.obj, write-tcl.obj, write-qt.obj, plural-eval.obj, hash-string.obj
msgmerge_OBJECTS = msgmerge.obj, msgl-fsearch.obj, plural-count.obj
msgunfmt_OBJECTS = msgunfmt.obj, read-mo.obj, read-java.obj, read-csharp.obj, read-resources.obj, read-tcl.obj
xgettext_OBJECTS = xgettext.obj, x-c.obj, x-po.obj, x-sh.obj, x-python.obj, x-lisp.obj, x-elisp.obj, x-librep.obj, x-scheme.obj, x-smalltalk.obj, x-java.obj, x-csharp.obj, x-awk.obj, x-ycp.obj, x-tcl.obj, x-perl.obj, x-php.obj, x-rst.obj, x-glade.obj
msgattrib_OBJECTS = msgattrib.obj
msgcat_OBJECTS = msgcat.obj
msgcomm_OBJECTS = msgcomm.obj
msgconv_OBJECTS = msgconv.obj
msgen_OBJECTS = msgen.obj
msgexec_OBJECTS = msgexec.obj
msgfilter_OBJECTS = msgfilter.obj, filter-sr-latin.obj
msggrep_OBJECTS = msggrep.obj
msginit_OBJECTS = msginit.obj, lang-table.obj, plural-count.obj, localealias.obj
msguniq_OBJECTS = msguniq.obj
recode_sr_latin_OBJECTS = recode-sr-latin.obj, filter-sr-latin.obj

all : gettextsrc.olb,$(PROGRAMS),gettextpo.olb
	write sys$output "Nothing else to be done for 'all'."

# Compilation rules for $(OBJECTS).

message.obj : message.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) message.c

po-error.obj : po-error.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) po-error.c

read-po-abstract.obj : read-po-abstract.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-po-abstract.c

po-lex.obj : po-lex.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) po-lex.c

po-gram-gen.obj : po-gram-gen.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) po-gram-gen.c

po-charset.obj : po-charset.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) po-charset.c

read-properties.obj : read-properties.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-properties.c

read-stringtable.obj : read-stringtable.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-stringtable.c

open-po.obj : open-po.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) open-po.c

dir-list.obj : dir-list.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) dir-list.c

str-list.obj : str-list.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) str-list.c

read-po.obj : read-po.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-po.c

write-properties.obj : write-properties.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-properties.c

write-stringtable.obj : write-stringtable.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-stringtable.c

write-po.obj : write-po.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-po.c

msgl-ascii.obj : msgl-ascii.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) msgl-ascii.c

msgl-iconv.obj : msgl-iconv.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) msgl-iconv.c

msgl-equal.obj : msgl-equal.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) msgl-equal.c

msgl-cat.obj : msgl-cat.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) msgl-cat.c

msgl-english.obj : msgl-english.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) msgl-english.c

file-list.obj : file-list.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) file-list.c

msgl-charset.obj : msgl-charset.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) msgl-charset.c

po-time.obj : po-time.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) po-time.c

plural.obj : plural.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) plural.c

plural-table.obj : plural-table.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) plural-table.c

format.obj : format.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format.c

format-c.obj : format-c.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-c.c

format-sh.obj : format-sh.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-sh.c

format-python.obj : format-python.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-python.c

format-lisp.obj : format-lisp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-lisp.c

format-elisp.obj : format-elisp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-elisp.c

format-librep.obj : format-librep.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-librep.c

format-scheme.obj : format-scheme.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-scheme.c

format-java.obj : format-java.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-java.c

format-csharp.obj : format-csharp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-csharp.c

format-awk.obj : format-awk.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-awk.c

format-pascal.obj : format-pascal.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-pascal.c

format-ycp.obj : format-ycp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-ycp.c

format-tcl.obj : format-tcl.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-tcl.c

format-perl.obj : format-perl.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-perl.c

format-perl-brace.obj : format-perl-brace.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-perl-brace.c

format-php.obj : format-php.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-php.c

format-gcc-internal.obj : format-gcc-internal.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-gcc-internal.c

format-qt.obj : format-qt.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-qt.c

format-boost.obj : format-boost.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) format-boost.c

gettextsrc.olb : $(OBJECTS)
	$(AR) $(AR_FLAGS) gettextsrc.olb $(OBJECTS)

# Compilation rules for $(program_OBJECTS).

msgcmp.obj : msgcmp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgcmp.c

msgfmt.obj : msgfmt.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgfmt.c

write-mo.obj : write-mo.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-mo.c

write-java.obj : write-java.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-java.c

write-csharp.obj : write-csharp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-csharp.c

write-resources.obj : write-resources.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-resources.c

write-tcl.obj : write-tcl.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-tcl.c

write-qt.obj : write-qt.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) write-qt.c

plural-eval.obj : plural-eval.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) plural-eval.c

hash-string.obj : [-.-.gettext-runtime.intl]hash-string.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) [-.-.gettext-runtime.intl]hash-string.c

msgmerge.obj : msgmerge.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgmerge.c

msgl-fsearch.obj : msgl-fsearch.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) msgl-fsearch.c

plural-count.obj : plural-count.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) plural-count.c

msgunfmt.obj : msgunfmt.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgunfmt.c

read-mo.obj : read-mo.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-mo.c

read-java.obj : read-java.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-java.c

read-csharp.obj : read-csharp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-csharp.c

read-resources.obj : read-resources.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-resources.c

read-tcl.obj : read-tcl.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) read-tcl.c

xgettext.obj : xgettext.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") xgettext.c

x-c.obj : x-c.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-c.c

x-po.obj : x-po.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-po.c

x-sh.obj : x-sh.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-sh.c

x-python.obj : x-python.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-python.c

x-lisp.obj : x-lisp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-lisp.c

x-elisp.obj : x-elisp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-elisp.c

x-librep.obj : x-librep.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-librep.c

x-scheme.obj : x-scheme.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-scheme.c

x-smalltalk.obj : x-smalltalk.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-smalltalk.c

x-java.obj : x-java.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-java.c

x-csharp.obj : x-csharp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-csharp.c

x-awk.obj : x-awk.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-awk.c

x-ycp.obj : x-ycp.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-ycp.c

x-tcl.obj : x-tcl.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-tcl.c

x-perl.obj : x-perl.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-perl.c

x-php.obj : x-php.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-php.c

x-rst.obj : x-rst.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-rst.c

x-glade.obj : x-glade.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) x-glade.c

msgattrib.obj : msgattrib.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgattrib.c

msgcat.obj : msgcat.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgcat.c

msgcomm.obj : msgcomm.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgcomm.c

msgconv.obj : msgconv.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgconv.c

msgen.obj : msgen.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgen.c

msgexec.obj : msgexec.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgexec.c

msgfilter.obj : msgfilter.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msgfilter.c

msggrep.obj : msggrep.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msggrep.c

msginit.obj : msginit.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msginit.c

lang-table.obj : lang-table.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) lang-table.c

localealias.obj : [-.-.gettext-runtime.intl]localealias.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"LOCALE_ALIAS_PATH=""$(aliaspath)]""") [-.-.gettext-runtime.intl]localealias.c

msguniq.obj : msguniq.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") msguniq.c

filter-sr-latin.obj : filter-sr-latin.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) filter-sr-latin.c

recode-sr-latin.obj : recode-sr-latin.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") recode-sr-latin.c

libiconv.opt :
	if f$search("sys$library:libiconv.olb") .nes. "" then $(LN) [-.-.vms]with-libiconv.opt libiconv.opt
	if f$search("sys$library:libiconv.olb") .eqs. "" then $(LN) [-.-.vms]without-libiconv.opt libiconv.opt

msgcmp.exe : $(msgcmp_OBJECTS),libiconv.opt
	link /executable=msgcmp.exe $(msgcmp_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgfmt.exe : $(msgfmt_OBJECTS),libiconv.opt
	link /executable=msgfmt.exe $(msgfmt_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgmerge.exe : $(msgmerge_OBJECTS),libiconv.opt
	link /executable=msgmerge.exe $(msgmerge_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgunfmt.exe : $(msgunfmt_OBJECTS),libiconv.opt
	link /executable=msgunfmt.exe $(msgunfmt_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

xgettext.exe : $(xgettext_OBJECTS),libiconv.opt
	link /executable=xgettext.exe $(xgettext_OBJECTS),[-.libuniname]uniname.olb/lib,gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD_EXPAT),$(LDADD)

msgattrib.exe : $(msgattrib_OBJECTS),libiconv.opt
	link /executable=msgattrib.exe $(msgattrib_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgcat.exe : $(msgcat_OBJECTS),libiconv.opt
	link /executable=msgcat.exe $(msgcat_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgcomm.exe : $(msgcomm_OBJECTS),libiconv.opt
	link /executable=msgcomm.exe $(msgcomm_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgconv.exe : $(msgconv_OBJECTS),libiconv.opt
	link /executable=msgconv.exe $(msgconv_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgen.exe : $(msgen_OBJECTS),libiconv.opt
	link /executable=msgen.exe $(msgen_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgexec.exe : $(msgexec_OBJECTS),libiconv.opt
	link /executable=msgexec.exe $(msgexec_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msgfilter.exe : $(msgfilter_OBJECTS),libiconv.opt
	link /executable=msgfilter.exe $(msgfilter_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msggrep.exe : $(msggrep_OBJECTS),libiconv.opt
	link /executable=msggrep.exe $(msggrep_OBJECTS),[-.libgrep]grep.olb/lib,gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msginit.exe : $(msginit_OBJECTS),libiconv.opt
	link /executable=msginit.exe $(msginit_OBJECTS),[-.intl]localename.obj,gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

msguniq.exe : $(msguniq_OBJECTS),libiconv.opt
	link /executable=msguniq.exe $(msguniq_OBJECTS),gettextsrc.olb/lib,[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

recode-sr-latin.exe : $(recode_sr_latin_OBJECTS),libiconv.opt
	link /executable=recode-sr-latin.exe $(recode_sr_latin_OBJECTS),[-.lib]gettextlib.olb/lib,[-.intl]intl.olb/lib,$(LDADD)

# Compilation rules for gettextpo.olb objects.

gettext-po.obj : gettext-po.c
	$(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) gettext-po.c

gettextpo.olb : gettext-po.obj
	$(AR) $(AR_FLAGS) gettextpo.olb gettext-po.obj

install : all
	create /directory $(prefix)]
	create /directory $(exec_prefix)]
	$(INSTALL_PROGRAM) msgcmp.exe $(bindir)]msgcmp.exe
	$(INSTALL_PROGRAM) msgfmt.exe $(bindir)]msgfmt.exe
	$(INSTALL_PROGRAM) msgmerge.exe $(bindir)]msgmerge.exe
	$(INSTALL_PROGRAM) msgunfmt.exe $(bindir)]msgunfmt.exe
	$(INSTALL_PROGRAM) xgettext.exe $(bindir)]xgettext.exe
	$(INSTALL_PROGRAM) msgattrib.exe $(bindir)]msgattrib.exe
	$(INSTALL_PROGRAM) msgcat.exe $(bindir)]msgcat.exe
	$(INSTALL_PROGRAM) msgcomm.exe $(bindir)]msgcomm.exe
	$(INSTALL_PROGRAM) msgconv.exe $(bindir)]msgconv.exe
	$(INSTALL_PROGRAM) msgen.exe $(bindir)]msgen.exe
	$(INSTALL_PROGRAM) msgexec.exe $(bindir)]msgexec.exe
	$(INSTALL_PROGRAM) msgfilter.exe $(bindir)]msgfilter.exe
	$(INSTALL_PROGRAM) msggrep.exe $(bindir)]msggrep.exe
	$(INSTALL_PROGRAM) msginit.exe $(bindir)]msginit.exe
	$(INSTALL_PROGRAM) msguniq.exe $(bindir)]msguniq.exe
	$(INSTALL_PROGRAM) recode-sr-latin.exe $(bindir)]recode-sr-latin.exe
	create /directory $(datadir)]
	create /directory $(pkgdatadir)]
	$(INSTALL_DATA) msgunfmt.tcl $(pkgdatadir)]msgunfmt.tcl
	create /directory $(includedir)]
	$(INSTALL_DATA) gettext-po.h $(includedir)]gettext-po.h
	create /directory $(libdir)]
	$(INSTALL_DATA) gettextpo.olb $(libdir)]gettextpo.olb

installdirs :
	create /directory $(prefix)]
	create /directory $(exec_prefix)]
	create /directory $(datadir)]
	create /directory $(pkgdatadir)]
	create /directory $(includedir)]
	create /directory $(libdir)]

uninstall :
	$(RM) $(bindir)]msgcmp.exe;
	$(RM) $(bindir)]msgfmt.exe;
	$(RM) $(bindir)]msgmerge.exe;
	$(RM) $(bindir)]msgunfmt.exe;
	$(RM) $(bindir)]xgettext.exe;
	$(RM) $(bindir)]msgattrib.exe;
	$(RM) $(bindir)]msgcat.exe;
	$(RM) $(bindir)]msgcomm.exe;
	$(RM) $(bindir)]msgconv.exe;
	$(RM) $(bindir)]msgen.exe;
	$(RM) $(bindir)]msgexec.exe;
	$(RM) $(bindir)]msgfilter.exe;
	$(RM) $(bindir)]msggrep.exe;
	$(RM) $(bindir)]msginit.exe;
	$(RM) $(bindir)]msguniq.exe;
	$(RM) $(bindir)]recode-sr-latin.exe;
	$(RM) $(pkgdatadir)]msgunfmt.tcl;
	$(RM) $(includedir)]gettext-po.h
	$(RM) $(libdir)]gettextpo.olb

check : all
	write sys$output "Nothing else to be done for 'check'."

mostlyclean : clean
	write sys$output "Nothing else to be done for 'mostlyclean'."

clean :
	$(RM) *.obj;*
	$(RM) *.olb;*
	$(RM) *.exe;*

distclean : clean
	write sys$output "Nothing else to be done for 'distclean'."

maintainer-clean : distclean
	write sys$output "Nothing else to be done for 'maintainer-clean'."
