1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- include ../../buildenv.mk
- TCMALLOC := libsgx_tcmalloc.a
- SRCDIR := gperftools-2.5
- DEBUG_FLAG :=
- ifdef DEBUG
- DEBUG_FLAG += DEBUG
- endif
- .PHONY: all
- all: $(TCMALLOC) | $(BUILD_DIR)
- $(CP) $(TCMALLOC) $|
- .PHONY: libtcmalloc
- libtcmalloc:
- cd $(SRCDIR) && ( test -f Makefile || ./autogen-linux.sh $(DEBUG_FLAG)) && $(MAKE)
- $(TCMALLOC): libtcmalloc
- $(CP) $(SRCDIR)/.libs/libtcmalloc_minimal.a $(TCMALLOC)
- $(BUILD_DIR):
- @$(MKDIR) $@
- .PHONY: clean
- clean:
- @test ! -f $(SRCDIR)/Makefile || $(MAKE) -C $(SRCDIR) clean
- @$(RM) -r $(SRCDIR)/Makefile $(TCMALLOC) $(BUILD_DIR)/$(TCMALLOC)
|