libexpat/expat/Makefile

38 lines
957 B
Makefile
Raw Normal View History

1997-12-10 02:33:23 -05:00
CC=gcc
1998-06-01 09:02:06 -04:00
# If you know what your system's byte order is, define BYTE_ORDER:
# use -DBYTE_ORDER=12 for little-endian byte order;
# use -DBYTE_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
CFLAGS=-O2 -Ixmltok -Ixmlparse -DXML_NS
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 \
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 $@ $<