kbd: use a better get_key method
[thunix.git] / mm / Makefile
blobb2314520bd1e9baf787fd392ea447a09c8dec3d9
1 AS = as -I../include
2 CC = gcc -g -nostdinc -I../include -Wall -Wno-unused
3 LD = ld
4 LDFLAGS = --oformat binary -N
5 CPP =gcc -g -E -nostdinc -I../include
7 DIRNAME = mm
9 OBJS = malloc.o
11 mm.o: ${OBJS}
12 @printf "%8s %s\n" "LD" ${DIRNAME}/$@
13 ${LD} -r -o $@ ${OBJS}
14 .c.o:
15 @printf "%8s %s\n" "CC" ${DIRNAME}/$@
16 ${CC} -c -o $*.o $<
20 clean:
21 @rm -f *.o *.map *~ tmp_make
23 dep:
24 sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
25 (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
26 $(CPP) -M $$i;done) >> tmp_make
27 cp tmp_make Makefile