tor-browser

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

Makefile (2618B)


      1 #! gmake
      2 #
      3 # This Source Code Form is subject to the terms of the Mozilla Public
      4 # License, v. 2.0. If a copy of the MPL was not distributed with this
      5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      6 
      7 #######################################################################
      8 # (1) Include initial platform-independent assignments (MANDATORY).   #
      9 #######################################################################
     10 
     11 include manifest.mn
     12 
     13 #######################################################################
     14 # (2) Include "global" configuration information. (OPTIONAL)          #
     15 #######################################################################
     16 
     17 include $(CORE_DEPTH)/coreconf/config.mk
     18 
     19 #######################################################################
     20 # (3) Include "component" configuration information. (OPTIONAL)       #
     21 #######################################################################
     22 
     23 ifdef NSS_NO_INIT_SUPPORT
     24    DEFINES += -DNSS_NO_INIT_SUPPORT
     25 endif
     26 ifeq ($(OS_TARGET),Linux)
     27 ifeq ($(CPU_ARCH),ppc)
     28 ifdef USE_64
     29    DEFINES += -DNSS_NO_INIT_SUPPORT
     30 endif # USE_64
     31 endif # ppc
     32 endif # Linux
     33 
     34 
     35 #######################################################################
     36 # (4) Include "local" platform-dependent assignments (OPTIONAL).      #
     37 #######################################################################
     38 
     39 include config.mk
     40 
     41 #######################################################################
     42 # (5) Execute "global" rules. (OPTIONAL)                              #
     43 #######################################################################
     44 
     45 include $(CORE_DEPTH)/coreconf/rules.mk
     46 
     47 #######################################################################
     48 # (6) Execute "component" rules. (OPTIONAL)                           #
     49 #######################################################################
     50 
     51 ifdef NSS_DISABLE_DBM
     52 DIRS=
     53 endif
     54 
     55 #######################################################################
     56 # (7) Execute "local" rules. (OPTIONAL).                              #
     57 #######################################################################
     58 
     59 
     60 # indicates dependency on freebl static lib
     61 $(SHARED_LIBRARY): $(CRYPTOLIB)
     62 
     63 # On AIX 4.3, IBM xlC_r compiler (version 3.6.6) cannot compile
     64 # pkcs11c.c in 64-bit mode for unknown reasons.  A workaround is
     65 # to compile it with optimizations turned on.  (Bugzilla bug #63815)
     66 ifeq ($(OS_TARGET)$(OS_RELEASE),AIX4.3)
     67 ifeq ($(USE_64),1)
     68 ifndef BUILD_OPT
     69 $(OBJDIR)/pkcs11.o: pkcs11.c | $$(@D)/d
     70 $(CC) -o $@ -c -O2 $(CFLAGS) $<
     71 
     72 $(OBJDIR)/pkcs11c.o: pkcs11c.c | $$(@D)/d
     73 $(CC) -o $@ -c -O2 $(CFLAGS) $<
     74 endif
     75 endif
     76 endif