home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / strings / c_string / makefile.txt < prev    next >
Encoding:
Makefile  |  1986-04-09  |  2.9 KB  |  84 lines

  1.  
  2. /*f File   : Makefile
  3. #   File   : strings.d/Makefile
  4. #   Author : Richard A. O'Keefe.
  5. #   Updated: 2 June 1984.
  6. #   Purpose: UNIX make(1)file for the strings library.
  7.  
  8. #   If you are not using a Vax, or if your strings might be 2^16
  9. #   characters long or longer, use
  10. #   CFLAGS=-O
  11. #   On the Vax we can use the string instructions some but not all the time.
  12. CFLAGS=-O
  13.  
  14. #   The SIII functions are the ones described in the System III
  15. #   string(3) manual page, and also in ctype(3), atoi(3).
  16.  
  17. SIII=strcat.o strncat.o strcmp.o strncmp.o strcpy.o strncpy.o strlen.o\
  18.         strchr.o strrchr.o strpbrk.o strspn.o strcspn.o strtok.o\
  19.         _c2type.o str2int.o getopt.o
  20.  
  21. #   The Sys5 functions are the ones described in the System V
  22. #   memory(3C) manual page.  mem{mov,rchr,rev} are in "mine".
  23.  
  24. Sys5=memccpy.o memchr.o memcmp.o memcpy.o memmov.o memrchr.o memset.o
  25.  
  26. #   The BSD2 functions are the ones described in the 4.2bsd
  27. #   bstring(3) manual page, plus a couple of my additions.
  28. #   All except ffs have VAX-specific machine code versions.
  29.  
  30. BSD2=bcmp.o bcopy.o bfill.o bmove.o bzero.o ffs.o
  31.  
  32. #   The "xstr" functions are Tony Hansen's "xstring(3c)" package with
  33. #   some additions of mine.  All the code is mine, the names are his.
  34. #   It is not clear whether his strxncpy pads with NULs as strncpy does.
  35. #   In this package str[x]n{cpy,mov} all pad to exactly len chars with NUL.
  36.  
  37. xstr=strxcat.o strxcpy.o strxmov.o strxncat.o strxncpy.o strxnmov.o
  38.  
  39. #   The "mine" functions are the ones which are entirely my own
  40. #   invention, though they are supposed to fit into the SIII conventions.
  41.  
  42. mine=strmov.o strnmov.o strrpt.o strnrpt.o strend.o strnlen.o strcpbrk.o\
  43.         strpack.o strcpack.o strtrans.o strntrans.o strpref.o strsuff.o\
  44.         strtrim.o strctrim.o strfield.o strkey.o int2str.o substr.o\
  45.         strnend.o strconc.o strrev.o strnrev.o _str2map.o _str2set.o\
  46.         memmov.o memrchr.o memrev.o
  47.  
  48. #   The "find" functions are my code, but they are based on published
  49. #   work by Boyer, Moore, and Hospool.  (See _str2pat.c.)
  50.  
  51. find=strfind.o strrepl.o
  52.  
  53. strings.a: ${SIII} ${Sys5} ${BSD2} ${xstr} ${mine} ${find}
  54.         rm strings.a; ar rc strings.a *.o; ranlib strings.a
  55.  
  56. scan=strpbrk.o strcprbk.o strspn.o strcspn.o strpack.o strcpack.o \
  57.         strtrim.o strctrim.o strtok.o
  58.  
  59. ${scan} _str2set.o: _str2set.h
  60.  
  61. tran=strtrans.o strntrans.o
  62.  
  63. ${tran} _str2map.o: _str2map.h
  64.  
  65. ${find}: _str2pat.h
  66.  
  67. str2int.o: ctypes.h
  68.  
  69. ${SIII} ${Sys5} ${BSD2} ${mine} ${xstr} ${find}: strings.h
  70.  
  71. clean:
  72.         -rm *.o
  73.  
  74. #   The compilations should be done with the sources and headers in the
  75. #   same directory.  However, users should find everything in the proper
  76. #   places: /usr/include/{strings,memory}.h and /usr/lib/strings.a
  77. #   /usr/local/lib would be ok.  Why is there no /usr/local/include?
  78.  
  79. install:
  80.         cp memory.h strings.h /usr/include
  81.         mv strings.a /usr/lib
  82. */
  83.  
  84.