123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324 |
-
-
-
-
-
-
- MAKEFLAGS=-r
-
-
- srcdir := ..
- abs_srcdir := $(abspath $(srcdir))
-
-
- builddir_name ?= .
-
-
- ifdef V
- quiet=
- else
- quiet=quiet_
- endif
-
-
- BUILDTYPE ?= Release
-
-
-
-
- builddir ?= $(builddir_name)/$(BUILDTYPE)
- abs_builddir := $(abspath $(builddir))
- depsdir := $(builddir)/.deps
-
-
- obj := $(builddir)/obj
- abs_obj := $(abspath $(obj))
-
-
-
- all_deps :=
-
-
-
- CC.target ?= $(CC)
- CFLAGS.target ?= $(CPPFLAGS) $(CFLAGS)
- CXX.target ?= $(CXX)
- CXXFLAGS.target ?= $(CPPFLAGS) $(CXXFLAGS)
- LINK.target ?= $(LINK)
- LDFLAGS.target ?= $(LDFLAGS)
- AR.target ?= $(AR)
-
-
- LINK ?= $(CXX.target)
-
-
-
- CC.host ?= gcc
- CFLAGS.host ?= $(CPPFLAGS_host) $(CFLAGS_host)
- CXX.host ?= g++
- CXXFLAGS.host ?= $(CPPFLAGS_host) $(CXXFLAGS_host)
- LINK.host ?= $(CXX.host)
- LDFLAGS.host ?= $(LDFLAGS_host)
- AR.host ?= ar
-
-
-
-
-
- empty :=
- space := $(empty) $(empty)
-
-
- replace_spaces = $(subst $(space),?,$1)
- unreplace_spaces = $(subst ?,$(space),$1)
- dirx = $(call unreplace_spaces,$(dir $(call replace_spaces,$1)))
-
-
-
-
-
- depfile = $(depsdir)/$(call replace_spaces,$@).d
- DEPFLAGS = -MMD -MF $(depfile).raw
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- define fixup_dep
-
- touch $(depfile).raw
-
- sed -e "s|^$(notdir $@)|$@|" $(depfile).raw >> $(depfile)
-
-
-
-
- sed -e 's|\\||' -e 'y| |\n|' $(depfile).raw |\
- grep -v '^$$' |\
- sed -e 1d -e 's|$$|:|' \
- >> $(depfile)
- rm $(depfile).raw
- endef
-
-
-
-
-
- quiet_cmd_cc = CC($(TOOLSET)) $@
- cmd_cc = $(CC.$(TOOLSET)) -o $@ $< $(GYP_CFLAGS) $(DEPFLAGS) $(CFLAGS.$(TOOLSET)) -c
-
- quiet_cmd_cxx = CXX($(TOOLSET)) $@
- cmd_cxx = $(CXX.$(TOOLSET)) -o $@ $< $(GYP_CXXFLAGS) $(DEPFLAGS) $(CXXFLAGS.$(TOOLSET)) -c
-
- quiet_cmd_touch = TOUCH $@
- cmd_touch = touch $@
-
- quiet_cmd_copy = COPY $@
-
- cmd_copy = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp -af "$<" "$@")
-
- quiet_cmd_alink = AR($(TOOLSET)) $@
- cmd_alink = rm -f $@ && $(AR.$(TOOLSET)) crs $@ $(filter %.o,$^)
-
- quiet_cmd_alink_thin = AR($(TOOLSET)) $@
- cmd_alink_thin = rm -f $@ && $(AR.$(TOOLSET)) crsT $@ $(filter %.o,$^)
-
-
-
-
- quiet_cmd_link = LINK($(TOOLSET)) $@
- cmd_link = $(LINK.$(TOOLSET)) -o $@ $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,--start-group $(LD_INPUTS) $(LIBS) -Wl,--end-group
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- quiet_cmd_solink = SOLINK($(TOOLSET)) $@
- cmd_solink = $(LINK.$(TOOLSET)) -o $@ -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -Wl,--whole-archive $(LD_INPUTS) -Wl,--no-whole-archive $(LIBS)
-
- quiet_cmd_solink_module = SOLINK_MODULE($(TOOLSET)) $@
- cmd_solink_module = $(LINK.$(TOOLSET)) -o $@ -shared $(GYP_LDFLAGS) $(LDFLAGS.$(TOOLSET)) -Wl,-soname=$(@F) -Wl,--start-group $(filter-out FORCE_DO_CMD, $^) -Wl,--end-group $(LIBS)
-
-
-
-
-
- escape_quotes = $(subst ','\'',$(1))
-
-
-
-
- escape_vars = $(subst $$,$$$$,$(1))
-
-
-
-
- exact_echo = printf '%s\n' '$(call escape_quotes,$(1))'
-
-
-
-
-
-
-
-
-
-
-
-
- command_changed = $(or $(subst $(cmd_$(1)),,$(cmd_$(call replace_spaces,$@))),\
- $(subst $(cmd_$(call replace_spaces,$@)),,$(cmd_$(1))))
-
-
-
-
-
-
- prereq_changed = $(filter-out FORCE_DO_CMD,$(filter-out $|,$?))
-
-
- define do_postbuilds
- @E=0;\
- for p in $(POSTBUILDS); do\
- eval $$p;\
- E=$$?;\
- if [ $$E -ne 0 ]; then\
- break;\
- fi;\
- done;\
- if [ $$E -ne 0 ]; then\
- rm -rf "$@";\
- exit $$E;\
- fi
- endef
-
-
-
-
-
-
-
- define do_cmd
- $(if $(or $(command_changed),$(prereq_changed)),
- @$(call exact_echo, $($(quiet)cmd_$(1)))
- @mkdir -p "$(call dirx,$@)" "$(dir $(depfile))"
- $(if $(findstring flock,$(word 1,$(cmd_$1))),
- @$(cmd_$(1))
- @echo " $(quiet_cmd_$(1)): Finished",
- @$(cmd_$(1))
- )
- @$(call exact_echo,$(call escape_vars,cmd_$(call replace_spaces,$@) := $(cmd_$(1)))) > $(depfile)
- @$(if $(2),$(fixup_dep))
- $(if $(and $(3), $(POSTBUILDS)),
- $(call do_postbuilds)
- )
- )
- endef
-
-
-
- .PHONY: all
- all:
-
-
-
-
- %.d: ;
-
-
-
- .PHONY: FORCE_DO_CMD
- FORCE_DO_CMD:
-
- TOOLSET := target
-
- $(obj).$(TOOLSET)/%.o: $(srcdir)/%.c FORCE_DO_CMD
- @$(call do_cmd,cc,1)
- $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cc FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cpp FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(srcdir)/%.cxx FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(srcdir)/%.s FORCE_DO_CMD
- @$(call do_cmd,cc,1)
- $(obj).$(TOOLSET)/%.o: $(srcdir)/%.S FORCE_DO_CMD
- @$(call do_cmd,cc,1)
-
-
- $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.c FORCE_DO_CMD
- @$(call do_cmd,cc,1)
- $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cc FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cpp FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.cxx FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.s FORCE_DO_CMD
- @$(call do_cmd,cc,1)
- $(obj).$(TOOLSET)/%.o: $(obj).$(TOOLSET)/%.S FORCE_DO_CMD
- @$(call do_cmd,cc,1)
-
- $(obj).$(TOOLSET)/%.o: $(obj)/%.c FORCE_DO_CMD
- @$(call do_cmd,cc,1)
- $(obj).$(TOOLSET)/%.o: $(obj)/%.cc FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(obj)/%.cpp FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(obj)/%.cxx FORCE_DO_CMD
- @$(call do_cmd,cxx,1)
- $(obj).$(TOOLSET)/%.o: $(obj)/%.s FORCE_DO_CMD
- @$(call do_cmd,cc,1)
- $(obj).$(TOOLSET)/%.o: $(obj)/%.S FORCE_DO_CMD
- @$(call do_cmd,cc,1)
-
-
- ifeq ($(strip $(foreach prefix,$(NO_LOAD),\
- $(findstring $(join ^,$(prefix)),\
- $(join ^,secp256k1.target.mk)))),)
- include secp256k1.target.mk
- endif
-
- quiet_cmd_regen_makefile = ACTION Regenerating $@
- cmd_regen_makefile = cd $(srcdir); /usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/caligvla/.cache/node-gyp/17.0.1" "-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/home/caligvla/.cache/node-gyp/17.0.1/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/caligvla/httxrp/node_modules/tiny-secp256k1" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/caligvla/httxrp/node_modules/tiny-secp256k1/build/config.gypi -I/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/caligvla/.cache/node-gyp/17.0.1/include/node/common.gypi "--toplevel-dir=." binding.gyp
- Makefile: $(srcdir)/../../../.cache/node-gyp/17.0.1/include/node/common.gypi $(srcdir)/build/config.gypi $(srcdir)/binding.gyp $(srcdir)/../../../../../usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi
- $(call do_cmd,regen_makefile)
-
-
-
- all:
-
-
-
- d_files := $(wildcard $(foreach f,$(all_deps),$(depsdir)/$(f).d))
- ifneq ($(d_files),)
- include $(d_files)
- endif
|