#*      gmfiles.mak
#*
#* Make script for MIDAS Sound System GM file support
#*
#* Copyright 1996 Petteri Kangaslampi and Jarno Paananen
#*
#* This file is part of the MIDAS Sound System, and may only be
#* used, modified and distributed under the terms of the MIDAS
#* Sound System license, LICENSE.TXT. By continuing to use,
#* modify or distribute this file you indicate that you have
#* read the license and understand and accept it fully.
#*

#define __NT__ to compile for NT: "wmake -u __NT__=1"

# MIDAS Sound System directory:
MIDASDIR=..\..
MIDASINCS=$(MIDASDIR)\src

!ifdef __NT__
MIDASLIB=$(MIDASDIR)\lib\midasnt_watcom.lib
!else
MIDASLIB=$(MIDASDIR)\lib\midasdos.lib
!endif

# Compilers and options:

CL = wcl386
!ifdef __NT__
CLOPTS = -w3 -zdp -zu -d__WC32__ -oneatx -s -bt=nt -i$(MIDASINCS)
!else
CLOPTS = -w3 -zdp -zu -d__WC32__ -oneatx -s -bt=dos -i$(MIDASINCS)
!endif
ASM = tasm
ASMOPTS = -UT310 -p -ml -m9 -d__WC32__ -i$(MIDASINCS)

all : mod2gm.exe playgm.exe

mod2gm.exe : mod2gm.c $(MIDASLIB)
        $(CL) $(CLOPTS) mod2gm.c $(MIDASLIB)

playgm.exe : playgm.c $(MIDASLIB)
        $(CL) $(CLOPTS) playgm.c $(MIDASLIB)
