libexpat/expat/Makefile

33 lines
665 B
Makefile
Raw Normal View History

1997-12-10 02:33:23 -05:00
CC=gcc
1998-02-04 02:23:16 -05:00
CFLAGS=-O2 -I. -Ixmlparse
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-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 $@ $<