1 AS
= as -I..
/..
/include
2 CC
= gcc
-nostdinc
-I..
/..
/include -Wall
-Wno-unused
4 LDFLAGS
= --oformat binary
-N
5 CPP
=gcc
-E
-nostdinc
-I..
/..
/include
9 OBJS
= balloc.o cache.o
dir.o file.o ialloc.o inode.o super.o tfs_diskio.o tfs_cmd.o
13 ${LD} -r
-o
$@
${OBJS}
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
26 rm -f
*.o
*.map
*~ tmp_make
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