#This is the buidltemplate for all the m68k subdirectories.
#
# Written by Omur Tasar and Jay Schuster
#
# How to generate m68k object files.

MACHINE = m68k
OBJSUFFIX = b

#ifndef VPATH
VPATH = ../mi
#endif

# must be before buildmachtemplate
LINT = lint68

.SUFFIXES:
.SUFFIXES: .$(OBJSUFFIX) .c .s

MI = ../mi

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

C68FLAGS = -O -v$(Xx)V -D$(Xx)V

RULE = cc68 $(C68FLAGS) $(INCLUDES)


# how to make a .b file from a .c file for machine dependent files
.c.b:
	cc68 $(C68FLAGS) $(INCLUDES) -c $*.c

# how to make a .b file from a .s file for machine dependent files
.s.b:
	cc68 $(C68FLAGS) -c $*.s
