Makefile cleaup
[thunix.git] / fs / tfs / Makefile
blob12d54ed6de2a162b9af668ae2d797e1c59cb209a
1 CC = gcc -nostdinc -I../../include -Wall -Wno-unused
2 LD = ld
3 LDFLAGS = --oformat binary -N
5 DIRNAME = fs/tfs
7 OBJS = balloc.o cache.o dir.o file.o ialloc.o inode.o super.o tfs_diskio.o tfs_cmd.o
9 all: tfs.o
11 tfs.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 $<
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