# -------- MESSAGES.MAK --------
# Zinc Interface Library Version 2.0 makefile
# Borland C++ 2.0 using DOS or Microsoft Windows 3.0

# In order to use this makefile with the BORLAND compiler and linker 
# the configuration file TURBOC.CFG must contain the -I option telling
# where to find both the BORLAND include files and the ZINC include
# files; and the configuation files TLINK.CFG and TURBOC.CFG must both
# contain the -L option telling where to find the BORLAND libraries.
#
#   For example:
#      -Ic:\bc\include;c:\zinc\include;.
#      -Lc:\bc\lib;.
#
# Type the following to make MESSAGES.EXE
# make -fmessages.mak            ::: DOS
# make -DWINDOWS -fmessages.mak  ::: Windows (or change #WINDOWS= to WINDOWS= below)

### Program information. 
MODEL=l                                 ### Model CHANGE WITH CAUTION!!! 
#WINDOWS=                               ### Whether to generate windows .EXE 

### Zinc directory information
ZBIN_PATH=c:\zinc\bin                   ### Path of ZINC's utilities.
ZLIB_PATH=c:\zinc\lib                   ### Path of ZINC's libraries.
ZLIB_NAME=zill.lib                      ### Which ZINC library to use.

### Compiler information
COMPILER=bccx                           ### Which compiler to use.
LINKER=tlinkx                           ### Which linker to use.


# ----- Make options -----
.SWAP

!if !$d(WINDOWS)
# ----- DOS OPTIONS -----
# ----- Libraries to link.
STARTUP_OBJS=c0$(MODEL)
LIBRARIES=$(ZLIB_PATH)\$(ZLIB_NAME)+graphics+emu+math$(MODEL)+c$(MODEL)
# ----- Compile options-----
COPTS=-O -Z -V -w -m$(MODEL)
LOPTS=/c /x
RC=@rem
!else
# ----- WINDOWS OPTIONS -----
# ----- Libraries to link.
STARTUP_OBJS=c0w$(MODEL)
LIBRARIES=$(ZLIB_PATH)\windows\$(ZLIB_NAME)+cwin$(MODEL)+math$(MODEL)+c$(MODEL)+import
# ----- Compile options-----
COPTS=-O -Vf -WE -w -m$(MODEL)
LOPTS=/c /C /Twe /x
DEF=$*.def
RC=rc $*.rc $<
!endif


### ----- How to make the .EXE file.
messages.exe: messages.obj
	$(LINKER) $(LOPTS) @&&!
$(STARTUP_OBJS)+
messages
$*

$(LIBRARIES)
$(DEF)
!
	$(RC)

### ----- How to make dependant files.
.cpp.obj:
	$(COMPILER) $(COPTS) -c $*

.txt.hlh:
	$(ZBIN_PATH)\genhelp $*.txt
