# Makefile for 680x0 Linux kernel 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	= sched.o fork.o panic.o printk.o vsprintf.o sys.o module.o \
	  ksyms.o exit.o \
	  signal.o mktime.o ptrace.o itimer.o info.o ldt.o time.o

all: kernel.o

kernel.o: $(OBJS)
	$(LD) -r -o kernel.o $(OBJS)
	sync

#ksyms.lst: ksyms.S ../include/linux/autoconf.h
#	$(CPP) $(CFLAGS) $< > $@
#
#ksyms.s: ksyms.sh ksyms.lst
#	sh $< > $@

ksyms.o: ksyms.s

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

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