Makefile 525 B

1234567891011121314151617181920212223242526
  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=../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. CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
  10. all: $(LIBC)
  11. $(LIBC): $(LIBC)($(MOBJ))
  12. $(LIBC)($(MOBJ)): $(MSRC)
  13. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  14. $(AR) $(ARFLAGS) $@ $*.o
  15. clean:
  16. rm -f *.o libc.a