| Last change
 on this file since 9 was             4, checked in by Mattia Monga, 15 years ago | 
        
          | 
Importazione sorgenti libro
 | 
        
          | File size:
            843 bytes | 
      
      
| Rev | Line |  | 
|---|
| [4] | 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 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 | 
|---|
|  | 23 | all build:      $(SERVER) | 
|---|
|  | 24 | $(SERVER):      $(OBJ) | 
|---|
|  | 25 | $(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS) | 
|---|
|  | 26 | install -S 512w $@ | 
|---|
|  | 27 |  | 
|---|
|  | 28 | # install with other servers | 
|---|
|  | 29 | install:        /usr/sbin/$(SERVER) | 
|---|
|  | 30 | /usr/sbin/$(SERVER):    $(SERVER) | 
|---|
|  | 31 | install -o root -cs $? $@ | 
|---|
|  | 32 |  | 
|---|
|  | 33 | # clean up local files | 
|---|
|  | 34 | clean: | 
|---|
|  | 35 | rm -f $(SERVER) *.o *.bak | 
|---|
|  | 36 |  | 
|---|
|  | 37 | depend: | 
|---|
|  | 38 | /usr/bin/mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend | 
|---|
|  | 39 |  | 
|---|
|  | 40 | # Include generated dependencies. | 
|---|
|  | 41 | include .depend | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.