1997-12-10 02:33:23 -05:00
|
|
|
CC=gcc
|
|
|
|
CFLAGS=-O2 -I.
|
|
|
|
# Use one of the next two lines; unixfilemap is better if it works.
|
|
|
|
FILEMAP_OBJ=xmlwf/unixfilemap.o
|
|
|
|
#FILEMAP_OBJ=xmlwf/readfilemap.o
|
|
|
|
XMLWF_OBJS=xmltok.o \
|
|
|
|
xmlrole.o \
|
|
|
|
xmlwf/xmlwf.o \
|
|
|
|
xmlwf/wfcheck.o \
|
|
|
|
xmlwf/wfcheckmessage.o \
|
|
|
|
xmlwf/hashtable.o \
|
|
|
|
$(FILEMAP_OBJ)
|
|
|
|
XMLEC_OBJS=xmltok.o xmlec/xmlec.o
|
|
|
|
EXE=
|
|
|
|
|
1997-12-10 09:38:18 -05:00
|
|
|
all: xmlwf/xmlwf$(EXE) xmlec/xmlec$(EXE)
|
1997-12-10 02:33:23 -05:00
|
|
|
|
1997-12-10 09:38:18 -05:00
|
|
|
xmlwf/xmlwf$(EXE): $(XMLWF_OBJS)
|
1997-12-10 02:33:23 -05:00
|
|
|
$(CC) $(CFLAGS) -o $@ $(XMLWF_OBJS)
|
|
|
|
|
1997-12-10 09:38:18 -05:00
|
|
|
xmlec/xmlec$(EXE): $(XMLEC_OBJS)
|
1997-12-10 02:33:23 -05:00
|
|
|
$(CC) $(CFLAGS) -o $@ $(XMLEC_OBJS)
|
|
|
|
|
|
|
|
clean:
|
1997-12-10 09:38:18 -05:00
|
|
|
rm -f $(XMLWF_OBJS) xmlwf/xmlwf$(EXE) $(XMLEC_OBJS) xmlec/xmlec$(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 $@ $<
|