1 CC
= gcc
-nostdinc
-I..
/..
/include -Wall
-Wno-unused
3 LDFLAGS
= --oformat binary
-N
7 OBJS
= balloc.o cache.o
dir.o file.o ialloc.o inode.o super.o tfs_diskio.o tfs_cmd.o
12 @printf
'%8s %s\n' 'LD' ${DIRNAME}/$@
13 ${LD} -r
-o
$@
${OBJS}
15 @printf
'%8s %s\n' 'CC' ${DIRNAME}/$@
20 @
rm -f
*.o
*.map
*~ tmp_make
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