tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

location.mk (1635B)


      1 #
      2 # This Source Code Form is subject to the terms of the Mozilla Public
      3 # License, v. 2.0. If a copy of the MPL was not distributed with this
      4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      5 
      6 #######################################################################
      7 # Master "Core Components" macros to figure out binary code location  #
      8 #######################################################################
      9 
     10 #
     11 # Figure out where the binary code lives.
     12 #
     13 
     14 ifdef BUILD_TREE
     15 ifdef LIBRARY_NAME
     16 BUILD         = $(BUILD_TREE)/nss/$(LIBRARY_NAME)
     17 OBJDIR        = $(BUILD_TREE)/nss/$(LIBRARY_NAME)
     18 else
     19 BUILD         = $(BUILD_TREE)/nss
     20 OBJDIR        = $(BUILD_TREE)/nss
     21 endif
     22 else
     23 BUILD         = $(PLATFORM)
     24 OBJDIR        = $(PLATFORM)
     25 endif
     26 
     27 DIST          = $(SOURCE_PREFIX)/$(PLATFORM)
     28 
     29 ifdef BUILD_DEBUG_GC
     30    DEFINES += -DDEBUG_GC
     31 endif
     32 
     33 GARBAGE += core $(wildcard core.[0-9]*)
     34 
     35 ifdef NSPR_INCLUDE_DIR
     36    INCLUDES += -I$(NSPR_INCLUDE_DIR)
     37 endif
     38 
     39 ifndef NSPR_LIB_DIR
     40    NSPR_LIB_DIR = $(DIST)/lib
     41 endif
     42 
     43 ifdef NSS_INCLUDE_DIR
     44    INCLUDES += -I$(NSS_INCLUDE_DIR)
     45 endif
     46 
     47 ifndef NSS_LIB_DIR
     48    NSS_LIB_DIR = $(DIST)/lib
     49 endif
     50 
     51 ifdef NSSUTIL_INCLUDE_DIR
     52    INCLUDES += -I$(NSSUTIL_INCLUDE_DIR)
     53 endif
     54 
     55 ifndef NSSUTIL_LIB_DIR
     56    NSSUTIL_LIB_DIR = $(DIST)/lib
     57 endif
     58 
     59 ifdef SOFTOKEN_INCLUDE_DIR
     60    INCLUDES += -I$(SOFTOKEN_INCLUDE_DIR)
     61 endif
     62 
     63 ifndef SOFTOKEN_LIB_DIR
     64    SOFTOKEN_LIB_DIR = $(DIST)/lib
     65 endif
     66 
     67 ifdef SQLITE_INCLUDE_DIR
     68    INCLUDES += -I$(SQLITE_INCLUDE_DIR)
     69 endif
     70 
     71 ifndef SQLITE_LIB_DIR
     72    SQLITE_LIB_DIR = $(DIST)/lib
     73 endif
     74 
     75 ifndef SQLITE_LIB_NAME
     76    SQLITE_LIB_NAME = sqlite3
     77 endif
     78 
     79 MK_LOCATION = included