#***************************************************************************
# PROJECT  MusixTeX Preprocessor  
# TITLE    msvc platform macros for Makefile
# FILE     config/msvc/Makefile
# AUTHOR   JCNieuwenhuizen
#          copyright (c) FlowerSoft 1995, 1996, 1997
#
#***************************************************************************

# version and release:
#
RELEASE = $(VERSION)x$(SUBVERSION)
RELEASENAME = $(NAME)-$(RELEASE)
MS_RELEASE = $(RELEASE)
MS_RELEASENAME = $(RELEASENAME)
#

# platform dependent dir separator
#
Z = \\
#


# install paths
#
DRIVE = e:# fast ram drive
DISTDIR = $(MS_RELEASENAME)
MS_DISTDIR = $(DISTDIR)
#rootdir = c:/msvc20
rootdir = c:/msdev
#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:
#
LIBLIB =
#

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

# utilities:
#
# set by configur.bat
#SYSTEMID = $(shell ver)
#SHELL = @SHELL@
CAT = type
CP = copy
DVIPS = @DVIPS@
LEX = flex
LN = copy
MDO = @MDO@
MPP = @MPP@
MV = ren
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/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
LOADLIBES =
## turbo LOADLIBES = cl
#

# librarian:
#
AR = $(rootdir)/bin/lib
#

# librarian switches:
#
ARFLAGS = 
#

# linker:
#
LD = $(CXX)
#

# link switches:
#
LDFLAGS = -Z7# debug info
LD_COMMAND = $(LD) $(LDFLAGS) -o $@ @$(NAME).ol
#

# distribution:
#
for_i_in = for %i in (
do_cp_i = ) do $(CP) %i
do_make_i = ) do $(MAKE) -C %i
done =
MS_ZIP = $(MS_DISTDIR).zip
TAR = $(DISTDIR).tar
ZIP = $(DISTDIR).taz
#
