libexpat/expat/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

1997-12-10 02:33:23 -05:00
CC=gcc
1999-03-07 20:20:37 -05:00
# If you know what your system's byte order is, define XML_BYTE_ORDER:
# use -DXML_BYTE_ORDER=12 for little-endian byte order;
# use -DXML_BYTE_ORDER=21 for big-endian (network) byte order.
1998-11-24 02:12:19 -05:00
# -DXML_NS adds support for checking of lexical aspects of XML namespaces spec
1998-12-30 21:52:20 -05:00
# -DXML_MIN_SIZE makes a smaller but slower parser
1999-06-26 07:45:01 -04:00
# -DXML_DTD adds full support for parsing DTDs
CFLAGS=-O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD
1997-12-10 02:33:23 -05:00
# Use one of the next two lines; unixfilemap is better if it works.
FILEMAP_OBJ=xmlwf/unixfilemap.o
#FILEMAP_OBJ=xmlwf/readfilemap.o
1998-03-28 13:58:38 -05:00
OBJS=xmltok/xmltok.o \
xmltok/xmlrole.o \
1997-12-10 02:33:23 -05:00
xmlwf/xmlwf.o \
xmlwf/xmlfile.o \
1998-06-01 09:02:06 -04:00
xmlwf/codepage.o \
1998-02-04 02:23:16 -05:00
xmlparse/xmlparse.o \
xmlparse/hashtable.o \
1997-12-10 02:33:23 -05:00
$(FILEMAP_OBJ)
EXE=
1998-02-04 02:23:16 -05:00
all: xmlwf/xmlwf$(EXE)
1997-12-10 02:33:23 -05:00
1998-02-04 02:23:16 -05:00
xmlwf/xmlwf$(EXE): $(OBJS)
$(CC) $(CFLAGS) -o $@ $(OBJS)
1997-12-10 02:33:23 -05:00
clean:
1998-02-04 02:23:16 -05:00
rm -f $(OBJS) xmlwf/xmlwf$(EXE)
1997-12-10 02:33:23 -05:00
1998-03-28 13:58:38 -05:00
xmltok/nametab.h: gennmtab/gennmtab$(EXE)
1997-12-10 02:33:23 -05:00
rm -f $@
gennmtab/gennmtab$(EXE) >$@
gennmtab/gennmtab$(EXE): gennmtab/gennmtab.c
$(CC) $(CFLAGS) -o $@ gennmtab/gennmtab.c
1998-03-28 13:58:38 -05:00
xmltok/xmltok.o: xmltok/nametab.h
1997-12-10 09:38:18 -05:00
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<