#*      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 VISUALC to compile for Visual C: "nmake VISUALC=1"

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

# MSDEV directory: (for Visual C)
MSDEV = h:\msdev

!ifdef VISUALC
MIDASLIB=$(MIDASDIR)\lib\midasnt_visualc.lib
ADDLIBS=$(MSDEV)\lib\winmm.lib
!else
MIDASLIB=$(MIDASDIR)\lib\midasnt_watcom.lib
ADDLIBS=
!endif

# Compilers and options:

!ifdef VISUALC

CL = cl
CLOPTS = -W3 -YX -MT -nologo -O2 -G5 -D__VC32__ -I$(MIDASINCS)

!else

CL = wcl386
CLOPTS = -w3 -d__WC32__ -oneatx -s -bt=nt -i$(MIDASINCS)

!endif

all : miniplay.exe streamtest.exe

miniplay.exe : miniplay.c $(MIDASLIB)
        $(CL) $(CLOPTS) miniplay.c $(MIDASLIB) $(ADDLIBS)

streamtest.exe : streamtest.c $(MIDASLIB)
        $(CL) $(CLOPTS) streamtest.c $(MIDASLIB) $(ADDLIBS)
