1# -*- Makefile -*- for libcharset/lib 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 9libdir = $(exec_prefix).lib 10 11# Programs used by "make": 12 13CC = cc 14 15# These flags affect binary compatibility. GNU gettext does not need them, 16# but other packages do, and we need to be binary compatible with them. 17ABIFLAGS = /name=(as_is,short) /float=ieee 18 19WARN_CFLAGS = /warning 20 21OPTIMFLAGS = /optimize 22 23CFLAGS = $(ABIFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) 24DEFS = "VMS=1","HAVE_CONFIG_H=1","ENABLE_RELOCATABLE=1","IN_LIBRARY=1","INSTALLPREFIX=""$(prefix)]""","INSTALLDIR=""$(bindir)]""","NO_XMALLOC=1","set_relocation_prefix=libcharset_set_relocation_prefix","relocate=libcharset_relocate" 25 26INCLUDES = /include=([],[-],[-.include]) 27 28AR = library 29AR_FLAGS = /create 30 31LN = copy 32RM = delete 33 34# Programs used by "make install": 35INSTALL = copy 36INSTALL_PROGRAM = copy 37INSTALL_DATA = copy 38 39#### End of system configuration section. #### 40 41OBJECTS = localcharset.obj,relocatable.obj 42 43all : charset.olb 44 write sys$output "Nothing else to be done for 'all'." 45 46localcharset.obj : localcharset.c 47 $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) localcharset.c 48 49relocatable.obj : relocatable.c 50 $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) relocatable.c 51 52charset.olb : $(OBJECTS) 53 $(AR) $(AR_FLAGS) charset.olb $(OBJECTS) 54 55install : all 56 create /directory $(prefix)] 57 create /directory $(exec_prefix)] 58 create /directory $(libdir)] 59 $(INSTALL_DATA) charset.olb $(libdir)]charset.olb 60 61installdirs : 62 create /directory $(prefix)] 63 create /directory $(exec_prefix)] 64 create /directory $(libdir)] 65 66uninstall : 67 $(RM) $(libdir)]charset.olb 68 69check : all 70 write sys$output "Nothing else to be done for 'check'." 71 72mostlyclean : clean 73 write sys$output "Nothing else to be done for 'mostlyclean'." 74 75clean : 76 $(RM) *.obj;* 77 $(RM) *.olb;* 78 79distclean : clean 80 write sys$output "Nothing else to be done for 'distclean'." 81 82maintainer-clean : distclean 83 write sys$output "Nothing else to be done for 'maintainer-clean'." 84