#Buildtemplate for vax subdirectories

#include ../../buildprefix

OBJSUFFIX = o
MACHINE = vax
CC = ccVAX
VAX =
LINT = lintvax

# clear the suffix list to avoid extraneous file lookups
.SUFFIXES:
.SUFFIXES: .c .s .o

#ifndef VPATH
VPATH= ../mi
#endif

# Perhaps we should get rid of SPECINCLUDES and just use INCLUDES?
#ifndef SPECINCLUDES
SPECINCLUDES =
#endif
#ifndef INCLUDES
INCLUDES = -I$(VSOURCE)/libc/include/$(MACHINE) -I$(VSOURCE)/libc/include/mi
#endif

#ifndef LIBRARIES
LIBRARIES =
#endif

MIFLAGS = -O -v$(Xx)V
MDFLAGS =

# normal compile of a module
.c.o:
	$(CC) $(MIFLAGS) $(SPECINCLUDES) $(INCLUDES) -c $*.c 

# how to make an assembly file (Not deleting it or assembling it)
.c.s:
	$(CC) $(MIFLAGS) $(SPECINCLUDES) $(INCLUDES) -S $*.c

# how to make an assembly listing
.c.ls:
	$(CC) $(MIFLAGS) $(SPECINCLUDES) $(INCLUDES) -c -L $*.c
