#  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 
#  (at your option) 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.

# Makefile for noise.sys

ASM = tasm
AOPT =

LINK = tlink
LOPT = /k

MBIN = exe2bin

.c.obj:
  $(CC) $(COPT) $(CINC) $&.c

.asm.obj:
  $(ASM) $(AOPT) $&.asm

.obj.exe:
  $(LINK) $(LOPT) $&.obj

.exe.sys:
  $(MBIN) $&.exe $&.sys

# (Will the above line work for execom also?)

noise.sys: noise.obj

noise.obj: noise.asm noise.mac \
           cpuid.inc \
           polynom2.inc sha.inc

# if using polynom.inc be sure to change the dependencies!

#sample.com: sample.c
#  $(CC) $(COPT) -I$(CINC) -L$(CLIB)  $&.c
#  $(LINK) $(LOPT) /L$(CLIB) 
#  $(MBIN) $&.exe $&.com

clean:
  erase noise.exe
  erase noise.obj
  erase noise.map
