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


   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at COPYING
  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) 2012, Joyent, Inc.
  22 #
  23 
  24 BASE =          $(PWD)
  25 DESTDIR =       $(BASE)/../proto


  26 
  27 ifeq ($(shell uname -s),Darwin)
  28 MAKE =          make
  29 PATH =          $(DESTDIR)/usr/bin:/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
  30 else
  31 MAKE =          gmake
  32 PATH =          $(DESTDIR)/usr/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
  33 endif
  34 
  35 PARALLEL =      -j128
  36 GCC =           $(DESTDIR)/usr/bin/gcc
  37 GXX =           $(DESTDIR)/usr/bin/g++




  38 
  39 SYSINCDIRS =    /usr/include
  40 SYSLIBDIRS =    /usr/lib /lib
  41 
  42 CPPFLAGS =      $(SYSINCDIRS:%=-isystem $(DESTDIR)/%)
  43 LDFLAGS =       $(SYSLIBDIRS:%=-L$(DESTDIR)/%) -Wl,-zassert-deflib \
  44                     -Wl,-zfatal-warnings
  45 
  46 PREFIX_NODE =   $(DESTDIR)/usr/node/0.8

  47 
  48 DEBUG_FLAGS =   -g
  49 WARN_FLAGS =    -Wall -Wextra -Werror
  50 PIC_FLAGS =     -fPIC
  51 OPT_FLAGS =     -O2
  52 
  53 NODE_CFLAGS =   $(DEBUG_FLAGS) $(WARN_FLAGS) $(PIC_FLAGS) $(OPT_FLAGS)
  54 
  55 STD_DEFS =      -D_GNU_SOURCE
  56 NODE_DEFS =     -DBUILDING_NODE_EXTENSION
  57 LF64_DEFS =     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  58 PIC_DEFS =      -DPIC
  59 NODE_INCS =     -isystem $(PREFIX_NODE)/include/node -I.
  60 
  61 NODE_CPPFLAGS = $(STD_DEFS) $(NODE_DEFS) $(LF64_DEFS) $(PIC_DEFS) $(NODE_INCS)
  62 
  63 SHARED_FLAGS =  -shared
  64 ZTEXT =         -Wl,-ztext
  65 NODE_LIBDIR =   -L$(PREFIX_NODE)/lib
  66 




   6 # (the "License").  You may not use this file except in compliance
   7 # with the License.
   8 #
   9 # You can obtain a copy of the license at COPYING
  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) 2012, Joyent, Inc.
  22 #
  23 
  24 BASE =          $(PWD)
  25 DESTDIR =       $(BASE)/../proto
  26 NATIVEDIR =     $(BASE)/../proto.strap
  27 ILLUMOS_SRC =   $(BASE)/../projects/illumos/usr/src
  28 
  29 ifeq ($(shell uname -s),Darwin)
  30 MAKE =          make
  31 PATH =          $(DESTDIR)/usr/bin:/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
  32 else
  33 MAKE =          gmake
  34 PATH =          $(NATIVEDIR)/usr/bin:/usr/bin:/usr/sbin:/sbin:/opt/local/bin
  35 endif
  36 
  37 PARALLEL =      -j128
  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
  44 
  45 SYSINCDIRS =    /usr/include
  46 SYSLIBDIRS =    /usr/lib /lib
  47 
  48 CPPFLAGS =      $(SYSINCDIRS:%=-isystem $(DESTDIR)/%)
  49 LDFLAGS =       $(SYSLIBDIRS:%=-L$(DESTDIR)/%) -Wl,-zassert-deflib \
  50                     -Wl,-zfatal-warnings
  51 
  52 PREFIX_NODE =   $(DESTDIR)/usr/node/0.8
  53 NODE_EXEC =     $(NATIVEDIR)/usr/node/0.8/bin/node
  54 
  55 DEBUG_FLAGS =   -g
  56 WARN_FLAGS =    -Wall -Wextra -Werror
  57 PIC_FLAGS =     -fPIC
  58 OPT_FLAGS =     -O2
  59 
  60 NODE_CFLAGS =   $(DEBUG_FLAGS) $(WARN_FLAGS) $(PIC_FLAGS) $(OPT_FLAGS)
  61 
  62 STD_DEFS =      -D_GNU_SOURCE
  63 NODE_DEFS =     -DBUILDING_NODE_EXTENSION
  64 LF64_DEFS =     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  65 PIC_DEFS =      -DPIC
  66 NODE_INCS =     -isystem $(PREFIX_NODE)/include/node -I.
  67 
  68 NODE_CPPFLAGS = $(STD_DEFS) $(NODE_DEFS) $(LF64_DEFS) $(PIC_DEFS) $(NODE_INCS)
  69 
  70 SHARED_FLAGS =  -shared
  71 ZTEXT =         -Wl,-ztext
  72 NODE_LIBDIR =   -L$(PREFIX_NODE)/lib
  73