Makefile 780 B

1234567891011121314151617181920212223242526272829303132
  1. # Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk>
  2. # This file is part of the Linux-8086 C library and is distributed
  3. # under the GNU Library General Public License.
  4. TOPDIR=../
  5. include $(TOPDIR)Rules.make
  6. LIBC=../libc.a
  7. SSRC=string.c
  8. SOBJ=strlen.o strcat.o strcpy.o strcmp.o strncat.o strncpy.o strncmp.o \
  9. strchr.o strrchr.o strdup.o memcpy.o memccpy.o memchr.o memset.o \
  10. memcmp.o memmove.o movedata.o
  11. OBJ=$(SOBJ) strpbrk.o strsep.o strstr.o strtok.o strcspn.o \
  12. strspn.o strcasecmp.o strncasecmp.o config.o
  13. all: $(LIBC)
  14. @$(RM) $(OBJ)
  15. $(LIBC): $(LIBC)($(OBJ))
  16. $(LIBC)($(SOBJ)): $(SSRC)
  17. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  18. $(AR) $(ARFLAGS) $@ $*.o
  19. transfer:
  20. -@rm -f ../include/string.h
  21. cp -p string.h ../include/.
  22. clean:
  23. rm -f *.o