Makefile 866 B

12345678910111213141516171819202122232425262728293031323334353637
  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. LIBC=../libc.a
  5. CC=$(CROSS)gcc
  6. AR=$(CROSS)ar
  7. RANLIB=$(CROSS)ranlib
  8. CCFLAGS= -O2 $(CPUFLAGS) -I../include
  9. SSRC=string.c
  10. SOBJ=strlen.o strcat.o strcpy.o strcmp.o strncat.o strncpy.o strncmp.o \
  11. strchr.o strrchr.o strdup.o memcpy.o memccpy.o memchr.o memset.o \
  12. memcmp.o memmove.o movedata.o
  13. OBJ=$(SOBJ) strpbrk.o strsep.o strstr.o strtok.o strcspn.o \
  14. strspn.o strcasecmp.o strncasecmp.o config.o
  15. CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
  16. all: $(LIBC)
  17. @$(RM) $(OBJ)
  18. $(LIBC): $(LIBC)($(OBJ))
  19. $(LIBC)($(SOBJ)): $(SSRC)
  20. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  21. $(AR) $(ARFLAGS) $@ $*.o
  22. transfer:
  23. -@rm -f ../include/string.h
  24. cp -p string.h ../include/.
  25. clean:
  26. rm -f *.o