minix/servers/mfs/Makefile
2007-08-07 12:38:35 +00:00

40 lines
751 B
Makefile

# Makefile for File System (FS)
SERVER = mfs
# directories
u = /usr
i = $u/include
s = $i/sys
h = $i/minix
# programs, flags, etc.
CC = exec cc
CFLAGS = -I$i $(EXTRA_OPTS) $(CPROFILE)
LDFLAGS = -i
LIBS = -lsysutil -lsys -ltimers
OBJ = cache.o device.o link.o \
mount.o misc.o open.o pipe.o protect.o read.o \
stadir.o table.o time.o utility.o \
write.o inode.o main.o path.o super.o stacktrace.o
# build local binary
all build: $(SERVER)
$(SERVER): $(OBJ)
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
install -S 64k $(SERVER)
install: $(SERVER)
install $(SERVER) /sbin/$(SERVER)
# clean up local files
clean:
rm -f $(SERVER) *.o *.bak
depend:
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
# Include generated dependencies.
include .depend