blob: 63224544fa90b686306ebc8e6fa71556d3d96937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
TOP=..
include $(TOP)/Make.defs
ASRC=malloc.c
AOBJ=malloc.o alloca.o free.o calloc.o realloc.o
OBJ=$(AOBJ)
all: $(OBJ)
libc.a: $(OBJ)
ar r ../$(LIBC) $(OBJ)
@touch libc.a
clean:
rm -f *.o libc.a
$(AOBJ): $(ASRC)
$(CC) $(CFLAGS) -c -DL_$* -o $@ $(ASRC)
transfer:
-@rm ../include/malloc.h
cp -p malloc.h ../include/.
|