#
# Makefile for Vkernel exception server, m68k version
#

VPATH=../mi

HEADERDIR= ../../../
HEADERS= ${HEADERDIR}libc/include/mi/Venviron.h \
    ${HEADERDIR}libc/include/m68k/Vexceptions.h
SOURCES= ../mi/exceptions.c
OBJECTS= exceptions.b

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

C68FLAGS = -DMC68000 -O -V -v${Xx} -I../mi

LIBS = 

# first, define the world of 68000s
.SUFFIXES: .b .ls .a68 .c

# how to compile a 68000 file
.c.b:
	cc68 $(C68FLAGS) -c $*.c 

# how to make an assembly file (Not deleting it or assembling it)
.c.s:
	cc68 $(C68FLAGS) -S $*.c

# how to make an assembly listing
.c.ls:
	cc68 $(C68FLAGS) -c -L $*.c

#END world of 68000's


# compile everything that needs it
libVexcept.a: $(OBJECTS)
	ar rc libVexcept.a exceptions.b


install: libVexcept.a
	$(NETINSTALL) libVexcept.a $(VSYS)/lib/m68k

$(OBJECTS): $(HEADERS)

clean:
	rm -f *.o *.b *.s *.ls *CKP *BAK .emacs* *.a
cleanbak:
	rm -f *CKP *BAK


relink:
	rm -f libVexcept.a
