kbd: use a better get_key method
[thunix.git] / fs / tfs / Makefile
blob8da612fdf0ff4c8d848c3e2ffc7b5b0c7df82aa8
1 CC = gcc -g -nostdinc -I../../include -Wall -Wno-unused
2 LD = ld
4 DIRNAME = fs/tfs
6 OBJS = balloc.o dir.o file.o ialloc.o inode.o super.o tfs_diskio.o tfs_cmd.o
8 all: tfs.o
10 tfs.o: ${OBJS}
11 @printf '%8s %s\n' 'LD' ${DIRNAME}/$@
12 ${LD} -r -o $@ ${OBJS}
14 %.o: %.c
15 @printf '%8s %s\n' 'CC' ${DIRNAME}/$@
16 ${CC} -c -o $@ $<
19 clean:
20 @rm -f *.o *.map *~ tmp_make
22 dep:
23 sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
24 (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
25 $(CPP) -M $$i;done) >> tmp_make
26 cp tmp_make Makefile