Print this page
8609 want a position independent CRT
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Albert Lee <trisk@forkgnu.org>
Approved by:


  27 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  28 # Copyright (c) 2015 Gary Mills
  29 # Copyright 2016 Toomas Soome <tsoome@me.com>
  30 # Copyright 2017 Nexenta Systems, Inc.
  31 # Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
  32 #
  33 
  34 include ../Makefile.master
  35 
  36 #       Note that libcurses installs commands along with its library.
  37 #       This is a minor bug which probably should be fixed.
  38 #       Note also that a few extra libraries are kept in cmd source.
  39 #
  40 # Certain libraries are linked with, hence depend on, other libraries.
  41 # Library dependencies are called out explicitly, see "Library
  42 # interdependencies" below.
  43 .PARALLEL:
  44 
  45 # Build libc and its dependencies
  46 SUBDIRS=                        \
  47         common                  \
  48         ../cmd/sgs/libconv      \
  49         ../cmd/sgs/libdl        \
  50         libc                    \
  51         .WAIT
  52 
  53 # Build libraries with lots of dependents
  54 SUBDIRS +=              \
  55         libm            \
  56         libmd           \
  57         libmp           \
  58         libnsl          \
  59         libnvpair       \
  60         libsocket       \
  61         .WAIT
  62 
  63 # Build everything else. Aside from explicit dependencies, all libraries
  64 # are built in parallel.
  65 SUBDIRS +=                              \
  66         ../cmd/sendmail/libmilter       \
  67         ../cmd/sgs/libelf       \


 532 #
 533 
 534 all:                    $(SUBDIRS)
 535 
 536 install:                $(SUBDIRS) .WAIT install_extra
 537 
 538 # extra libraries kept in other source areas
 539 install_extra:
 540         @cd ../cmd/sgs; pwd; $(MAKE) install_lib
 541         @pwd
 542 
 543 clean clobber lint:     $(NOWAIT_SUBDIRS:%=%-nodepend)
 544 
 545 install_h check:        $(HDRSUBDIRS:%=%-nodepend)
 546 
 547 _msg:                   $(MSGSUBDIRS:%=%-nodepend) .WAIT _dc
 548 
 549 _dc:                    $(DCSUBDIRS:%=%-nodepend)
 550 
 551 # Library interdependencies are called out explicitly here.
 552 ../cmd/sgs/libconv: common
 553 ../cmd/sgs/libdl: common
 554 libc:           ../cmd/sgs/libconv ../cmd/sgs/libdl
 555 
 556 libm:           libc
 557 libmd:          libc
 558 libmp:          libc
 559 libnsl:         libc libmd libmp
 560 libnvpair:      libc libnsl
 561 libsocket:      libc libnsl
 562 
 563 basedeps:       libc libm libmd libmp libnsl libnvpair libsocket
 564 basedeps :=     TARGET=install
 565 
 566 # The following dependencies are currently required by libdbus-1 and should
 567 # be used for anything linking against it.
 568 dbusdeps:       libsecdb libtsol libinetutil libscf libuutil libgen libsmbios
 569 
 570 # The following dependencies don't need to be listed below as they are built
 571 # before everything else:
 572 # libc libm libmd libmp libnsl libnvpair libsocket
 573 abi:            libctf libmapmalloc libproc




  27 # Copyright 2014 Garrett D'Amore <garrett@damore.org>
  28 # Copyright (c) 2015 Gary Mills
  29 # Copyright 2016 Toomas Soome <tsoome@me.com>
  30 # Copyright 2017 Nexenta Systems, Inc.
  31 # Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
  32 #
  33 
  34 include ../Makefile.master
  35 
  36 #       Note that libcurses installs commands along with its library.
  37 #       This is a minor bug which probably should be fixed.
  38 #       Note also that a few extra libraries are kept in cmd source.
  39 #
  40 # Certain libraries are linked with, hence depend on, other libraries.
  41 # Library dependencies are called out explicitly, see "Library
  42 # interdependencies" below.
  43 .PARALLEL:
  44 
  45 # Build libc and its dependencies
  46 SUBDIRS=                        \
  47         crt                     \
  48         ../cmd/sgs/libconv      \
  49         ../cmd/sgs/libdl        \
  50         libc                    \
  51         .WAIT
  52 
  53 # Build libraries with lots of dependents
  54 SUBDIRS +=              \
  55         libm            \
  56         libmd           \
  57         libmp           \
  58         libnsl          \
  59         libnvpair       \
  60         libsocket       \
  61         .WAIT
  62 
  63 # Build everything else. Aside from explicit dependencies, all libraries
  64 # are built in parallel.
  65 SUBDIRS +=                              \
  66         ../cmd/sendmail/libmilter       \
  67         ../cmd/sgs/libelf       \


 532 #
 533 
 534 all:                    $(SUBDIRS)
 535 
 536 install:                $(SUBDIRS) .WAIT install_extra
 537 
 538 # extra libraries kept in other source areas
 539 install_extra:
 540         @cd ../cmd/sgs; pwd; $(MAKE) install_lib
 541         @pwd
 542 
 543 clean clobber lint:     $(NOWAIT_SUBDIRS:%=%-nodepend)
 544 
 545 install_h check:        $(HDRSUBDIRS:%=%-nodepend)
 546 
 547 _msg:                   $(MSGSUBDIRS:%=%-nodepend) .WAIT _dc
 548 
 549 _dc:                    $(DCSUBDIRS:%=%-nodepend)
 550 
 551 # Library interdependencies are called out explicitly here.
 552 ../cmd/sgs/libconv: crt
 553 ../cmd/sgs/libdl: crt
 554 libc:           ../cmd/sgs/libconv ../cmd/sgs/libdl
 555 
 556 libm:           libc
 557 libmd:          libc
 558 libmp:          libc
 559 libnsl:         libc libmd libmp
 560 libnvpair:      libc libnsl
 561 libsocket:      libc libnsl
 562 
 563 basedeps:       libc libm libmd libmp libnsl libnvpair libsocket
 564 basedeps :=     TARGET=install
 565 
 566 # The following dependencies are currently required by libdbus-1 and should
 567 # be used for anything linking against it.
 568 dbusdeps:       libsecdb libtsol libinetutil libscf libuutil libgen libsmbios
 569 
 570 # The following dependencies don't need to be listed below as they are built
 571 # before everything else:
 572 # libc libm libmd libmp libnsl libnvpair libsocket
 573 abi:            libctf libmapmalloc libproc