# Makefile for 680x0 Linux m680x0 source directory
#
# Copyright 1993 by Hamish Macdonald
#
# This file is subject to the terms and conditions of the GNU General Public
# License.  See the file "README.legal" in the main directory of this archive
# for more details.

include ../MakeVars

OBJS	= machdep.o machasm.o sys_call.o traps.o ints.o math.o signal.o

arch.o: $(OBJS)
	$(LD) -r -o arch.o $(OBJS)

machasm.o sys_call.o: assyms.h

assyms.h: gensyms
	./gensyms > $@

gensyms: gensyms.c
	$(HOSTCC) $(HOSTFLAGS) -o $@ $<

clean:
	$(RM) $(RMFLAGS) *.o assyms.h gensyms

dep:
	$(CPP) -M $(INCFLAGS) *.c > .depend

#
# include a dependency file if one exists
#
ifeq (.depend,$(wildcard .depend))
include .depend
endif
