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