1 #
   2 # CDDL HEADER START
   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 # Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
  22 # Copyright (c) 2014, Joyent, Inc.
  23 #
  24 
  25 VER =   ntp-dev-4.2.7p446
  26 
  27 include ../Makefile.defs
  28 
  29 AUTOCONF_OPTS += \
  30         --prefix=/usr \
  31         --mandir=/usr/man \
  32         --bindir=/usr/sbin \
  33         --with-binsubdir=sbin \
  34         --libexecdir=/usr/sbin \
  35         --sysconfdir=/etc/inet \
  36         --with-perl=$(PATH_PERL) \
  37         --with-perllibdir=$(PERLLIBDIR) \
  38         --enable-all-clocks \
  39         --enable-debugging \
  40         --enable-debug-timing \
  41         --disable-optional-args \
  42         --enable-parse-clocks \
  43         --enable-ignore-dns-errors \
  44         --without-ntpsnmpd \
  45         --without-lineeditlibs \
  46         --with-crypto=sunw \
  47         --disable-getifaddrs
  48 
  49 CFLAGS += \
  50         -O2 -gdwarf-2 \
  51         -fno-inline-functions \
  52         -fno-inline-functions-called-once \
  53         -fno-inline-small-functions
  54 
  55 AUTOCONF_ENV += \
  56         LD_OPTIONS="$(LDFLAGS)" \
  57         DESTDIR="$(DESTDIR)" \
  58         CTFMERGE="$(CTFMERGE)" \
  59         CTFCONVERT="$(CTFCONVERT)"
  60 
  61 PATCHSTRIP =    0
  62 PATCHES =       Patches/*
  63 
  64 CTF_PROGRAMS_USR_SBIN = \
  65         ntp-keygen \
  66         ntpd \
  67         ntpdate \
  68         ntpdc \
  69         ntpq \
  70         ntptime \
  71         tickadj
  72 
  73 CTF_PROGRAMS = $(CTF_PROGRAMS_USR_SBIN:%=/usr/sbin/%)
  74 
  75 include ../Makefile.targ
  76 
  77 all: all_autoconf
  78 
  79 install: all
  80         (cd $(VER.32); env - $(AUTOCONF_ENV) PATH=$(PATH) gmake $(install_PARALLEL) install)
  81         (env - $(AUTOCONF_ENV) $(MAKE_CTF.32) $(CTF_PROGRAMS))
  82         (env - $(AUTOCONF_ENV) ./install-ntp)