home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / CLIPPER / MISC / EMXLIB8F.ZIP / EMX / LIB / STR / MAKEFILE < prev    next >
Encoding:
Text File  |  1993-01-02  |  2.8 KB  |  89 lines

  1. #
  2. # /emx/lib/str/makefile
  3. #
  4. GCC=gcc -O -Wall -mprobe
  5. AR=ar
  6. I=/emx/include/
  7. E=$(I)sys/emx.h
  8. MT=../mt/
  9.  
  10. LIBC=../libc.a
  11.  
  12. .SUFFIXES: .s .o .obj
  13.  
  14. .c.o:
  15.     $(GCC) -c $*.c
  16.  
  17. .s.o:
  18.     $(GCC) -c -x assembler-with-cpp $<
  19.  
  20. default:    $(LIBC)
  21.  
  22. clean:
  23.     -del *.o $(DELOPT)
  24.  
  25. bcmp.o: bcmp.s $(I)strings.h
  26. bcopy.o: bcopy.s $(I)strings.h
  27. bzero.o: bzero.s $(I)strings.h
  28. ffs.o: ffs.s $(I)strings.h
  29. index.o: index.s $(I)strings.h
  30. memccpy.o: memccpy.c $(I)memory.h $(I)string.h
  31. memchr.o: memchr.s $(I)memory.h $(I)string.h
  32. memcmp.o: memcmp.s $(I)memory.h $(I)string.h
  33. memcpy.o: memcpy.s $(I)memory.h $(I)string.h
  34. memcount.o: memcount.s $(I)memory.h $(I)string.h
  35. memdif.o: memdif.s $(I)memory.h $(I)string.h
  36. memicmp.o: memicmp.c $(I)memory.h $(I)string.h $(I)ctype.h
  37. memmove.o: memmove.s $(I)memory.h $(I)string.h
  38. memset.o: memset.s $(I)memory.h $(I)string.h
  39. memswap.o: memswap.s $(I)memory.h $(I)string.h
  40. rindex.o: rindex.s $(I)strings.h
  41. strcat.o: strcat.s $(I)string.h
  42. strchr.o: strchr.s $(I)string.h
  43. strcmp.o: strcmp.s $(I)string.h
  44. strcpy.o: strcpy.s $(I)string.h
  45. strcspn.o: strcspn.c $(I)string.h
  46. strdup.o: strdup.c $(I)string.h $(I)stdlib.h
  47. strerror.o: strerror.c $(I)string.h $(I)stdlib.h
  48. stricmp.o: stricmp.c $(I)string.h $(I)ctype.h
  49. strlen.o: strlen.s $(I)string.h
  50. strlwr.o: strlwr.c $(I)string.h $(I)ctype.h
  51. strncat.o: strncat.c $(I)string.h
  52. strncmp.o: strncmp.c $(I)string.h
  53. strncpy.o: strncpy.c $(I)string.h
  54. strnicmp.o: strnicmp.c $(I)string.h $(I)ctype.h
  55. strnset.o: strnset.c $(I)string.h
  56. strpbrk.o: strpbrk.c $(I)string.h
  57. strrchr.o: strrchr.s $(I)string.h
  58. strrev.o: strrev.c $(I)string.h
  59. strset.o: strset.c $(I)string.h
  60. strspn.o: strspn.c $(I)string.h
  61. strstr.o: strstr.c $(I)string.h
  62. strtok.o: strtok.c $(I)string.h $(E)
  63. strupr.o: strupr.c $(I)string.h $(I)ctype.h
  64. swab.o: swab.s $(I)stdlib.h
  65. _strncpy.o: _strncpy.c $(I)string.h
  66.  
  67. $(LIBC): memset.o memchr.o memcpy.o memccpy.o memcmp.o memmove.o memicmp.o \
  68.     strlen.o strchr.o strrchr.o strstr.o strcpy.o strcat.o strset.o strtok.o \
  69.     strdup.o strrev.o strspn.o strcspn.o strcmp.o stricmp.o strerror.o \
  70.     strlwr.o strupr.o strpbrk.o strncpy.o strncat.o strnset.o strncmp.o \
  71.     strnicmp.o _strncpy.o memcount.o memswap.o memdif.o \
  72.     bcmp.o bcopy.o bzero.o ffs.o index.o rindex.o swab.o
  73.     -$(AR) d $(LIBC) __.SYMDEF
  74.     $(AR) r $(LIBC) *.o
  75.     $(AR) s $(LIBC)
  76.  
  77. $(MT)str1.c:  _strncpy.c includes.c memccpy.c memicmp.c \
  78.     strcspn.c strdup.c strerror.c stricmp.c strlwr.c \
  79.     strncat.c strncmp.c strncpy.c strnicmp.c strnset.c strpbrk.c \
  80.     strrev.c strset.c strspn.c strstr.c strtok.c strupr.c
  81.     emxcat -o $@ includes.c *.c
  82.  
  83. $(MT)str2.s:  bcmp.s bcopy.s bzero.s ffs.s index.s memchr.s \
  84.      memcmp.s memcount.s memcpy.s memdif.s memmove.s memset.s memswap.s \
  85.      rindex.s strcat.s strchr.s strcmp.s strcpy.s strrchr.s strlen.s swab.s
  86.     emxcat -o $@ *.s
  87.  
  88. mt: $(MT)str1.c $(MT)str2.s
  89.