###############################################################################
# $Header:$
###############################################################################
#
# Makefile - Sim68000 Makefile
#
# Bradford W. Mott
# July 3,1994
#
###############################################################################
# $Log:$
###############################################################################

LIBRARY = libcpu.a

## List of object files that need to be made
OBJS = m68000.o decode.o exec.o

all: $(LIBRARY)

install:

$(LIBRARY): $(OBJS)
	$(AR) $(AR_CREATE_FLAGS) $(LIBRARY) $(OBJS)
	$(RANLIB) $(LIBRARY)

decode.o: m68000DecodeTable.hxx

instruction: instruction.c
	$(CC) $(INCLUDES) -o instruction instruction.c $(LIBS)

m68000DecodeTable.hxx: instruction instruction.list
	instruction  

clean:
	rm -f *.o $(LIBRARY) instruction


.SUFFIXES: .cxx .a

.cxx.o:
	$(CC) $(INCLUDES) -c $(CPPFLAGS) $*.cxx


