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/boot/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 boot monitor package.
    2 
    3 SYS     = ..
    4 
    5 CC      = exec cc
    6 CC86    = exec cc -mi86 -Was-ncc
    7 CFLAGS  = -I$(SYS)
    8 LIBS    = -lsys
    9 LD      = $(CC) -s -.o
   10 LD86    = $(CC86) -.o
   11 BIN     = /usr/bin
   12 MDEC    = /usr/mdec
   13 
   14 all:    bootblock boot edparams masterboot jumpboot installboot addaout
   15 dos:    boot.com mkfile.com
   16 
   17 bootblock:      bootblock.s
   18         $(LD86) -com -o $@ bootblock.s
   19 
   20 masterboot:     masterboot.s
   21         $(LD86) -com -o $@ masterboot.s
   22 
   23 jumpboot:       jumpboot.s
   24         $(LD86) -com -o $@ jumpboot.s
   25 
   26 boot.o: boot.c
   27         $(CC86) $(CFLAGS) -c boot.c
   28 
   29 bootimage.o:    bootimage.c
   30         $(CC86) $(CFLAGS) -c bootimage.c
   31 
   32 rawfs86.o:      rawfs.c rawfs.o
   33         ln -f rawfs.c rawfs86.c
   34         $(CC86) $(CFLAGS) -c rawfs86.c
   35         rm rawfs86.c
   36         -cmp -s rawfs.o rawfs86.o && ln -f rawfs.o rawfs86.o
   37 
   38 boot:   boothead.s boot.o bootimage.o rawfs86.o
   39         $(LD86) -o $@ \
   40                 boothead.s boot.o bootimage.o rawfs86.o $(LIBS)
   41         install -S 8kb boot
   42 
   43 edparams.o:     boot.c
   44         ln -f boot.c edparams.c
   45         $(CC) $(CFLAGS) -DUNIX -c edparams.c
   46         rm edparams.c
   47 
   48 edparams:       edparams.o rawfs.o
   49         $(CC) $(CFLAGS) $(STRIP) -o $@ edparams.o rawfs.o
   50         install -S 16kw edparams
   51 
   52 dosboot.o:      boot.c
   53         $(CC86) $(CFLAGS) -DDOS -o $@ -c boot.c
   54 
   55 doshead.o:      doshead.s
   56         $(CC) -mi386 -o $@ -c doshead.s
   57 
   58 dosboot:        doshead.o dosboot.o bootimage.o rawfs86.o
   59         $(LD86) -com -o $@ \
   60                 doshead.o dosboot.o bootimage.o rawfs86.o $(LIBS)
   61 
   62 boot.com:       dosboot
   63         ./a.out2com dosboot boot.com
   64 
   65 mkfile: mkfhead.s mkfile.c
   66         $(LD) -.o -mi86 -com -o $@ mkfhead.s mkfile.c $(LIBS)
   67 
   68 mkfile.com:     mkfile
   69         ./a.out2com mkfile mkfile.com
   70 
   71 installboot:    installboot.o rawfs.o
   72         $(CC) $(STRIP) -o installboot installboot.o rawfs.o
   73         install -S 6kw installboot
   74 
   75 addaout:        addaout.o
   76         $(CC) -o addaout addaout.o
   77 
   78 installboot.o bootimage.o: image.h
   79 boot.o bootimage.o dosboot.o edparams.o: boot.h
   80 rawfs.o rawfs86.o installboot.o boot.o bootimage.o: rawfs.h
   81 
   82 install:        $(MDEC)/bootblock $(MDEC)/boot $(MDEC)/masterboot \
   83                 $(MDEC)/jumpboot $(BIN)/installboot $(BIN)/edparams
   84 dosinstall:     $(MDEC)/boot.com $(MDEC)/mkfile.com
   85 
   86 $(MDEC)/bootblock:      bootblock
   87         install -cs -o bin -m 644 $? $@
   88 
   89 $(MDEC)/boot:           boot
   90         install -cs -o bin -m 644 $? $@
   91 
   92 $(MDEC)/boot.com:       boot.com
   93         install -c -m 644 $? $@
   94 
   95 $(MDEC)/mkfile.com:     mkfile.com
   96         install -c -m 644 $? $@
   97 
   98 $(MDEC)/masterboot:     masterboot
   99         install -cs -o bin -m 644 $? $@
  100 
  101 $(MDEC)/jumpboot:       jumpboot
  102         install -cs -o bin -m 644 $? $@
  103 
  104 $(BIN)/installboot:     installboot
  105         install -cs -o bin $? $@
  106 
  107 $(BIN)/addaout: addaout
  108         install -cs -o bin $? $@
  109 
  110 $(BIN)/edparams:        edparams
  111         install -cs -o bin $? $@
  112 
  113 clean:
  114         rm -f *.bak *.o
  115         rm -f bootblock addaout installboot boot masterboot jumpboot edparams 
  116         rm -f dosboot boot.com mkfile mkfile.com

Cache object: 90be95da86351aa388040a4cd9b5b872


[ 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.