forget difference between big and small commands - obsolete with vm.
[minix.git] / servers / mfs / Makefile
blob82866415174a7ce849fc236e77839c15b547d155
1 # Makefile for Minix File System (MFS)
2 SERVER = mfs
3 DEST=/sbin/$(SERVER)
4 NR_BUFS=1024
5 BS=4096
7 # directories
8 u = /usr
9 i = $u/include
10 s = $i/sys
11 h = $i/minix
13 # programs, flags, etc.
14 CC = exec cc
15 CFLAGS = -I$i $(EXTRA_OPTS) $(CPROFILE) -DNR_BUFS=$(NR_BUFS)
16 LDFLAGS = -i
17 LIBS = -lsys
19 OBJ = cache.o device.o link.o \
20 mount.o misc.o open.o protect.o read.o \
21 stadir.o table.o time.o utility.o \
22 write.o inode.o main.o path.o super.o
24 # build local binary
25 all build: $(SERVER)
26 $(SERVER): $(OBJ)
27 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
29 install: $(SERVER)
30 -mv $(DEST) $(DEST).prev
31 install $(SERVER) $(DEST)
33 # clean up local files
34 clean:
35 rm -f $(SERVER) *.o *.bak
37 depend:
38 mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
40 # Include generated dependencies.
41 include .depend