tor-browser

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

Makefile.in (4340B)


      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-2011, International Business Machines
      6 #   Corporation and others.  All Rights Reserved.
      7 #
      8 #******************************************************************************
      9 ## Makefile.in for ICU - tools/ctestfw
     10 ## Stephen F. Booth
     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/ctestfw
     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=$(CTESTFW_STUBNAME)
     30 
     31 ifneq ($(ENABLE_STATIC),)
     32 TARGET = $(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
     33 endif
     34 
     35 ifneq ($(ENABLE_SHARED),)
     36 SO_TARGET = $(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$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(srcdir) $(LIBCPPFLAGS) $(CPPFLAGSCTESTFW)
     49 DEFS += -DT_CTEST_IMPLEMENTATION
     50 LDFLAGS += $(LDFLAGSCTESTFW)
     51 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS)
     52 
     53 SOURCES = $(shell cat $(srcdir)/sources.txt)
     54 OBJECTS = $(patsubst %.cpp,%.o,$(patsubst %.c,%.o, $(SOURCES)))
     55 
     56 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
     57 
     58 DEPS = $(OBJECTS:.o=.d)
     59 
     60 -include Makefile.local
     61 
     62 ## List of phony targets
     63 .PHONY : all all-local install install-local clean clean-local	\
     64 distclean distclean-local dist dist-local check check-local
     65 
     66 ## Clear suffix list
     67 .SUFFIXES :
     68 
     69 ## List of standard targets
     70 all: all-local
     71 install: install-local
     72 clean: clean-local
     73 distclean : distclean-local
     74 dist: dist-local
     75 check: all check-local
     76 
     77 all-local: $(ALL_TARGETS)
     78 
     79 install-local: install-library
     80 
     81 install-library: all-local
     82 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
     83 ifneq ($(ENABLE_STATIC),)
     84 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
     85 endif
     86 ifneq ($(ENABLE_SHARED),)
     87 # For MinGW, do we want the DLL to go in the bin location?
     88 ifeq ($(MINGW_MOVEDLLSTOBINDIR),YES)
     89 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
     90 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(bindir)
     91 else
     92 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
     93 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
     94 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
     95 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
     96 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
     97 endif
     98 endif
     99 endif
    100 ifneq ($(IMPORT_LIB_EXT),)
    101 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
    102 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
    103 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
    104 endif
    105 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
    106 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
    107 endif
    108 endif
    109 endif
    110 
    111 dist-local:
    112 
    113 clean-local:
    114 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
    115 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
    116 
    117 distclean-local: clean-local
    118 $(RMV) Makefile
    119 
    120 check-local: all-local
    121 
    122 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
    123 cd $(top_builddir) \
    124  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
    125 
    126 ifneq ($(ENABLE_STATIC),)
    127 $(TARGET): $(STATIC_OBJECTS)
    128 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
    129 $(RANLIB) $@
    130 endif
    131 
    132 ifneq ($(ENABLE_SHARED),)
    133 $(SHARED_OBJECT): $(OBJECTS)
    134 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
    135 ifeq ($(ENABLE_RPATH),YES)
    136 ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
    137 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
    138 endif
    139 endif
    140 endif
    141 
    142 ifeq (,$(MAKECMDGOALS))
    143 -include $(DEPS)
    144 else
    145 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
    146 -include $(DEPS)
    147 endif
    148 endif