# Make file for Scintilla and Tide, Windows Visual C++ version
# Copyright 1998-1999 by Neil Hodgson <neilh@hare.net.au>
# The License.txt file describes the conditions under which this software may be distributed.
# This makefile is for using Visual C++ and nmake. 
# The main makefile uses mingw32 egcs and may be more current than this file.

CC      = cl
O		= obj
PROG	= Tide.EXE
PROGSTATIC = Tidy.EXE
COMPONENT = Scintilla.DLL
LDFLAGS = KERNEL32.lib USER32.lib GDI32.lib COMDLG32.lib WINMM.lib COMCTL32.lib ADVAPI32.lib
CPPFLAGS = /TP /MD /Ox 

OBJS	= Tide.$(O) KeyWords.$(O) PropSet.$(O)
OBJSSTATIC = Tidy.$(O) KeyWords.$(O) PropSet.$(O) ScintillaS.$(O) Document.$(O) CallTip.$(O)

ALL:	$(PROG) $(COMPONENT)

Tide.$(O): Tide.cc
	cl $(CPPFLAGS) /c $*.cc
Tidy.$(O): Tide.cc
	cl $(CPPFLAGS) /D STATIC_BUILD /c Tide.cc /FoTidy.$(O)
KeyWords.$(O):	KeyWords.cc
	cl $(CPPFLAGS) /c $*.cc
PropSet.$(O):	PropSet.cc
	cl $(CPPFLAGS) /c $*.cc
Scintilla.$(O):	Scintilla.cc
	cl $(CPPFLAGS) /c $*.cc
ScintillaS.$(O):	Scintilla.cc
	cl $(CPPFLAGS) /D STATIC_BUILD /c Scintilla.cc /FoScintillaS.$(O)
Document.$(O):	Document.cc
	cl $(CPPFLAGS) /c $*.cc
CallTip.$(O):	CallTip.cc
	cl $(CPPFLAGS) /c $*.cc

$(PROG): $(OBJS) TideRes.res
	$(CC) -o $(PROG) $(OBJS) TideRes.res $(LDFLAGS)

$(COMPONENT): Scintilla.$(O) Document.$(O) CallTip.$(O) ScintRes.res
	$(CC) /LD -o $(COMPONENT) Scintilla.$(O) Document.$(O) CallTip.$(O) ScintRes.res $(LDFLAGS)

$(PROGSTATIC): $(OBJSSTATIC) TideRes.res
	$(CC) -o $(PROGSTATIC) $(OBJSSTATIC) TideRes.res $(LDFLAGS)

TideRes.res:	TideRes.rc
	rc TideRes.rc

ScintRes.res:	ScintRes.rc
	rc ScintRes.rc
