# ****************************************************************************
# `DIVT' - Makefile for `divt' object
#   Written by Robert Riebisch
# ****************************************************************************

# necessary macros
!include "..\macros.mak"

# some basic error checking
!if !$d(AS) || !$d(ASFLAGS)
  !error Some necessary macros are not defined!
!endif

# define object
OBJECT = divt

# where to store files
.path.com = ..\..

# Note: Even complex Makefile dependencies can be generated with a simple
#       "nasm.exe -o example.com -M example.asm > depends"

# implicit rule(s) (now, e.g., `example.com' autodepends on `example.asm')
.asm.com:
  # assemble
  $(AS) -o$@ $(ASFLAGS) $<

# define an object and its dependencies
$(OBJECT).com:

clean:
  -del $(.path.com)\$(OBJECT).com
