tor-browser

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

Makefile.in (4480B)


      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-2015, International Business Machines
      6 #   Corporation and others.  All Rights Reserved.
      7 #
      8 #******************************************************************************
      9 ## Makefile.in for ICU stubdata
     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 = stubdata
     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=$(DATA_STUBNAME)
     30 
     31 ifneq ($(ENABLE_STATIC),)
     32 TARGET = $(STUBDATA_LIBDIR)$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
     33 endif
     34 
     35 
     36 ifneq ($(ENABLE_SHARED),)
     37 SO_TARGET = $(STUBDATA_LIBDIR)$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX)$(STUB_SUFFIX).$(SO)
     38 ALL_SO_TARGETS = $(FINAL_SO_TARGET) $(MIDDLE_SO_TARGET) $(SO_TARGET) $(BATCH_STUB_TARGET) $(SHARED_OBJECT)
     39 endif
     40 
     41 
     42 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS)
     43 
     44 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
     45 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
     46 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
     47 
     48 CPPFLAGS += -I$(top_srcdir)/common $(LIBCPPFLAGS)
     49 LDFLAGS += $(LDFLAGSICUDT)
     50 
     51 SOURCES = $(shell cat $(srcdir)/sources.txt)
     52 OBJECTS = $(SOURCES:.cpp=.o)
     53 
     54 ## Header files to install
     55 HEADERS = 
     56 
     57 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
     58 
     59 DEPS = $(OBJECTS:.o=.d)
     60 
     61 -include Makefile.local
     62 
     63 ## List of phony targets
     64 .PHONY : all all-local install install-local clean clean-local	\
     65 distclean distclean-local install-library dist	\
     66 dist-local check check-local check-exhaustive
     67 
     68 ## Clear suffix list
     69 .SUFFIXES :
     70 
     71 ## List of standard targets
     72 all: all-local
     73 install: install-local
     74 clean: clean-local
     75 distclean : distclean-local
     76 dist: dist-local
     77 check: all check-local
     78 
     79 check-exhaustive: check
     80 
     81 all-local: $(ALL_TARGETS)
     82 
     83 install-local: install-library
     84 
     85 install-library: all-local
     86 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
     87 ifneq ($(ENABLE_STATIC),)
     88 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
     89 endif
     90 ifneq ($(ENABLE_SHARED),)
     91 # For MinGW, do we want the DLL to go in the bin location?
     92 ifeq ($(MINGW_MOVEDLLSTOBINDIR),YES)
     93 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
     94 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(bindir)
     95 else
     96 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
     97 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
     98 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
     99 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
    100 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
    101 endif
    102 endif
    103 endif
    104 ifneq ($(IMPORT_LIB_EXT),)
    105 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
    106 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
    107 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
    108 endif
    109 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
    110 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
    111 endif
    112 endif
    113 endif
    114 
    115 dist-local:
    116 
    117 clean-local:
    118 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
    119 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS)
    120 
    121 distclean-local: clean-local
    122 $(RMV) Makefile
    123 
    124 check-local:
    125 
    126 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
    127 cd $(top_builddir) \
    128 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
    129 
    130 ifneq ($(ENABLE_STATIC),)
    131 $(TARGET): $(STATIC_OBJECTS)
    132 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
    133 $(RANLIB) $@
    134 endif
    135 
    136 ifneq ($(ENABLE_SHARED),)
    137 $(SHARED_OBJECT): $(OBJECTS)
    138 ifeq ($(BUILD_HOST_ICU),AIX_GCC)
    139 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)libicudata.so $^ $(LIBS)
    140 mv libicudata.so $@
    141 else
    142 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
    143 endif
    144 ifeq ($(ENABLE_RPATH),YES)
    145 ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
    146 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
    147 endif
    148 endif
    149 
    150 ifeq ($(BUILD_HOST_ICU),OS390)
    151 $(BATCH_STUB_TARGET): $(OBJECTS)
    152 $(SHLIB.c) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
    153 endif
    154 endif   # ENABLE_SHARED
    155 
    156 ifeq (,$(MAKECMDGOALS))
    157 -include $(DEPS)
    158 else
    159 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
    160 -include $(DEPS)
    161 endif
    162 endif