libexpat/expat/Makefile

47 lines
1.2 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
2000-05-09 23:20:15 -04:00
CFLAGS=-Wall -O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD
AR=ar
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
2000-05-09 23:20:15 -04:00
LIBOBJS=xmltok/xmltok.o \
1998-03-28 13:58:38 -05:00
xmltok/xmlrole.o \
2000-05-09 23:20:15 -04:00
xmlparse/xmlparse.o
OBJS=xmlwf/xmlwf.o \
xmlwf/xmlfile.o \
1998-06-01 09:02:06 -04:00
xmlwf/codepage.o \
1997-12-10 02:33:23 -05:00
$(FILEMAP_OBJ)
2000-05-09 23:20:15 -04:00
LIB=xmlparse/libexpat.a
1997-12-10 02:33:23 -05:00
EXE=
2000-05-09 23:20:15 -04:00
XMLWF=xmlwf/xmlwf$(EXE)
all: $(XMLWF)
1997-12-10 02:33:23 -05:00
2000-05-09 23:20:15 -04:00
$(XMLWF): $(OBJS) $(LIB)
$(CC) $(CFLAGS) -o $@ $(OBJS) $(LIB)
1997-12-10 02:33:23 -05:00
2000-05-09 23:20:15 -04:00
$(LIB): $(LIBOBJS)
$(AR) rc $(LIB) $(LIBOBJS)
1997-12-10 02:33:23 -05:00
clean:
2000-05-09 23:20:15 -04:00
rm -f $(OBJS) $(LIBOBJS) $(LIB) $(XMLWF)
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 $@ $<