# This is a buildtemplate for all buildfiles under /xV/libc/*/unix
#
# Written by Omur Tasar and Jay Schuster
#
# How to generate unix object files.

MACHINE = unix
OBJSUFFIX = o
VPATH= ../osi ../mi
.SUFFIXES: .$(OBJSUFFIX) .c .s

# must be before machtemplate, added 1/86. mas.
LINT = lint

MI = ../mi

#include ../../buildprefix
#include ../buildmachtemplate

#ifdef X
CFLAGS = -O -DVAX -DxV
#else X
CFLAGS = -O -DVAX
#endif X

RULE = cc $(CFLAGS) $(INCLUDES)


# how to make a .o file from a .c file for machine dependent files
.c.o:
	cc $(CFLAGS) $(INCLUDES) -c $*.c

# how to make a .o file from a .s file for machine dependent files
.s.o:
	cc $(CFLAGS) -c $*.s

# the ../..'s are there because this file is actually included further down
# in the directory tree.

