Makefile 492 B

123456789101112131415161718192021222324
  1. # Copyright (C) 1996 Robert de Bath <robert@mayday.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=alloc.c
  8. MOBJ=malloc.o realloc.o free.o calloc.o malloc_dbg.o free_dbg.o calloc_dbg.o
  9. all: $(LIBC)($(MOBJ))
  10. $(LIBC): $(MOBJ)
  11. $(MOBJ): $(MSRC)
  12. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  13. $(AR) $(ARFLAGS) $(LIBC) $*.o
  14. clean:
  15. rm -f *.o libc.a