Print this page
8609 want a position independent CRT


  26 # Copyright (c) 2013 Gary Mills
  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 #
  32 
  33 include ../Makefile.master
  34 
  35 #       Note that libcurses installs commands along with its library.
  36 #       This is a minor bug which probably should be fixed.
  37 #       Note also that a few extra libraries are kept in cmd source.
  38 #
  39 # Certain libraries are linked with, hence depend on, other libraries.
  40 # Library dependencies are called out explicitly, see "Library
  41 # interdependencies" below.
  42 .PARALLEL:
  43 
  44 # Build libc and its dependencies
  45 SUBDIRS=                        \
  46         common                  \
  47         ../cmd/sgs/libconv      \
  48         ../cmd/sgs/libdl        \
  49         libc                    \
  50         .WAIT
  51 
  52 # Build libraries with lots of dependents
  53 SUBDIRS +=              \
  54         libm            \
  55         libmd           \
  56         libmp           \
  57         libnsl          \
  58         libnvpair       \
  59         libsocket       \
  60         .WAIT
  61 
  62 # Build everything else. Aside from explicit dependencies, all libraries
  63 # are built in parallel.
  64 SUBDIRS +=                              \
  65         ../cmd/sendmail/libmilter       \
  66         ../cmd/sgs/libelf       \


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




  26 # Copyright (c) 2013 Gary Mills
  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 #
  32 
  33 include ../Makefile.master
  34 
  35 #       Note that libcurses installs commands along with its library.
  36 #       This is a minor bug which probably should be fixed.
  37 #       Note also that a few extra libraries are kept in cmd source.
  38 #
  39 # Certain libraries are linked with, hence depend on, other libraries.
  40 # Library dependencies are called out explicitly, see "Library
  41 # interdependencies" below.
  42 .PARALLEL:
  43 
  44 # Build libc and its dependencies
  45 SUBDIRS=                        \
  46         crt                     \
  47         ../cmd/sgs/libconv      \
  48         ../cmd/sgs/libdl        \
  49         libc                    \
  50         .WAIT
  51 
  52 # Build libraries with lots of dependents
  53 SUBDIRS +=              \
  54         libm            \
  55         libmd           \
  56         libmp           \
  57         libnsl          \
  58         libnvpair       \
  59         libsocket       \
  60         .WAIT
  61 
  62 # Build everything else. Aside from explicit dependencies, all libraries
  63 # are built in parallel.
  64 SUBDIRS +=                              \
  65         ../cmd/sendmail/libmilter       \
  66         ../cmd/sgs/libelf       \


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