home *** CD-ROM | disk | FTP | other *** search
- #
- # /emx/lib/str/makefile
- #
- GCC=gcc -O -Wall -mprobe
- AR=ar
- I=/emx/include/
- E=$(I)sys/emx.h
- MT=../mt/
-
- LIBC=../libc.a
-
- .SUFFIXES: .s .o .obj
-
- .c.o:
- $(GCC) -c $*.c
-
- .s.o:
- $(GCC) -c -x assembler-with-cpp $<
-
- default: $(LIBC)
-
- clean:
- -del *.o $(DELOPT)
-
- bcmp.o: bcmp.s $(I)strings.h
- bcopy.o: bcopy.s $(I)strings.h
- bzero.o: bzero.s $(I)strings.h
- ffs.o: ffs.s $(I)strings.h
- index.o: index.s $(I)strings.h
- memccpy.o: memccpy.c $(I)memory.h $(I)string.h
- memchr.o: memchr.s $(I)memory.h $(I)string.h
- memcmp.o: memcmp.s $(I)memory.h $(I)string.h
- memcpy.o: memcpy.s $(I)memory.h $(I)string.h
- memcount.o: memcount.s $(I)memory.h $(I)string.h
- memdif.o: memdif.s $(I)memory.h $(I)string.h
- memicmp.o: memicmp.c $(I)memory.h $(I)string.h $(I)ctype.h
- memmove.o: memmove.s $(I)memory.h $(I)string.h
- memset.o: memset.s $(I)memory.h $(I)string.h
- memswap.o: memswap.s $(I)memory.h $(I)string.h
- rindex.o: rindex.s $(I)strings.h
- strcat.o: strcat.s $(I)string.h
- strchr.o: strchr.s $(I)string.h
- strcmp.o: strcmp.s $(I)string.h
- strcpy.o: strcpy.s $(I)string.h
- strcspn.o: strcspn.c $(I)string.h
- strdup.o: strdup.c $(I)string.h $(I)stdlib.h
- strerror.o: strerror.c $(I)string.h $(I)stdlib.h
- stricmp.o: stricmp.c $(I)string.h $(I)ctype.h
- strlen.o: strlen.s $(I)string.h
- strlwr.o: strlwr.c $(I)string.h $(I)ctype.h
- strncat.o: strncat.c $(I)string.h
- strncmp.o: strncmp.c $(I)string.h
- strncpy.o: strncpy.c $(I)string.h
- strnicmp.o: strnicmp.c $(I)string.h $(I)ctype.h
- strnset.o: strnset.c $(I)string.h
- strpbrk.o: strpbrk.c $(I)string.h
- strrchr.o: strrchr.s $(I)string.h
- strrev.o: strrev.c $(I)string.h
- strset.o: strset.c $(I)string.h
- strspn.o: strspn.c $(I)string.h
- strstr.o: strstr.c $(I)string.h
- strtok.o: strtok.c $(I)string.h $(E)
- strupr.o: strupr.c $(I)string.h $(I)ctype.h
- swab.o: swab.s $(I)stdlib.h
- _strncpy.o: _strncpy.c $(I)string.h
-
- $(LIBC): memset.o memchr.o memcpy.o memccpy.o memcmp.o memmove.o memicmp.o \
- strlen.o strchr.o strrchr.o strstr.o strcpy.o strcat.o strset.o strtok.o \
- strdup.o strrev.o strspn.o strcspn.o strcmp.o stricmp.o strerror.o \
- strlwr.o strupr.o strpbrk.o strncpy.o strncat.o strnset.o strncmp.o \
- strnicmp.o _strncpy.o memcount.o memswap.o memdif.o \
- bcmp.o bcopy.o bzero.o ffs.o index.o rindex.o swab.o
- -$(AR) d $(LIBC) __.SYMDEF
- $(AR) r $(LIBC) *.o
- $(AR) s $(LIBC)
-
- $(MT)str1.c: _strncpy.c includes.c memccpy.c memicmp.c \
- strcspn.c strdup.c strerror.c stricmp.c strlwr.c \
- strncat.c strncmp.c strncpy.c strnicmp.c strnset.c strpbrk.c \
- strrev.c strset.c strspn.c strstr.c strtok.c strupr.c
- emxcat -o $@ includes.c *.c
-
- $(MT)str2.s: bcmp.s bcopy.s bzero.s ffs.s index.s memchr.s \
- memcmp.s memcount.s memcpy.s memdif.s memmove.s memset.s memswap.s \
- rindex.s strcat.s strchr.s strcmp.s strcpy.s strrchr.s strlen.s swab.s
- emxcat -o $@ *.s
-
- mt: $(MT)str1.c $(MT)str2.s
-