1# -*- Makefile -*- for libiconv/src on VMS using the MMS utility 2 3#### Start of system configuration section. #### 4 5# Directories used by "make install": 6prefix = SYS$DATA:[ 7exec_prefix = $(prefix) 8bindir = $(exec_prefix).bin 9includedir = $(prefix).include 10datadir = $(prefix).share 11localedir = $(datadir).locale 12 13# Programs used by "make": 14 15CC = cc 16 17# These flags affect binary compatibility. GNU gettext does not need them, 18# but other packages do, and we need to be binary compatible with them. 19ABIFLAGS = /name=(as_is,short) /float=ieee 20 21WARN_CFLAGS = /warning 22 23OPTIMFLAGS = /optimize 24 25CFLAGS = $(ABIFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) 26DEFS = "VMS=1","ENABLE_NLS=1","LOCALEDIR=""$(localedir)]""" 27 28INCLUDES = /include=([],[-],[-.include],[-.srclib],[-.lib],$(includedir)]) 29 30RM = delete 31 32# Programs used by "make install": 33INSTALL = copy 34INSTALL_PROGRAM = copy 35INSTALL_DATA = copy 36 37#### End of system configuration section. #### 38 39all : iconv.exe 40 write sys$output "Nothing else to be done for 'all'." 41 42iconv.obj : iconv.c 43 $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS),"INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""") iconv.c 44 45iconv.exe : iconv.obj [-.srclib]icrt.olb [-.lib]iconv.olb 46 link /executable=iconv.exe iconv.obj,$(libdir)]intl.olb/lib,[-.srclib]icrt.olb/lib,[-.lib]iconv.olb/lib,[-.vms]link_options.opt 47 48install : all 49 create /directory $(prefix)] 50 create /directory $(exec_prefix)] 51 create /directory $(bindir)] 52 $(INSTALL_PROGRAM) iconv.exe $(bindir)]iconv.exe 53 54installdirs : 55 create /directory $(prefix)] 56 create /directory $(exec_prefix)] 57 create /directory $(bindir)] 58 59uninstall : 60 $(RM) $(bindir)]iconv.exe 61 62check : all 63 write sys$output "Nothing else to be done for 'check'." 64 65mostlyclean : clean 66 write sys$output "Nothing else to be done for 'mostlyclean'." 67 68clean : 69 $(RM) *.obj;* 70 $(RM) *.exe;* 71 72distclean : clean 73 write sys$output "Nothing else to be done for 'distclean'." 74 75maintainer-clean : distclean 76 write sys$output "Nothing else to be done for 'maintainer-clean'." 77