Makefile 765 B

12345678910111213141516171819202122232425262728293031
  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. $(LIBC): $(LIBC)($(OBJ))
  15. $(LIBC)($(SOBJ)): $(SSRC)
  16. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  17. $(AR) $(ARFLAGS) $@ $*.o
  18. transfer:
  19. -@rm -f ../include/string.h
  20. cp -p string.h ../include/.
  21. clean:
  22. rm -f *.o