source: branches/minix3-book/servers/fs/Makefile@ 4

Last change on this file since 4 was 4, checked in by Mattia Monga, 14 years ago

Importazione sorgenti libro

File size: 843 bytes
RevLine 
[4]1# Makefile for File System (FS)
2SERVER = fs
3
4# directories
5u = /usr
6i = $u/include
7s = $i/sys
8h = $i/minix
9
10# programs, flags, etc.
11CC = exec cc
12CFLAGS = -I$i $(EXTRA_OPTS)
13LDFLAGS = -i
14LIBS = -lsys -lsysutil -ltimers
15
16OBJ = main.o open.o read.o write.o pipe.o dmap.o \
17 device.o path.o mount.o link.o super.o inode.o \
18 cache.o filedes.o stadir.o protect.o time.o \
19 lock.o misc.o utility.o select.o timers.o table.o \
20 cdprobe.o
21
22# build local binary
23all build: $(SERVER)
24$(SERVER): $(OBJ)
25 $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
26 install -S 512w $@
27
28# install with other servers
29install: /usr/sbin/$(SERVER)
30/usr/sbin/$(SERVER): $(SERVER)
31 install -o root -cs $? $@
32
33# clean up local files
34clean:
35 rm -f $(SERVER) *.o *.bak
36
37depend:
38 /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
39
40# Include generated dependencies.
41include .depend
Note: See TracBrowser for help on using the repository browser.