# MAKEFILE for Borland Version of Jeffery Richter's CRITSECS example
# from his book "Advanced Windows", MS Press, 1995
#
# George Cross, Borland C++ Developer Support 
# July 1996
#
# Comments:  BUILTINS.MAK is called and used first.  All implicit rules are
#            contained therein. BCC32.CFG, TLINK.CFG are used for include
#            and lib directories.  PATH is used to find BCC32. 
#
#            Built with BC++ 5.02
# 
#    MAKE -DWIN32

.autodepend
.cacheautodepend

PROJ = CRITSECS

OBJS  = $(PROJ).obj
RESES = $(PROJ).res

CDEFINES = -DSTRICT -DWIN32_LEAN_AND_MEAN -DUNICODE 
CFLAGS = $(CDEFINES) $(CFLAGS)                    #Compile options
LFLAGS = /Tpe /aa /c /x                           #Link options

!if "$(DEBUG)" == "1"                             #Debug info included or not..
  CFLAGS = $(CFLAGS) -v
  LFLAGS = $(LFLAGS) /v
!endif

$(PROJ).exe: $(OBJS) $(RESES)                     #Target
	TLINK32 $(LFLAGS) @&&|
	c0w32 $(OBJS)                             #Startup and objs
	$&
                                                  #Map
        cw32mt import32                           #Libs
                                                  #Def
        $(RESES)                                  #Res
|

