1 # -*- Makefile -*- for gettext-runtime/libasprintf on VMS using the MMS utility
3 #### Start of system configuration section. ####
5 # Directories used by "make install":
7 exec_prefix = $(prefix)
8 datadir = $(prefix).share
9 bindir = $(exec_prefix).bin
10 libdir = $(exec_prefix).lib
11 includedir = $(prefix).include
12 # For this subpackage only.
13 sub_docdir = $(datadir).doc.libasprintf
15 # Programs used by "make":
20 # These flags affect binary compatibility. GNU gettext does not need them,
21 # but other packages do, and we need to be binary compatible with them.
22 ABIFLAGS = /name=(as_is,short) /float=ieee
24 WARN_CFLAGS = /warning
26 OPTIMFLAGS = /optimize
28 CFLAGS = $(ABIFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS)
29 CXXFLAGS = $(ABIFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS)
30 DEFS = "VMS=1","HAVE_CONFIG_H=1"
32 INCLUDES = /include=([])
40 # Programs used by "make install":
42 INSTALL_PROGRAM = copy
45 #### End of system configuration section. ####
47 OBJECTS = lib-asprintf.obj,autosprintf.obj
49 all : autosprintf.h,asprintf.olb
50 write sys$output "Nothing else to be done for 'all'."
53 if f$search("autosprintf.h_in") .nes. "" then $(LN) autosprintf.h_in autosprintf.h
54 if f$search("autosprintf.h_in") .eqs. "" then $(LN) autosprintf.h.in autosprintf.h
56 config.h : config.h_vms
57 $(LN) config.h_vms config.h
60 $(LN) alloca_.h alloca.h
62 lib-asprintf.obj : lib-asprintf.c,config.h,printf-args.h,printf-args.c,printf-parse.h,printf-parse.c,alloca.h,vasnprintf.h,vasnprintf.c,asnprintf.c,vasprintf.h,vasprintf.c,asprintf.c
63 $(CC) $(INCLUDES) $(CFLAGS) /define=($(DEFS)) lib-asprintf.c
65 autosprintf.obj : autosprintf.cc,autosprintf.h,config.h,lib-asprintf.h
66 $(CXX) $(INCLUDES) $(CXXFLAGS) /define=($(DEFS)) autosprintf.cc
68 asprintf.olb : $(OBJECTS)
69 $(AR) $(AR_FLAGS) asprintf.olb $(OBJECTS)
72 create /directory $(prefix)]
73 create /directory $(includedir)]
74 $(INSTALL_DATA) autosprintf.h $(includedir)]autosprintf.h
75 create /directory $(exec_prefix)]
76 create /directory $(libdir)]
77 $(INSTALL_DATA) asprintf.olb $(libdir)]asprintf.olb
78 create /directory $(datadir)]
79 create /directory $(datadir).doc]
80 create /directory $(sub_docdir)]
81 $(INSTALL_DATA) [.doc]autosprintf_all.html $(sub_docdir)]autosprintf.html
84 create /directory $(prefix)]
85 create /directory $(includedir)]
86 create /directory $(exec_prefix)]
87 create /directory $(libdir)]
88 create /directory $(datadir)]
89 create /directory $(datadir).doc]
90 create /directory $(sub_docdir)]
93 $(RM) $(includedir)]autosprintf.h;
94 $(RM) $(libdir)]asprintf.olb;
95 $(RM) $(sub_docdir)]autosprintf.html;
98 write sys$output "Nothing else to be done for 'check'."
101 write sys$output "Nothing else to be done for 'mostlyclean'."
104 $(RM) autosprintf.h;*
111 write sys$output "Nothing else to be done for 'distclean'."
113 maintainer-clean : distclean
114 write sys$output "Nothing else to be done for 'maintainer-clean'."