diff options
Diffstat (limited to 'libc/malloc/Makefile')
-rw-r--r-- | libc/malloc/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libc/malloc/Makefile b/libc/malloc/Makefile new file mode 100644 index 0000000..e762582 --- /dev/null +++ b/libc/malloc/Makefile @@ -0,0 +1,22 @@ +# Copyright (C) 1995,1996 Robert de Bath <rdebath@cix.compulink.co.uk> +# This file is part of the Linux-8086 C library and is distributed +# under the GNU Library General Public License. + +ASRC=malloc.c +AOBJ=malloc.o alloca.o free.o calloc.o realloc.o + +CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS) + +all: $(LIBC)($(AOBJ)) + @$(RM) $(OBJ) + +$(LIBC)($(AOBJ)): $(ASRC) + $(CC) $(CFLAGS) -DL_$* $< -c -o $*.o + $(AR) $(ARFLAGS) $@ $*.o + +clean: + rm -f *.o libc.a + +transfer: + -@rm ../include/malloc.h + cp -p malloc.h ../include/. |