Makefile 542 B

1234567891011121314151617181920212223242526272829
  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 free.o calloc.o malloc_dbg.o free_dbg.o calloc_dbg.o
  9. OBJ=$(MOBJ)
  10. CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
  11. all: $(LIBC)
  12. @$(RM) $(OBJ)
  13. $(LIBC): $(LIBC)($(OBJ))
  14. $(LIBC)($(MOBJ)): $(MSRC)
  15. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  16. $(AR) $(ARFLAGS) $@ $*.o
  17. clean:
  18. rm -f *.o libc.a