1
# Makefile.nmake - for tidy - HTML parser and pretty printer
2
# For use with IBM nmake tool
6
# $Author: terry_teague $
7
# $Date: 2002/02/03 01:51:03 $
10
# Copyright (c) 1998-2002 World Wide Web Consortium
11
# (Massachusetts Institute of Technology, Institut National de
12
# Recherche en Informatique et en Automatique, Keio University).
13
# All Rights Reserved.
15
# Contributing Author(s):
17
# Dave Raggett <dsr@w3.org>
18
# Terry Teague <terry_teague@users.sourceforge.net>
19
# Mark Hale <m.j.hale@durham.ac.uk>
21
# The contributing author(s) would like to thank all those who
22
# helped with testing, bug fixes, and patience. This wouldn't
23
# have been possible without all of you.
27
# This software and documentation is provided "as is," and
28
# the copyright holders and contributing author(s) make no
29
# representations or warranties, express or implied, including
30
# but not limited to, warranties of merchantability or fitness
31
# for any particular purpose or that the use of the software or
32
# documentation will not infringe any third party patents,
33
# copyrights, trademarks or other rights.
35
# The copyright holders and contributing author(s) will not be
36
# liable for any direct, indirect, special or consequential damages
37
# arising out of any use of the software or documentation, even if
38
# advised of the possibility of such damage.
40
# Permission is hereby granted to use, copy, modify, and distribute
41
# this source code, or portions hereof, documentation and executables,
42
# for any purpose, without fee, subject to the following restrictions:
44
# 1. The origin of this source code must not be misrepresented.
45
# 2. Altered versions must be plainly marked as such and must
46
# not be misrepresented as being the original source.
47
# 3. This Copyright notice may not be removed or altered from any
48
# source or altered source distribution.
50
# The copyright holders and contributing author(s) specifically
51
# permit, without fee, and encourage the use of this source code
52
# as a component for supporting the Hypertext Markup Language in
53
# commercial products. If you use this source code in a product,
54
# acknowledgment is not required but would be appreciated.
64
CFLAGS= /I $(INCLDIR) /I $(CPPMAIN)\include\sys
65
OTHERCFLAGS= /Ss /G5 /O+
69
OBJFILES= $(OBJDIR)attrs.obj $(OBJDIR)istack.obj $(OBJDIR)parser.obj $(OBJDIR)tags.obj \
70
$(OBJDIR)entities.obj $(OBJDIR)lexer.obj $(OBJDIR)pprint.obj $(OBJDIR)clean.obj \
71
$(OBJDIR)localize.obj $(OBJDIR)config.obj $(OBJDIR)tidy.obj
73
CFILES= $(SRCDIR)attrs.c $(SRCDIR)istack.c $(SRCDIR)parser.c $(SRCDIR)tags.c \
74
$(SRCDIR)entities.c $(SRCDIR)lexer.c $(SRCDIR)pprint.c $(SRCDIR)clean.c \
75
$(SRCDIR)localize.c $(SRCDIR)config.c $(SRCDIR)tidy.c
77
HFILES= $(INCLDIR)platform.h $(INCLDIR)html.h
80
$(CC) $(CFLAGS) $(OTHERCFLAGS) /Fetidy.exe $(OBJFILES) $(LIBS)
82
$(OBJFILES): $(HFILES) Makefile.IBM
83
$(CC) $(CFLAGS) $(OTHERCFLAGS) $(SRCDIR)$*.c -c
85
tab2space.exe: $(SRCDIR)tab2space.c
86
$(CC) $(CFLAGS) $(OTHERCFLAGS) /Fetab2space.exe $(SRCDIR)tab2space.c $(LIBS)
88
all: tidy.exe tab2space.exe
91
@$(MAKE) CFLAGS='$(CFLAGS) $(DEBUGFLAGS)' LIBS='$(LIBS) $(DEBUGLIBS)' all
94
del $(OBJFILES) tab2space.obj tidy.exe tab2space.exe