tor-browser

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

Makefile.in (4493B)


      1 # Copyright (C) 2016 and later: Unicode, Inc. and others.
      2 # License & terms of use: http://www.unicode.org/copyright.html
      3 #******************************************************************************
      4 #
      5 #   Copyright (C) 1999-2014, International Business Machines
      6 #   Corporation and others.  All Rights Reserved.
      7 #
      8 #******************************************************************************
      9 ## Makefile.in for ICU - tools/toolutil
     10 ## Steven R. Loomis
     11 
     12 ## Source directory information
     13 srcdir = @srcdir@
     14 top_srcdir = @top_srcdir@
     15 
     16 top_builddir = ../..
     17 
     18 ## All the flags and other definitions are included here.
     19 include $(top_builddir)/icudefs.mk
     20 
     21 ## Build directory information
     22 subdir = tools/toolutil
     23 
     24 ## Extra files to remove for 'make clean'
     25 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
     26 
     27 ## Target information
     28 
     29 TARGET_STUBNAME=$(TOOLUTIL_STUBNAME)
     30 
     31 ifneq ($(ENABLE_STATIC),)
     32 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
     33 endif
     34 
     35 ifneq ($(ENABLE_SHARED),)
     36 SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
     37 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
     38 endif
     39 
     40 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
     41 
     42 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
     43 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
     44 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
     45 CFLAGS += $(LIBCFLAGS)
     46 CXXFLAGS += $(LIBCXXFLAGS)
     47 
     48 CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(top_srcdir)/i18n $(LIBCPPFLAGS)
     49 
     50 # from icuinfo
     51 CPPFLAGS+=  "-DU_BUILD=\"@build@\"" "-DU_HOST=\"@host@\"" "-DU_CC=\"@CC@\"" "-DU_CXX=\"@CXX@\""
     52 CPPFLAGS += -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit
     53 
     54 DEFS += -DU_TOOLUTIL_IMPLEMENTATION
     55 LDFLAGS += $(LDFLAGSICUTOOLUTIL)
     56 LIBS = $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
     57 
     58 SOURCES = $(shell cat $(srcdir)/sources.txt)
     59 OBJECTS = $(SOURCES:.cpp=.o)
     60 
     61 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
     62 
     63 DEPS = $(OBJECTS:.o=.d)
     64 
     65 -include Makefile.local
     66 
     67 ## List of phony targets
     68 .PHONY : all all-local install install-local clean clean-local	\
     69 distclean distclean-local install-library dist	\
     70 dist-local check check-local
     71 
     72 ## Clear suffix list
     73 .SUFFIXES :
     74 
     75 ## List of standard targets
     76 all: all-local
     77 install: install-local
     78 clean: clean-local
     79 distclean : distclean-local
     80 dist: dist-local
     81 check: all check-local
     82 
     83 all-local: $(ALL_TARGETS)
     84 
     85 install-local: install-library
     86 
     87 install-library: all-local
     88 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
     89 ifneq ($(ENABLE_STATIC),)
     90 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
     91 endif
     92 ifneq ($(ENABLE_SHARED),)
     93 # For MinGW, do we want the DLL to go in the bin location?
     94 ifeq ($(MINGW_MOVEDLLSTOBINDIR),YES)
     95 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
     96 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(bindir)
     97 else
     98 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
     99 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
    100 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
    101 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
    102 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
    103 endif
    104 endif
    105 endif
    106 ifneq ($(IMPORT_LIB_EXT),)
    107 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
    108 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
    109 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
    110 endif
    111 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
    112 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
    113 endif
    114 endif
    115 endif
    116 
    117 dist-local:
    118 
    119 clean-local:
    120 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
    121 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
    122 
    123 distclean-local: clean-local
    124 $(RMV) Makefile
    125 
    126 check-local: all-local
    127 
    128 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
    129 cd $(top_builddir) \
    130  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
    131 
    132 ifneq ($(ENABLE_STATIC),)
    133 $(TARGET): $(STATIC_OBJECTS)
    134 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
    135 $(RANLIB) $@
    136 endif
    137 
    138 ifneq ($(ENABLE_SHARED),)
    139 $(SHARED_OBJECT): $(OBJECTS)
    140 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
    141 ifeq ($(ENABLE_RPATH),YES)
    142 ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
    143 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
    144 endif
    145 endif
    146 endif
    147 
    148 ifeq (,$(MAKECMDGOALS))
    149 -include $(DEPS)
    150 else
    151 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
    152 -include $(DEPS)
    153 endif
    154 endif