Add file commands
[thunix.git] / fs / tfs / Makefile
blob8b69090f95610764ad42effd769ddf92ec35f94c
1 AS = as -I../../include
2 CC = gcc -nostdinc -I../../include -Wall -Wno-unused
3 LD = ld
4 LDFLAGS = --oformat binary -N
5 CPP =gcc -E -nostdinc -I../../include
7 all: tfs.o #mktfs
9 OBJS = balloc.o cache.o dir.o file.o ialloc.o inode.o super.o tfs_diskio.o tfs_cmd.o
12 tfs.o: ${OBJS}
13 ${LD} -r -o $@ ${OBJS}
14 .c.s:
15 ${CC} -S -o $*.s $<
16 .s.o:
17 ${AS} -o $*.o $<
18 .c.o:
19 ${CC} -c -o $*.o $<
21 mktfs: balloc.c cache.c dir.c file.c ialloc.c inode.c mktfs.c utils.c
22 gcc -Wall -Wno-unused -o mktfs balloc.c cache.c dir.c file.c ialloc.c inode.c utils.c
25 clean:
26 rm -f *.o *.map *~ tmp_make
28 dep:
29 sed '/\#\#\# Dependencies/q' < Makefile > tmp_make
30 (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \
31 $(CPP) -M $$i;done) >> tmp_make
32 cp tmp_make Makefile