1 #
   2 # Copyright (c) 2013 Joyent, Inc.  All rights reserved.
   3 #
   4 
   5 PREFIX_NODE :=  $(shell dirname $$(bash -c 'hash node; hash -t node'))/..
   6 V8PLUS :=       $(shell $(PREFIX_NODE)/bin/node -e 'require("v8plus");')
   7 
   8 include $(V8PLUS)/Makefile.v8plus.defs
   9 
  10 MODULE =        lockfd_binding
  11 
  12 SRCS =  \
  13                 lockfd.c
  14 
  15 ERRNO_JSON =    errno.json
  16 
  17 CC =            /opt/local/bin/gcc
  18 CXX =           /opt/local/bin/g++
  19 
  20 #WARN_FLAGS +=  -Wno-error=unused-parameter
  21 
  22 #LDFLAGS +=     -L/usr/lib/fm -R/usr/lib/fm
  23 LIBS +=         -lumem
  24 
  25 include $(V8PLUS)/Makefile.v8plus.targ