###########################################################################
#                                                                         #
# MAKE FILE FOR DRGTHRND.EXE                                              #
#                                                                         #
# NOTES:                                                                  #
#                                                                         #
#  To enable the C Set/2 memory management debugging code, uncomment the  #
#  DEBUGALLOC macro. The debugging info will be sent to DRGTHRND.DBG.     #
#                                                                         #
# HISTORY:                                                                #
#                                                                         #
#  07-16-93 - started coding.                                             #
#                                                                         #
#  Rick Fishman                                                           #
#  Code Blazers, Inc.                                                     #
#  4113 Apricot                                                           #
#  Irvine, CA. 92720                                                      #
#  CIS ID: 72251,750                                                      #
#                                                                         #
###########################################################################

#DEBUGALLOC=-D__DEBUG_ALLOC__

BASE=drgthrnd

CFLAGS=/Q+ /Ss /W3 /Kbcepr /Gm+ /Gd- /Ti+ /O- $(DEBUGALLOC) /C
LFLAGS=/NOI /NOE /MAP /DE /NOL /A:16 /EXEPACK /BASE:0x10000

.SUFFIXES: .c

.c.obj:
    icc $(CFLAGS) $*.c

OFILES=$(BASE).obj dbaccess.obj drag.obj srcrendr.obj trgrendr.obj

LFILES=$(OFILES:.obj=)

$(BASE).exe: $(OFILES) $(BASE).res $(BASE).def
    link386 $(LFLAGS) $(LFILES),,, os2386, $*
    rc $*.res $@

$(BASE).res: $(BASE).rc $(BASE).h makefile dragme.ico openme.ico
    rc -r $*

$(BASE).obj:  $(BASE).c $(BASE).h makefile
dbaccess.obj: dbaccess.c $(BASE).h makefile
drag.obj:     drag.c $(BASE).h makefile
srcrendr.obj: srcrendr.c $(BASE).h makefile
trgrendr.obj: trgrendr.c $(BASE).h makefile

###########################################################################
#                       E N D   O F   S O U R C E                         #
###########################################################################
