The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/tools/Makefile

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 # Makefile for the kernel image.
    2 
    3 u=/usr
    4 CC=     exec cc
    5 CFLAGS= -O -D_MINIX -D_POSIX_SOURCE
    6 MDEC=   /usr/mdec
    7 MAKE=   exec make -$(MAKEFLAGS)
    8 GMAKE=/usr/gnu/bin/gmake
    9 
   10 # Specify the programs that are part of the system image.
   11 # Multiple boot medium drivers can be included in the image, 
   12 # but only one is actually be loaded. The driver to load is
   13 # determined by the 'label=...' boot monitor parameter. 
   14 PROGRAMS=       ../kernel/kernel \
   15         ../servers/pm/pm \
   16         ../servers/fs/fs \
   17         ../servers/rs/rs \
   18         ../servers/ds/ds \
   19         ../drivers/tty/tty \
   20         ../drivers/memory/memory \
   21         ../drivers/log/log \
   22         AT:../drivers/at_wini/at_wini \
   23         BIOS:../drivers/bios_wini/bios_wini \
   24         FLOPPY:../drivers/floppy/floppy \
   25         ../servers/init/init \
   26 #       bootdev.img
   27 
   28 
   29 usage:  
   30         @echo " " >&2
   31         @echo "Master Makefile to create new MINIX configuration." >& 2
   32         @echo "Root privileges are required." >&2
   33         @echo " " >&2
   34         @echo "Usage:" >&2
   35         @echo " make includes   # Install include files" >&2
   36         @echo " make depend     # Generate dependency files" >&2
   37         @echo " make libraries  # Make system libraries" >&2
   38         @echo " make services   # Compile and install all services" >&2
   39         @echo " make fresh      # Make clean, libraries, and services" >&2
   40         @echo " make image      # Make needed services and create boot image" >&2
   41         @echo " make install    # Make image, and install to hard disk" >&2
   42         @echo " make hdboot     # Make image, and install to hard disk" >&2
   43         @echo " make fdboot     # Make image, and install to floppy disk" >&2
   44         @echo " make bootable   # Make hard disk bootable" >&2
   45         @echo " make clean      # Remove all compiler results, except libs" >&2
   46         @echo " " >&2
   47         @echo "To create a fresh MINIX configuration, try:" >&2
   48         @echo " make clean install      # new boot image" >&2
   49         @echo " make fresh install      # new everything" >&2
   50         @echo " " >&2
   51 
   52 # create a fresh configuration or system image
   53 fresh: 
   54         cd ../lib && $(GMAKE) clean
   55         $(MAKE) clean 
   56         $(MAKE) libraries services
   57 
   58 all: services image
   59 
   60 image:  includes
   61         cd ../kernel && $(MAKE) 
   62         cd ../servers && $(MAKE) image
   63         cd ../drivers && $(MAKE) image
   64         installboot -image $@ $(PROGRAMS)
   65 
   66 image_small:  includes
   67         cd ../kernel && $(MAKE) 
   68         cd ../servers && $(MAKE) EXTRA_OPTS=-D_MINIX_SMALL=1 image
   69         cd ../drivers && $(MAKE) EXTRA_OPTS=$(EXTRA_OPTS) image
   70         installboot -image $@ $(PROGRAMS)
   71 
   72 # rebuild the program or system libraries
   73 includes:
   74 #       cd ../include && $(MAKE) install
   75 
   76 depend: includes
   77         cd ../ && $(MAKE) depend
   78 
   79 services: includes 
   80         cd ../kernel && $(MAKE) 
   81         cd ../servers && $(MAKE) install
   82         cd ../drivers && $(MAKE) install
   83 
   84 libraries: includes
   85         cd ../lib && $(GMAKE) clean
   86         cd ../lib && $(GMAKE) all
   87         cd ../lib && $(GMAKE) install
   88 
   89 
   90 # make bootable and place system images
   91 bootable:
   92         exec su root mkboot bootable
   93 
   94 hdboot: image
   95         exec sh mkboot $@
   96         @sync
   97 
   98 fdboot: image
   99         exec su root mkboot $@
  100         @sync
  101 
  102 install: includes services hdboot
  103 
  104 # clean up compile results
  105 clean:
  106         cd ../kernel && $(MAKE) $@
  107         cd ../servers && $(MAKE) $@
  108         cd ../drivers && $(MAKE) $@
  109         rm -rf *.bak image image_small *.iso *.iso.gz cdfdimage rootimage src
  110 

Cache object: 9aeabb1985b5b5de8bb8f15ba504fbf9


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.