#***************************************************************************
# PROJECT  MusixTeX Preprocessor  
# TITLE    dos platform macros for Makefile
# FILE     Macros.dos
# AUTHOR   JCNieuwenhuizen
#          copyright (c) FlowerSoft 1995, 1997
#
#***************************************************************************

# version:
#
VERSION = 0.46
MS_VERSION = 0x46
#

# offending msdos backslash:
#
Z = \\
#


# install paths
#
DRIVE = e:# fast ram drive
MS_DISTDIR =$(NAME)-$(MS_VERSION)
DISTDIR = $(MS_DISTDIR)
rootdir = c:$(Z)msvc20$(Z)
#srcdir = .
prefix = $(Z)bin
exec_prefix = $(prefix)
#bindir = $(exec_prefix)/bin
libdir = $(exec_prefix)
#libdir = $(exec_prefix)/lib
#datadir = $(prefix)/lib
#mandir = $(prefix)/man
#infodir = $(prefix)/info
#includedir = $(prefix)/include
#docdir = $(datadir)/doc
#
#
# where executable and runtime data go
INSTALLDIR=$(HOME)/bin #$(libdir)
#

# prefixes:
#
# bad bad bad
#LIB = @LIB@
#

# suffixes:
#
BAT = .bat
EXE = .exe
ALIB = .lib 
#                              

# utilities:
#
SYSTEMID = ver
#SHELL = @SHELL@
CAT = type
CP = copy
DVIPS = @DVIPS@
LEX = flex
MDO = @MDO@
MPP = @MPP@
MV = ren
RM = del
RM = del
STRIP = echo #tdstrip
YACC = bison
#

## turbo compiler:
##
##CC = /tc/bin/tcc 
##CXX = $(CC) -P
##DEPEND = @DEPEND@ 
##

## compile switches:
##
## ml: large memory model (aargh!)
## o: object file name
## v: include debug info
## w+ wall: all warnings
## y: include line info
## Qx=: use extended memory
#CFLAGS = -ml -o$*.o -v -w+ -wall -y -I$(Z)tc$(Z)include -Qx=2048
#CXXFLAGS = $(CFLAGS)
#DEFINES = 
##

# compiler:
#
# c-compiler
CC = $(rootdir)bin$(Z)cl 
CXX = $(CC)
#
DEPEND = echo must remake $(NAME).dep 
INCLUDES = -I$(srcdir)
#

# compile switches:
#
CFLAGS = -nologo -Z7# debug info
CXXFLAGS = $(CFLAGS)
CCINPUT = -Tc
CXXINPUT = -Tp
DEFINES = -DNDEBUG -D__windhoos__
ONAME = $(SETONAME)$*.o
SETONAME = -Fo
#

## linker:
##
#LD = /tc/bin/tlink
#LD_COMMAND = @LD_COMMAND@
##

## link switches:
##
## c: case sensitive link
## d: warn for duplicate symbols
## l: source line numbers
## v: include debug info
## x: no map file
## yx: use extended memory
#LDFLAGS = /c/d/x/yx
##


LIBES = 
# make sure to set in environment (suckdos.bat):
# link=c:\msvc20\lib;c:\msvc20\stl\lib;c:\msvc20\mfc\lib/
LOADLIBES = ospace.lib nafxcw.lib
## turbo LOADLIBES = cl
#

# librarian:
#
AR = $(rootdir)$(Z)lib
#

# librarian switches:
#
ARFLAGS = 
#

# linker:
#
LD = $(CXX)
#

# link switches:
#
LDFLAGS = -Z7# debug info
#

# distribution:
#
# naming convention for zips:
#
# unix:
#  zips have extention .tar.gz
#
ARJ = $(MS_DISTDIR).arj
MS_ZIP = $(MS_DISTDIR).zap
UNIX_ZIP = $(MS_DISTDIR).zip
#
