Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.1 KiB

  1. CC=gcc
  2. # If you know what your system's byte order is, define XML_BYTE_ORDER:
  3. # use -DXML_BYTE_ORDER=12 for little-endian byte order;
  4. # use -DXML_BYTE_ORDER=21 for big-endian (network) byte order.
  5. # -DXML_NS adds support for checking of lexical aspects of XML namespaces spec
  6. # -DXML_MIN_SIZE makes a smaller but slower parser
  7. # -DXML_DTD adds full support for parsing DTDs
  8. CFLAGS=-O2 -Ixmltok -Ixmlparse -DXML_NS -DXML_DTD
  9. # Use one of the next two lines; unixfilemap is better if it works.
  10. FILEMAP_OBJ=xmlwf/unixfilemap.o
  11. #FILEMAP_OBJ=xmlwf/readfilemap.o
  12. OBJS=xmltok/xmltok.o \
  13. xmltok/xmlrole.o \
  14. xmlwf/xmlwf.o \
  15. xmlwf/xmlfile.o \
  16. xmlwf/codepage.o \
  17. xmlparse/xmlparse.o \
  18. xmlparse/hashtable.o \
  19. $(FILEMAP_OBJ)
  20. EXE=
  21. all: xmlwf/xmlwf$(EXE)
  22. xmlwf/xmlwf$(EXE): $(OBJS)
  23. $(CC) $(CFLAGS) -o $@ $(OBJS)
  24. clean:
  25. rm -f $(OBJS) xmlwf/xmlwf$(EXE)
  26. xmltok/nametab.h: gennmtab/gennmtab$(EXE)
  27. rm -f $@
  28. gennmtab/gennmtab$(EXE) >$@
  29. gennmtab/gennmtab$(EXE): gennmtab/gennmtab.c
  30. $(CC) $(CFLAGS) -o $@ gennmtab/gennmtab.c
  31. xmltok/xmltok.o: xmltok/nametab.h
  32. .c.o:
  33. $(CC) $(CFLAGS) -c -o $@ $<