libexpat/expat/Makefile

33 lines
630 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-02-04 02:23:16 -05:00
OBJS=xmltok.o \
1997-12-10 02:33:23 -05:00
xmlrole.o \
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
nametab.h: gennmtab/gennmtab$(EXE)
rm -f $@
gennmtab/gennmtab$(EXE) >$@
gennmtab/gennmtab$(EXE): gennmtab/gennmtab.c
$(CC) $(CFLAGS) -o $@ gennmtab/gennmtab.c
xmltok.o: nametab.h
1997-12-10 09:38:18 -05:00
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<