home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 3 / AACD03.BIN / AACD / Programming / sofa / archive / exml.lha / exml / compiler_specific / se / smakefile < prev    next >
Makefile  |  1999-10-09  |  2KB  |  73 lines

  1. #
  2. # smakefile for exml.library
  3. #
  4. # This makefile only creates exml.lib in Sofa's library drawer. Different
  5. # to the other makefiles you can find here, it should not be included into
  6. # other makefiles.
  7. #
  8. # For an example project using the library look at the smakefile in
  9. # ${EXML}/examples/se_test.
  10. #
  11. # Type
  12. #
  13. #    "smake"         to create exml.lib in Sofa's library drawer
  14. #    "smake clean"   to remove everything but the library
  15. #    "smake sterile" to remove really everything
  16. #    "smake rebuild" to rebuild the library from scratch
  17. #
  18. # NOTE: the expat source is pretty crappy and will vomit several warnings
  19. # 100 and 161 about missing prototypes. Nevertheless, it seems to work.
  20. #
  21.  
  22. # relevant paths
  23. SOFA=/////sofa
  24. EXML=///exml
  25. EXPAT=//expat
  26.  
  27. # compiler objects
  28. LIBRARY=$(SOFA)/lib/exml.lib
  29.  
  30. OBJS=\
  31.   $(EXPAT)/xmltok/xmltok.o \
  32.   $(EXPAT)/xmltok/xmlrole.o \
  33.   $(EXPAT)/xmlparse/xmlparse.o \
  34.   $(EXPAT)/xmlparse/hashtable.o
  35.  
  36. #
  37. # object rules
  38. #
  39.  
  40. all : $(LIBRARY)
  41.  
  42. $(EXPAT)/xmltok/nametab.h : $(EXPAT)/gennmtab/gennmtab
  43.     -delete quiet $@
  44.     $(EXPAT)/gennmtab/gennmtab >$@
  45.  
  46. $(EXPAT)/gennmtab/gennmtab : $(EXPAT)/gennmtab/gennmtab.c
  47.     sc link $< to $@ stackextend
  48.  
  49. $(LIBRARY) : $(OBJS)
  50.     oml $@ r $(OBJS)
  51.  
  52. $(EXPAT)/xmltok/xmltok.o : $(EXPAT)/xmltok/xmltok.c $(EXPAT)/xmltok/nametab.h
  53.  
  54. $(EXPAT)/xmltok/xmlrole.o : $(EXPAT)/xmltok/xmlrole.c
  55.  
  56. $(EXPAT)/xmlparse/xmlparse.o : $(EXPAT)/xmlparse/xmlparse.c
  57.  
  58. $(EXPAT)/xmlparse/hashtable.o : $(EXPAT)/xmlparse/hashtable.c
  59.  
  60. #
  61. # cleanup and rebuilding rules
  62. #
  63. clean :
  64.     -delete quiet $(OBJS) $(EXPAT)/xmltok/nametab.h \
  65.         $(EXPAT)/gennmtab/gennmtab $(EXPAT)/gennmtab/gennmtab.lnk
  66.  
  67. sterile : clean
  68.     -delete quiet $(LIBRARY)
  69.  
  70. rebuild : sterile
  71.     smake
  72.  
  73.