Makefile 621 B

123456789101112131415161718192021222324252627282930313233
  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. LIBC=../libc.a
  5. CC=m68k-pic-coff-gcc
  6. AR=m68k-pic-coff-ar
  7. RANLIB=m68k-pic-coff-ranlib
  8. CCFLAGS= -O2 -m68000 -msoft-float -I../include
  9. MSRC=alloc.c
  10. MOBJ=malloc.o free.o calloc.o malloc_dbg.o free_dbg.o calloc_dbg.o
  11. OBJ=$(MOBJ)
  12. CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
  13. all: $(LIBC)
  14. @$(RM) $(OBJ)
  15. $(LIBC): $(LIBC)($(OBJ))
  16. $(LIBC)($(MOBJ)): $(MSRC)
  17. $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
  18. $(AR) $(ARFLAGS) $@ $*.o
  19. clean:
  20. rm -f *.o libc.a