#
# Makefile  -  makefile for net boot initialization routines
#
# Copyright (C) 1995,1996 Gero Kuhlmann <gero@gkminix.han.de>
#
#  This program is free software; you can redistribute it and/or modify
#  it under the terms of the GNU General Public License as published by
#  the Free Software Foundation; either version 2 of the License, or
#  any later version.
#
#  This program is distributed in the hope that it will be useful,
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#  GNU General Public License for more details.
#
#  You should have received a copy of the GNU General Public License
#  along with this program; if not, write to the Free Software
#  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#


#
#  Include system dependent definitions:
#
include ../../config.mk


#
#  List of source and object files:
#
CSRCS	= main.c
ASRCS	= kernel.asm
OBJS	= main.obj kernel.obj
TARGET	= $(OBJS)

CHDRS	= ../public/minidos.h \
	  ../public/net.h \
	  ../public/arpa.h \
	  ../public/boot.h \
	  ../public/romlib.h \
	  ../../headers/general.h \
	  ../../headers/version.h

AHDRS	= ../../headers/asm/layout.inc \
	  ../../headers/asm/macros.inc \
	  ../../headers/asm/memory.inc \
	  ../../headers/asm/version.inc

#
#  Rules to create object files from source files:
#
.SUFFIXES:	.c .asm .obj .exe .lib

.c.obj: 
ifdef VERBOSE
	$(CC) -c $(CFLAGS) $(INICFL) $<
else
	$(CC) -c $(CFLAGS) $(INICFL) $< >NUL
endif

.asm.obj:
	$(ASM) $(AFLAGS) $(INIAFL) $< ;


#
#  Target rules. Note that assembler files cannot have their dependencies
#  created automatically, and therefore have to appear here.
#
all:		$(TARGET)

kernel.obj:	kernel.asm $(AHDRS)

main.obj:	main.c $(CHDRS)


#
#  Maintenance rules for cleaning up.
#
.PHONY:	clean

clean:
	-$(RM) *.obj
	-$(RM) *.lst
	-$(RM) *.map
	-$(RM) *.bak


dummy:

