#  Makefile for CoreLoad, Copyright 2000 (c) by Claudio Jeker,
#   Swiss Federal Institute of Technology,
#   Computer Engineering and Networks Laboratory.
#
#   TOPSY -- A Teachable Operating System.
#            Implementation of a tiny and simple
#            micro kernel for teaching purposes.
#
#   For further information, please visit http://www.tik.ee.ethz.ch/~topsy
#
#   This software is provided under the terms of the GNU General Public Licence.
#   A full copy of the GNU GPL is provided in the file COPYING found in the 
#   development root of Topsy.
#
#       
#       File:                  $Source: /home/ruf/cvs_Topsy/cvs/Topsy/Boot/ia32/LowCore/CoreLoad/Makefile,v $
#       Author(s):             
#       Affiliation:           ETH Zuerich, TIK
#       Version:               $Revision: 3012 $
#       Creation Date:         
#       Last Date of Change:   $Date: 2007-04-20 22:22:13 +0200 (Fre, 20 Apr 2007) $      by: $Author: sryffel $
#       
#       
#       $Log: Makefile,v $
#       Revision 1.8  2000/12/13 10:23:22  cjeker
#       *** empty log message ***
#
#       Revision 1.7  2000/12/11 12:13:16  blutz
#       Cleaned up and moved some NetBoot fiiles
#
#       Revision 1.6  2000/12/03 17:43:58  cjeker
#       modified Makefiles to support OpenBSD
#
#

################################################################################
# machine dependent subdirectories for each module and folder for object files
ARCH=ia32
PLATFORM=linux

FILES = a20gate.inc coredisk.inc coreload.asm coreload.inc coreload.msg
FILES+= corescrn.inc creatgdt.inc makefile.dos maskirq.inc pm_swtch.inc
FILES+= rm_load.inc rmreboot.inc structur.inc verify.inc waitkey.inc

# make procedures for the outside
all: clean CoreLoad.bin

# host platform (Filename Platform.ARCH.PLATFORM)
include ../../../../Makefiles/Platform.$(ARCH).$(PLATFORM)


CoreLoad.bin: $(FILES)
	cat coreload.asm | $(LCC) -E $(NETBOOT) - | \
	$(AS86) -0 -b CoreLoad.bin -l CoreLoad.list -s CoreLoad.symbol -

clean:
	rm -f CoreLoad.*

CoreLoad.src: CoreLoad.bin
	objdump -D  -s -b binary -m i386 -M i386,att,addr16,data16 CoreLoad.bin > CoreLoad.src
