Makefile 810 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=$(TOPDIR)libc.a
  7. MSRC=string.c
  8. MOBJ=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. CFILES=strpbrk.c strsep.c strstr.c strtok.c strcspn.c \
  12. strspn.c strcasecmp.c strncasecmp.c config.c
  13. COBJS=$(patsubst %.c,%.o, $(CFILES))
  14. all: $(COBJS) $(MOBJ) $(LIBC)
  15. $(COBJS): $(CFILES)
  16. $(CC) $(CFLAGS) -c $*.c -o $@
  17. $(MOBJ): $(MSRC)
  18. $(CC) $(CFLAGS) -DL_$* -c $(MSRC) -o $@
  19. $(LIBC): $(COBJS) $(MOBJ)
  20. $(AR) $(ARFLAGS) $(LIBC) $(COBJS) $(MOBJ)
  21. clean:
  22. rm -f *.o