home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1067 / makefile.ISC < prev    next >
Makefile  |  1990-12-28  |  1KB  |  56 lines

  1. # Makefile for ISC SYS V/386
  2.  
  3. SHELL=/bin/sh
  4. INCLSYS=/usr/include/sys
  5. LKDRVRDIR=/etc/conf/pack.d/fas
  6. LKSCONFDIR=/etc/conf/sdevice.d
  7. LKNCONFDIR=/etc/conf/node.d
  8. LKICONFDIR=/etc/conf/init.d
  9. DRVRNAME=Driver.o
  10. CONFNAME=fas
  11.  
  12. CFLAGS = -O -DINKERNEL
  13.  
  14. OBJS = fas.o
  15.  
  16. fas.o:        fas.c $(INCLSYS)/fas.h
  17.  
  18. install:    fas.o space.c s_$(CONFNAME) n_$(CONFNAME) i_$(CONFNAME)
  19.     -mkdir $(LKDRVRDIR) 2> /dev/null
  20.     chmod 755 $(LKDRVRDIR)
  21.     cp fas.o $(LKDRVRDIR)/$(DRVRNAME)
  22.     chmod 644 $(LKDRVRDIR)/$(DRVRNAME)
  23.     cp space.c $(LKDRVRDIR)/space.c
  24.     chmod 644 $(LKDRVRDIR)/space.c
  25.     cp s_$(CONFNAME) $(LKSCONFDIR)/$(CONFNAME)
  26.     chmod 644 $(LKSCONFDIR)/$(CONFNAME)
  27.     cp n_$(CONFNAME) $(LKNCONFDIR)/$(CONFNAME)
  28.     chmod 644 $(LKNCONFDIR)/$(CONFNAME)
  29.     cp i_$(CONFNAME) $(LKICONFDIR)/$(CONFNAME)
  30.     chmod 644 $(LKICONFDIR)/$(CONFNAME)
  31.  
  32. space.c:
  33.     @echo "You must link the proper space-xxxxx file to \`space.c'"
  34.     @false
  35.     
  36. s_$(CONFNAME):
  37.     @echo "You must link the proper s_$(CONFNAME)-xxxxx file to \`s_$(CONFNAME)'"
  38.     @false
  39.         
  40. n_$(CONFNAME):
  41.     @echo "You must link the proper n_$(CONFNAME)-xxxxx file to \`n_$(CONFNAME)'"
  42.     @false
  43.         
  44. i_$(CONFNAME):
  45.     @echo "You must link the proper i_$(CONFNAME)-xxxxx file to \`i_$(CONFNAME)'"
  46.     @false
  47.         
  48. $(INCLSYS)/fas.h:    fas.h
  49.     cp fas.h $(INCLSYS)/fas.h
  50.  
  51. clean:
  52.     rm -f fas.o
  53.  
  54. clobber:    clean
  55.  
  56.