summaryrefslogtreecommitdiff
path: root/libc/malloc1/Makefile
blob: a4107b8c5f8b402c27ce1e7cc17752a91ec1cdf1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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))
	@:

$(LIBC)($(AOBJ)): $(ASRC)
	$(CC) $(CFLAGS) -DL_$* $< -c -o $*.o
	$(AR) $(ARFLAGS) $@ $*.o
	$(RM) $*.o

clean:
	rm -f *.o libc.a

transfer:
	-@rm ../include/malloc.h
	cp -p malloc.h ../include/.