home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / os / bsdss4.tz / bsdss4 / bsdss / server / kern / Makefile < prev    next >
Encoding:
Makefile  |  1992-04-22  |  2.6 KB  |  84 lines

  1. # Mach Operating System
  2. # Copyright (c) 1992 Carnegie Mellon University
  3. # All Rights Reserved.
  4. # Permission to use, copy, modify and distribute this software and its
  5. # documentation is hereby granted, provided that both the copyright
  6. # notice and this permission notice appear in all copies of the
  7. # software, derivative works or modified versions, and any portions
  8. # thereof, and that both notices appear in supporting documentation.
  9. # CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
  10. # CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
  11. # ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  12. # Carnegie Mellon requests users of this software to return to
  13. #  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
  14. #  School of Computer Science
  15. #  Carnegie Mellon University
  16. #  Pittsburgh PA 15213-3890
  17. # any improvements or extensions that they make and grant Carnegie Mellon 
  18. # the rights to redistribute these changes.
  19. #
  20. #
  21. # HISTORY
  22. # $Log:    Makefile,v $
  23. # Revision 2.1  92/04/21  17:13:24  rwd
  24. # BSDSS
  25. #
  26. #
  27.  
  28. #    @(#)Makefile    7.13 (Berkeley) 5/9/91
  29.  
  30. # Makefile for kernel tags files, init_systent, etc.
  31.  
  32. ARCH=    vax tahoe hp300 i386
  33.  
  34. all:
  35.     @echo "make tags, make links or init_sysent.c only"
  36.  
  37. init_sysent.c syscalls.c ../sys/syscall.h: makesyscalls.sh syscalls.master
  38.     -mv -f init_sysent.c init_sysent.c.bak
  39.     -mv -f syscalls.c syscalls.c.bak
  40.     -mv -f ../sys/syscall.h ../sys/syscall.h.bak
  41.     sh makesyscalls.sh syscalls.master
  42.  
  43. # Kernel tags:
  44. # We need to have links to tags files from the generic directories
  45. # that are relative to the machine type, even via remote mounts;
  46. # therefore we use symlinks to $SYSTAGS, which points at
  47. # ${SYSDIR}/${MACHINE}/tags.
  48.  
  49. SYSTAGS=/var/db/sys_tags
  50. SYSDIR=/sys
  51.  
  52. # Put the ../sys stuff near the end so that subroutine definitions win when
  53. # there is a struct tag with the same name (eg., vmmeter).  The real
  54. # solution would probably be for ctags to generate "struct vmmeter" tags.
  55.  
  56. COMM=    ../net/*.[ch] ../netimp/*.[ch] ../netinet/*.[ch] ../netns/*.[ch] \
  57.     ../netiso/*.[ch] ../netccitt/*.[ch] \
  58.     ../kern/*.c ../ufs/*.[ch] ../nfs/*.[ch] ../vm/*.[ch] ../sys/*.h
  59.  
  60. # Directories in which to place tags links (other than machine-dependent)
  61. DGEN=    kern sys net netimp netinet netns netccitt nfs ufs vm
  62.  
  63. tags: FRC
  64.     -for i in ${ARCH}; do \
  65.         cd ../$$i && make ${MFLAGS} tags; done
  66.  
  67. links: ${SYSTAGS}
  68.     -for i in ${DGEN}; do \
  69.         cd $$i && rm -f tags; ln -s ${SYSTAGS} tags; done
  70.     -for i in ${ARCH}; do \
  71.         cd ../$$i && make ${MFLAGS} links; done
  72.  
  73. ${SYSTAGS}:
  74.     ln -s ${SYSDIR}/${MACHINE}/tags ${SYSTAGS}
  75.  
  76. FRC:
  77.