summaryrefslogtreecommitdiff
path: root/mk/VMS.mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk/VMS.mk')
-rw-r--r--mk/VMS.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/mk/VMS.mk b/mk/VMS.mk
index fcce24c6..1fbc858b 100644
--- a/mk/VMS.mk
+++ b/mk/VMS.mk
@@ -19,7 +19,7 @@
# this program. If not, see <http://www.gnu.org/licenses/>.
src = [.src]
-glob = [.glob]
+lib = [.lib]
SRCDIR = []
OBJEXT = .obj
@@ -46,7 +46,7 @@ endif
extra_CPPFLAGS = /define=($(subst $s,$c,$(patsubst %,"%",$(defs))))
-cinclude = /nested=none/include=($(src),$(glob))
+cinclude = /nested=none/include=($(src),$(lib))
ifeq ($(CC),cc)
cprefix = /prefix=(all,except=(glob,globfree))
cwarn = /standard=relaxed/warn=(disable=questcompare)
@@ -71,8 +71,14 @@ endif
# uncomment this
#ALLOCA = $(alloca_SOURCES)
+# If your system doesn't have alloca.h, or the one provided is bad,
+# uncomment this
+#BUILT_SOURCES += $(lib)alloca.h
+
prog_SOURCES += $(ALLOCA) $(glob_SOURCES) $(vms_SOURCES)
+BUILT_SOURCES += $(lib)fnmatch.h $(lib)glob.h
+
COMPILE.cmd = $(CC) $(extra_CFLAGS)$(CFLAGS)/obj=$@ $(extra_CPPFLAGS)$(CPPFLAGS) $<
LINK.cmd = $(LD)$(extra_LDFLAGS)$(LDFLAGS)/exe=$@ $(subst $s,$c,$^)$(LDLIBS)