📄 makedll.vc6
字号:
# Makefile.vc6 - for tidy - HTML parser and pretty printer
# For use with Microsoft's Visual C++ 6 nmake tool
#
# CVS Info :
#
# $Author: arnaud02 $
# $Date: 2005/08/17 09:50:18 $
# $Revision: 1.4 $
#
# Copyright (c) 1998-2005 World Wide Web Consortium
# (Massachusetts Institute of Technology, European Research
# Consortium for Informatics and Mathematics, Keio University).
# All Rights Reserved.
#
# Contributing Author(s):
#
# Dave Raggett <dsr@w3.org>
# Terry Teague <terry_teague@users.sourceforge.net>
# Mark Hale <m.j.hale@durham.ac.uk>
# Philippe Lhoste <PhiLho@GMX.net>
#
# The contributing author(s) would like to thank all those who
# helped with testing, bug fixes, and patience. This wouldn't
# have been possible without all of you.
#
# COPYRIGHT NOTICE:
#
# This software and documentation is provided "as is," and
# the copyright holders and contributing author(s) make no
# representations or warranties, express or implied, including
# but not limited to, warranties of merchantability or fitness
# for any particular purpose or that the use of the software or
# documentation will not infringe any third party patents,
# copyrights, trademarks or other rights.
#
# The copyright holders and contributing author(s) will not be
# liable for any direct, indirect, special or consequential damages
# arising out of any use of the software or documentation, even if
# advised of the possibility of such damage.
#
# Permission is hereby granted to use, copy, modify, and distribute
# this source code, or portions hereof, documentation and executables,
# for any purpose, without fee, subject to the following restrictions:
#
# 1. The origin of this source code must not be misrepresented.
# 2. Altered versions must be plainly marked as such and must
# not be misrepresented as being the original source.
# 3. This Copyright notice may not be removed or altered from any
# source or altered source distribution.
#
# The copyright holders and contributing author(s) specifically
# permit, without fee, and encourage the use of this source code
# as a component for supporting the Hypertext Markup Language in
# commercial products. If you use this source code in a product,
# acknowledgment is not required but would be appreciated.
#
# Usage:
# nmake -f Makefile.vc6
# or
# nmake -f Makefile.vc6 DEBUG=1
CC=cl
RC=rc
LD=link
TOPDIR=..\..
BINDIR=$(TOPDIR)\bin
INCLDIR=$(TOPDIR)\include\
SRCDIR=$(TOPDIR)\src\
APPDIR=$(TOPDIR)\console\
TIDYEXT=/D SUPPORT_ACCESSIBILITY_CHECKS=1 /D SUPPORT_UTF16_ENCODINGS=1 /D SUPPORT_ASIAN_ENCODINGS=1
## General flags for compilation
# /W4 Sets warning level 4 (max)
# /Za Disables Microsoft extensions (aka ANSI)
# /FD Generate file dependencies
# /c Compiles without linking
# /MD Use DLL version of multi-threaded C runtime library
# /MDd Uses debug DLL version of multi-threaded CRT.
# /MT Use statically linked, multi-threaded C runtime library
# /MTd Uses debug version of statically linked, multi-threaded CRT.
# In the following, replace /D "_CONSOLE" by /D "_WINDOWS" for Windows programs
CFLAGS=/nologo /TC /W4 /FD /c /D "WIN32" /D "_MBCS" $(TIDYEXT) /I $(INCLDIR)
## Additional flags for debug compilation
# /Gm Enables minimal rebuild
# /GZ Catch release-build errors in debug build
# /Zi Generates complete debugging information
# /Od Disables optimization
CDEBUG=/Gm /GZ /Zi /Od /MD /D "DEBUG" /D "_DEBUG"
## Additional flags for release compilation
# /O1 Creates small code
# /O2 Creates fast code
# /Ox Uses maximum optimization (/Ob1gity /Gs)
CNDEBUG=/Ox /MD /D "NDEBUG"
NAMEFLAG=/Fo
## General flags for link
LDFLAGS= /nologo /machine:I386 /libpath:"."
LIBFLAGS= /DLL /IMPLIB:$(OBJDIR)/libtidy.lib /SUBSYSTEM:WINDOWS
## Additional flags for debug link
LDDEBUG=/debug /pdbtype:sept /nodefaultlib:LIBC
## Additional flags for release link
LDNDEBUG=/opt:nowin98 /opt:ref /pdb:none
#LIBS=KERNEL32.lib USER32.lib GDI32.lib COMDLG32.lib COMCTL32.lib ADVAPI32.lib IMM32.lib SHELL32.LIB OLE32.LIB
LIBS=
DEBUGLIBS=
!IFDEF DEBUG
CFLAGS=$(CFLAGS) $(CDEBUG)
LDFLAGS=$(LDFLAGS) $(LDDEBUG)
OBJDIR= .\debugDLL
DLLFLAG=/LDd /D _USRDLL
!ELSE
CFLAGS=$(CFLAGS) $(CNDEBUG)
LDFLAGS=$(LDFLAGS) $(LDNDEBUG)
OBJDIR= .\releaseDLL
DLLFLAG=/LD /D _USRDLL
!ENDIF
OBJFILES=$(OBJDIR)\access.obj $(OBJDIR)\attrs.obj $(OBJDIR)\istack.obj\
$(OBJDIR)\parser.obj $(OBJDIR)\tags.obj $(OBJDIR)\entities.obj\
$(OBJDIR)\lexer.obj $(OBJDIR)\pprint.obj $(OBJDIR)\clean.obj\
$(OBJDIR)\localize.obj $(OBJDIR)\config.obj $(OBJDIR)\alloc.obj\
$(OBJDIR)\attrask.obj $(OBJDIR)\attrget.obj $(OBJDIR)\buffio.obj\
$(OBJDIR)\tagask.obj $(OBJDIR)\fileio.obj $(OBJDIR)\streamio.obj\
$(OBJDIR)\tmbstr.obj $(OBJDIR)\utf8.obj $(OBJDIR)\tidylib.obj\
$(OBJDIR)\attrdict.obj
CFILES= $(SRCDIR)access.c $(SRCDIR)attrs.c $(SRCDIR)istack.c \
$(SRCDIR)parser.c $(SRCDIR)tags.c $(SRCDIR)entities.c \
$(SRCDIR)lexer.c $(SRCDIR)pprint.c $(SRCDIR)clean.c \
$(SRCDIR)localize.c $(SRCDIR)config.c $(SRCDIR)alloc.c \
$(SRCDIR)attrask.c $(SRCDIR)attrget.c $(SRCDIR)buffio.c \
$(SRCDIR)tagask.c $(SRCDIR)fileio.c $(SRCDIR)streamio.c\
$(SRCDIR)tmbstr.c $(SRCDIR)utf8.c $(SRCDIR)tidylib.c\
+ $(SRCDIR)\attrdict.c
HFILES= $(INCLDIR)platform.h $(INCLDIR)buffio.h \
$(INCLDIR)fileio.h $(INCLDIR)tidy.h $(INCLDIR)tidyenum.h
LIBHFILES= \
$(SRCDIR)access.h \
$(SRCDIR)attrdict.h $(SRCDIR)attrs.h $(SRCDIR)clean.h \
$(SRCDIR)config.h $(SRCDIR)entities.h \
$(SRCDIR)forward.h $(SRCDIR)lexer.h $(SRCDIR)message.h \
$(SRCDIR)parser.h $(SRCDIR)pprint.h $(SRCDIR)streamio.h \
$(SRCDIR)tags.h \
$(SRCDIR)tmbstr.h $(SRCDIR)utf8.h $(SRCDIR)tidy-int.h
all: $(BINDIR)\libtidy.dll $(BINDIR)\tidy.exe
$(OBJDIR) :
if not exist $(OBJDIR) md $(OBJDIR)
$(BINDIR) :
if not exist $(BINDIR) md $(BINDIR)
$(BINDIR)\libtidy.dll: $(OBJFILES) $(BINDIR)
$(LD) $(LIBFLAGS) $(OBJFILES) /OUT:$(BINDIR)\libtidy.dll
$(BINDIR)\tidy.exe: $(APPDIR)tidy.c $(HFILES) $(BINDIR)\libtidy.dll MakeDLL.vc6
$(CC) /D "_CONSOLE" $(CFLAGS) $(APPDIR)tidy.c $(NAMEFLAG)$(OBJDIR)\
$(LD) /subsystem:console $(LDFLAGS) $(OBJDIR)\tidy.obj $(LIBS) $(OBJDIR)\libtidy.lib /OUT:$(BINDIR)\tidy.exe
$(OBJFILES): $(HFILES) $(LIBHFILES) $(CFILES) MakeDLL.vc6 $(OBJDIR)
$(CC) -c $(DLLFLAG) $(CFLAGS) $(CFILES) $(NAMEFLAG)$(OBJDIR)\
clean:
del $(OBJFILES) $(OBJDIR)\*.* $(BINDIR)\*.*
rd $(OBJDIR)
rd $(BINDIR)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -