Print this page
OS-3330 NTP should ship with CTF data
OS-3331 OpenLLDP should ship with CTF data


  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 COPYING.
  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) 2014, Joyent, Inc.
  22 #
  23 
  24 BASE =          $(PWD)
  25 DESTDIR =       $(BASE)/../proto
  26 VER.32 =        $(VER)-32$(STRAP)
  27 VER.64 =        $(VER)-64$(STRAP)
  28 OBJ.32 =        $(VER.32)$(SEPARATE_BUILD:yes=.build)
  29 OBJ.64 =        $(VER.64)$(SEPARATE_BUILD:yes=.build)


  30 
  31 ifeq ($(STRAP),strap)
  32 STRAPPROTO =    $(DESTDIR)
  33 else
  34 STRAPPROTO =    $(DESTDIR:proto=proto.strap)
  35 endif
  36 
  37 PATH =          $(STRAPPROTO)/usr/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
  38 
  39 MAKE =          gmake
  40 PARALLEL =      -j128
  41 MAKE_VERBOSE =  V=1
  42 GCC =           $(DESTDIR)/usr/bin/gcc
  43 GXX =           $(DESTDIR)/usr/bin/g++
  44 GCC.64 =        $(GCC) -m64
  45 GXX.64 =        $(GXX) -m64
  46 
  47 GCC.host =      /opt/local/bin/gcc
  48 GXX.host =      /opt/local/bin/g++
  49 GCC.host.64 =   $(GCC.host) -m64


 142 TARBALL =               $(VER).tar.gz
 143 TARBALL_COMPRESS =      -z
 144 
 145 UNPACK_SENTINEL =       configure
 146 FROB_SENTINEL.32 =      chmod 755 $(VER.32)/$(UNPACK_SENTINEL)
 147 FROB_SENTINEL.64 =      chmod 755 $(VER.64)/$(UNPACK_SENTINEL)
 148 
 149 PATCHSTRIP =    1
 150 
 151 APPLY_PATCHES.32 = \
 152         for p in $(PATCHES); do \
 153             echo "Applying $$p"; \
 154             $(GPATCH) -d .unpack32/$(VER) -p$(PATCHSTRIP) < "$$p" || exit 1; \
 155             done
 156 
 157 APPLY_PATCHES.64 = \
 158         for p in $(PATCHES); do \
 159             echo "Applying $$p"; \
 160             $(GPATCH) -d .unpack64/$(VER) -p$(PATCHSTRIP) < "$$p" || exit 1; \
 161             done




 162 
 163 .DEFAULT_GOAL =         all


  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 COPYING.
  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) 2014, Joyent, Inc.
  22 #
  23 
  24 BASE =          $(PWD)
  25 DESTDIR =       $(BASE)/../proto
  26 VER.32 =        $(VER)-32$(STRAP)
  27 VER.64 =        $(VER)-64$(STRAP)
  28 OBJ.32 =        $(VER.32)$(SEPARATE_BUILD:yes=.build)
  29 OBJ.64 =        $(VER.64)$(SEPARATE_BUILD:yes=.build)
  30 CTF.32 =        ctfobjects-32$(STRAP)
  31 CTF.64 =        ctfobjects-64$(STRAP)
  32 
  33 ifeq ($(STRAP),strap)
  34 STRAPPROTO =    $(DESTDIR)
  35 else
  36 STRAPPROTO =    $(DESTDIR:proto=proto.strap)
  37 endif
  38 
  39 PATH =          $(STRAPPROTO)/usr/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
  40 
  41 MAKE =          gmake
  42 PARALLEL =      -j128
  43 MAKE_VERBOSE =  V=1
  44 GCC =           $(DESTDIR)/usr/bin/gcc
  45 GXX =           $(DESTDIR)/usr/bin/g++
  46 GCC.64 =        $(GCC) -m64
  47 GXX.64 =        $(GXX) -m64
  48 
  49 GCC.host =      /opt/local/bin/gcc
  50 GXX.host =      /opt/local/bin/g++
  51 GCC.host.64 =   $(GCC.host) -m64


 144 TARBALL =               $(VER).tar.gz
 145 TARBALL_COMPRESS =      -z
 146 
 147 UNPACK_SENTINEL =       configure
 148 FROB_SENTINEL.32 =      chmod 755 $(VER.32)/$(UNPACK_SENTINEL)
 149 FROB_SENTINEL.64 =      chmod 755 $(VER.64)/$(UNPACK_SENTINEL)
 150 
 151 PATCHSTRIP =    1
 152 
 153 APPLY_PATCHES.32 = \
 154         for p in $(PATCHES); do \
 155             echo "Applying $$p"; \
 156             $(GPATCH) -d .unpack32/$(VER) -p$(PATCHSTRIP) < "$$p" || exit 1; \
 157             done
 158 
 159 APPLY_PATCHES.64 = \
 160         for p in $(PATCHES); do \
 161             echo "Applying $$p"; \
 162             $(GPATCH) -d .unpack64/$(VER) -p$(PATCHSTRIP) < "$$p" || exit 1; \
 163             done
 164 
 165 MAKE_CTF =              $(BASE)/../tools/make-ctf
 166 MAKE_CTF.32 =           $(MAKE_CTF) $(OBJ.32) $(CTF.32) $(VER)
 167 MAKE_CTF.64 =           $(MAKE_CTF) $(OBJ.64) $(CTF.64) $(VER)
 168 
 169 .DEFAULT_GOAL =         all