# ****************************************************************************
# `SBMIX' - Makefile for `sbmix' object
#   Written by Robert Riebisch
# ****************************************************************************

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

# some basic error checking
!if !$d(PC) || !$d(PCFLAGS) || !$d(EP) || !$d(EPFLAGS) || !$d(EPOUT)
  !error Some necessary macros are not defined!
!endif

# define object
OBJECT = sbmix

# where to put the executable
.path.exe = ..\..

# implicit rules (now, e.g., `example.exe' autodepends on `example.pas')
.pas.exe:
  # compile
  $(PC) $(PCFLAGS) -E$(@D) $<

  # try to compress executable?
  !ifdef PACK
    -$(EP) $(EPFLAGS) $@ $(EPOUT)
  !endif

# define a target and its dependencies
$(OBJECT).exe:

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