| Line |   | 
|---|
| 1 | # Makefile for File System (FS)
 | 
|---|
| 2 | SERVER = fs
 | 
|---|
| 3 | 
 | 
|---|
| 4 | # directories
 | 
|---|
| 5 | u = /usr
 | 
|---|
| 6 | i = $u/include
 | 
|---|
| 7 | s = $i/sys
 | 
|---|
| 8 | h = $i/minix
 | 
|---|
| 9 | 
 | 
|---|
| 10 | # programs, flags, etc.
 | 
|---|
| 11 | CC =    exec cc
 | 
|---|
| 12 | CFLAGS = -I$i $(EXTRA_OPTS)
 | 
|---|
| 13 | LDFLAGS = -i
 | 
|---|
| 14 | LIBS = -lsys -lsysutil -ltimers
 | 
|---|
| 15 | 
 | 
|---|
| 16 | OBJ =   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 cache2.o filedes.o stadir.o protect.o time.o \
 | 
|---|
| 19 |         lock.o misc.o utility.o select.o timers.o table.o
 | 
|---|
| 20 | 
 | 
|---|
| 21 | # build local binary 
 | 
|---|
| 22 | install all build:      $(SERVER)
 | 
|---|
| 23 | $(SERVER):      $(OBJ)
 | 
|---|
| 24 |         $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
 | 
|---|
| 25 |         install -S 512w $@
 | 
|---|
| 26 | 
 | 
|---|
| 27 | # clean up local files
 | 
|---|
| 28 | clean:
 | 
|---|
| 29 |         rm -f $(SERVER) *.o *.bak 
 | 
|---|
| 30 | 
 | 
|---|
| 31 | depend: 
 | 
|---|
| 32 |         /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
 | 
|---|
| 33 | 
 | 
|---|
| 34 | # Include generated dependencies.
 | 
|---|
| 35 | include .depend
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.