Set TFS_DIR by default when the TFS_DIR env is not set
[thunix.git] / fs / Makefile
blobaf6cc050b9319cc4dd68b7df7116f82ced3a8a93
1 CC = gcc -g -nostdinc -I../include -Wall -Wno-unused
2 LD = ld
4 DIRNAME = fs
6 OBJS = inode.o namei.o file.o super.o dir.o fslib.o cache.o exec.o
8 .PHONY: fs.o tfs/tfs.o
10 all: fs.o
12 fs.o: tfs/tfs.o ${OBJS}
13 @printf '%8s %s\n' 'LD' ${DIRNAME}/$@
14 ${LD} -r -o $@ tfs/tfs.o ${OBJS}
16 tfs/tfs.o:
17 ${MAKE} --directory=tfs
19 %.o: %.c
20 @printf '%8s %s\n' 'CC' ${DIRNAME}/$@
21 ${CC} -c -o $@ $<
23 clean:
24 @rm -f *.o
25 @cd tfs; make clean