tor-browser

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

config.mk (2385B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 # only do this in the outermost freebl build.
      6 ifndef FREEBL_CHILD_BUILD
      7 
      8 # We're going to change this build so that it builds libfreebl.a with
      9 # just loader.c.  Then we have to build this directory twice again to 
     10 # build the two DSOs.
     11 # To build libfreebl.a with just loader.c, we must now override many
     12 # of the make variables setup by the prior inclusion of CORECONF's config.mk
     13 
     14 CSRCS		= loader.c 
     15 SIMPLE_OBJS 	= $(CSRCS:.c=$(OBJ_SUFFIX))
     16 OBJS 		= $(addprefix $(OBJDIR)/$(PROG_PREFIX), $(SIMPLE_OBJS))
     17 ALL_TRASH :=    $(TARGETS) $(OBJS) $(OBJDIR) LOGS TAGS $(GARBAGE) \
     18                $(NOSUCHFILE) so_locations 
     19 
     20 # this is not a recursive child make.  We make a static lib. (archive)
     21 
     22 # Override the values defined in coreconf's ruleset.mk.
     23 #
     24 # - (1) LIBRARY: a static (archival) library
     25 # - (2) SHARED_LIBRARY: a shared (dynamic link) library
     26 # - (3) IMPORT_LIBRARY: an import library, used only on Windows
     27 # - (4) PROGRAM: an executable binary
     28 #
     29 # override these variables to prevent building a DSO/DLL.
     30  TARGETS        = $(LIBRARY)
     31  SHARED_LIBRARY =
     32  IMPORT_LIBRARY =
     33  PROGRAM        =
     34 
     35 else
     36 
     37 # This is a recursive child make. We build the shared lib.
     38 
     39 TARGETS      = $(SHARED_LIBRARY)
     40 LIBRARY      =
     41 IMPORT_LIBRARY =
     42 PROGRAM      =
     43 
     44 ifeq ($(OS_TARGET), SunOS)
     45 OS_LIBS += -lkstat
     46 endif
     47 
     48 ifeq (,$(filter-out WIN%,$(OS_TARGET)))
     49 
     50 RESNAME = freebl.rc
     51 
     52 ifdef NS_USE_GCC
     53 OS_LIBS += -ladvapi32
     54 else
     55 OS_LIBS += advapi32.lib
     56 endif
     57 
     58 ifdef NS_USE_GCC
     59 EXTRA_SHARED_LIBS += \
     60 -L$(DIST)/lib \
     61 -L$(NSSUTIL_LIB_DIR) \
     62 -lnssutil3 \
     63 -L$(NSPR_LIB_DIR) \
     64 -lnspr4 \
     65 $(NULL)
     66 else # ! NS_USE_GCC
     67 EXTRA_SHARED_LIBS += \
     68 $(DIST)/lib/nssutil3.lib \
     69 $(NSPR_LIB_DIR)/$(NSPR31_LIB_PREFIX)nspr4.lib \
     70 $(NULL)
     71 endif # NS_USE_GCC
     72 
     73 else
     74 
     75 ifeq ($(FREEBL_NO_DEPEND),1)
     76 #drop pthreads as well
     77 OS_PTHREAD=
     78 else
     79 EXTRA_SHARED_LIBS += \
     80 -L$(DIST)/lib \
     81 -L$(NSSUTIL_LIB_DIR) \
     82 -lnssutil3 \
     83 -L$(NSPR_LIB_DIR) \
     84 -lnspr4 \
     85 $(NULL)
     86 endif
     87 endif
     88 
     89 ifeq ($(OS_ARCH), Darwin)
     90 EXTRA_SHARED_LIBS += -dylib_file @executable_path/libplc4.dylib:$(DIST)/lib/libplc4.dylib -dylib_file @executable_path/libplds4.dylib:$(DIST)/lib/libplds4.dylib
     91 endif
     92 
     93 ifdef NSS_FIPS_140_3
     94 DEFINES += -DNSS_FIPS_140_3
     95 endif
     96 
     97 endif