#################################################################
#   Module:  PlayList
#  Purpose:  Build Playlist
#
#         :  Compile Playlist
#         :
#   Author:  Bob Chernow 76711,635
#     Date:  9/14/95
#Revisions:
#   Date    By    Description
# -------- ----- ------------------------------------------------
#
#################################################################

INCS=a:\pal\src\inc;A:\TC\INC;

LIBS=a:\tc\lib;a:\pal\libs;

CC = TCC.EXE

LINK = TLINK.EXE


#################################################################
# Compiler switches
#
#  -c       compile only
#  -ms      compile in small model (DS=SS)
#  -v       Debug Info
#  -I       directories for each include path
#  -1       Generate 80186 instructions
#  /nologo  Do not display signon logo


!if $d(DEBUG)
CFLAGS = -1 -c -v -ms -I$(INCS)
!else
CFLAGS = -1 -c    -ms -I$(INCS)
!endif

#################################################################


#################################################################
# Linker switches
#
#  /v     TD debug info

!if $d(DEBUG)
LFLAGS = /v
!else
LFLAGS =
!endif

LLIBS  = A:\pal\libs\TCSPAL.LIB


#################################################################
# Dependencies

all: playlist.exe

playlist.obj: playlist.c \pal\src\inc\pal.h

cleand:
    make clean
    make -DDEBUG

#################################################################
# EXE production

.c.obj:
    $(CC) $(CFLAGS) $<

playlist.exe: playlist.obj
    $(LINK) $(LFLAGS) @playlist.lnk

#################################################################
# Handy way to ensure complete rebuild
#################################################################

clean:
	- command /c erase *.obj
	- command /c erase *.exe
	- command /c erase *.err
	- command /c erase *.map
    - command /c erase *.bak
