Print this page
OS-2552 add node-lockfd (v0.0.2) to platform
OS-2558 smartos-live should run tools from proto.strap, not proto

Split Close
Expand all
Collapse all
          --- old/src/Makefile.defs
          +++ new/src/Makefile.defs
↓ open down ↓ 15 lines elided ↑ open up ↑
  16   16  # fields enclosed by brackets "[]" replaced with your own identifying
  17   17  # information: Portions Copyright [yyyy] [name of copyright owner]
  18   18  #
  19   19  # CDDL HEADER END
  20   20  #
  21   21  # Copyright (c) 2012, Joyent, Inc.
  22   22  #
  23   23  
  24   24  BASE =          $(PWD)
  25   25  DESTDIR =       $(BASE)/../proto
       26 +NATIVEDIR =     $(BASE)/../proto.strap
       27 +ILLUMOS_SRC =   $(BASE)/../projects/illumos/usr/src
  26   28  
  27   29  ifeq ($(shell uname -s),Darwin)
  28   30  MAKE =          make
  29   31  PATH =          $(DESTDIR)/usr/bin:/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
  30   32  else
  31   33  MAKE =          gmake
  32      -PATH =          $(DESTDIR)/usr/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
       34 +PATH =          $(NATIVEDIR)/usr/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
  33   35  endif
  34   36  
  35   37  PARALLEL =      -j128
  36      -GCC =           $(DESTDIR)/usr/bin/gcc
  37      -GXX =           $(DESTDIR)/usr/bin/g++
       38 +GCC =           $(NATIVEDIR)/usr/bin/gcc
       39 +GXX =           $(NATIVEDIR)/usr/bin/g++
       40 +
       41 +CTFBINDIR =     $(ILLUMOS_SRC)/tools/proto/root_i386-nd/opt/onbld/bin/i386
       42 +CTFMERGE =      $(CTFBINDIR)/ctfmerge
       43 +CTFCONVERT =    $(CTFBINDIR)/ctfconvert
  38   44  
  39   45  SYSINCDIRS =    /usr/include
  40   46  SYSLIBDIRS =    /usr/lib /lib
  41   47  
  42   48  CPPFLAGS =      $(SYSINCDIRS:%=-isystem $(DESTDIR)/%)
  43   49  LDFLAGS =       $(SYSLIBDIRS:%=-L$(DESTDIR)/%) -Wl,-zassert-deflib \
  44   50                      -Wl,-zfatal-warnings
  45   51  
  46   52  PREFIX_NODE =   $(DESTDIR)/usr/node/0.8
       53 +NODE_EXEC =     $(NATIVEDIR)/usr/node/0.8/bin/node
  47   54  
  48   55  DEBUG_FLAGS =   -g
  49   56  WARN_FLAGS =    -Wall -Wextra -Werror
  50   57  PIC_FLAGS =     -fPIC
  51   58  OPT_FLAGS =     -O2
  52   59  
  53   60  NODE_CFLAGS =   $(DEBUG_FLAGS) $(WARN_FLAGS) $(PIC_FLAGS) $(OPT_FLAGS)
  54   61  
  55   62  STD_DEFS =      -D_GNU_SOURCE
  56   63  NODE_DEFS =     -DBUILDING_NODE_EXTENSION
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX