tor-browser

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

Makefile.in (5416B)


      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 - layout
     10 
     11 ## Source directory information
     12 srcdir = @srcdir@
     13 top_srcdir = @top_srcdir@
     14 
     15 top_builddir = ..
     16 
     17 ## All the flags and other definitions are included here.
     18 include $(top_builddir)/icudefs.mk
     19 
     20 ## Build directory information
     21 subdir = layoutex
     22 
     23 ## Extra files to remove for 'make clean'
     24 CLEANFILES = *~ $(DEPS) $(IMPORT_LIB) $(MIDDLE_IMPORT_LIB) $(FINAL_IMPORT_LIB)
     25 
     26 ## Target information
     27 
     28 TARGET_STUBNAME=$(LAYOUTEX_STUBNAME)
     29 
     30 ifneq ($(ENABLE_STATIC),)
     31 TARGET = $(LIBDIR)/$(LIBSICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(A)
     32 endif
     33 
     34 ifneq ($(ENABLE_SHARED),)
     35 SO_TARGET = $(LIBDIR)/$(LIBICU)$(TARGET_STUBNAME)$(ICULIBSUFFIX).$(SO)
     36 ALL_SO_TARGETS = $(SO_TARGET) $(MIDDLE_SO_TARGET) $(FINAL_SO_TARGET) $(SHARED_OBJECT)
     37 
     38 ifeq ($(ENABLE_SO_VERSION_DATA),1)
     39 SO_VERSION_DATA = layoutex.res
     40 endif
     41 
     42 ifeq ($(BUILD_HOST_ICU),OS390)
     43 BATCH_TARGET = $(BATCH_LAYOUTEX_TARGET)
     44 BATCH_LIBS = $(BATCH_LIBICUUC) $(BATCH_LIBICULE) -lm
     45 endif
     46 
     47 endif   # ENABLE_SHARED
     48 
     49 ALL_TARGETS = $(TARGET) $(ALL_SO_TARGETS) $(BATCH_TARGET)
     50 
     51 DYNAMICCPPFLAGS = $(SHAREDLIBCPPFLAGS)
     52 DYNAMICCFLAGS = $(SHAREDLIBCFLAGS)
     53 DYNAMICCXXFLAGS = $(SHAREDLIBCXXFLAGS)
     54 CFLAGS += $(LIBCFLAGS)
     55 CXXFLAGS += $(LIBCXXFLAGS)
     56 
     57 
     58 ifeq ($(USING_ICULEHB),no)
     59 # cppflags: load .. so that #include <layout/...> works
     60 ICULE_CFLAGS=-I$(srcdir)/..
     61 else
     62 ICULE_CFLAGS=$(ICULEHB_CFLAGS)
     63 endif
     64 
     65 CPPFLAGS += -I$(srcdir) -I$(srcdir)/unicode -I$(top_srcdir)/common $(ICULE_CFLAGS) $(LIBCPPFLAGS)
     66 DEFS += -DU_LAYOUTEX_IMPLEMENTATION
     67 LDFLAGS += $(LDFLAGSICULX)
     68 LIBS = $(LIBICUUC) $(LIBICULE) $(DEFAULT_LIBS)
     69 
     70 SOURCES = $(shell cat $(srcdir)/sources.txt)
     71 OBJECTS = $(SOURCES:.cpp=.o)
     72 
     73 ## Header files to install
     74 HEADERS= $(srcdir)/layout/ParagraphLayout.h $(srcdir)/layout/RunArrays.h $(srcdir)/layout/playout.h $(srcdir)/layout/plruns.h
     75 
     76 STATIC_OBJECTS = $(OBJECTS:.o=.$(STATIC_O))
     77 
     78 DEPS = $(OBJECTS:.o=.d)
     79 
     80 -include Makefile.local
     81 
     82 ## List of phony targets
     83 .PHONY : all all-local install install-local clean clean-local	\
     84 distclean distclean-local install-library install-headers dist	\
     85 dist-local check check-local check-exhaustive
     86 
     87 ## Clear suffix list
     88 .SUFFIXES :
     89 
     90 ## List of standard targets
     91 all: all-local
     92 install: install-local
     93 clean: clean-local
     94 distclean : distclean-local
     95 dist: dist-local
     96 check: all check-local
     97 
     98 check-exhaustive: check
     99 
    100 all-local: $(ALL_TARGETS)
    101 
    102 install-local: install-headers install-library
    103 ifneq ($(ICULE_CFLAGS),)
    104 @echo "Installing icu-lx.pc"
    105 $(MAKE) ALL_PKGCONFIG_SUFFIX=lx -C .. install-pkgconfig
    106 endif
    107 
    108 install-library: all-local
    109 $(MKINSTALLDIRS) $(DESTDIR)$(libdir)
    110 ifneq ($(ENABLE_STATIC),)
    111 $(INSTALL-L) $(TARGET) $(DESTDIR)$(libdir)
    112 endif
    113 ifneq ($(ENABLE_SHARED),)
    114 # For MinGW, do we want the DLL to go in the bin location?
    115 ifeq ($(MINGW_MOVEDLLSTOBINDIR),YES)
    116 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
    117 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(bindir)
    118 else
    119 $(INSTALL-L) $(FINAL_SO_TARGET) $(DESTDIR)$(libdir)
    120 ifneq ($(FINAL_SO_TARGET),$(SO_TARGET))
    121 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(SO_TARGET))
    122 ifneq ($(FINAL_SO_TARGET),$(MIDDLE_SO_TARGET))
    123 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_SO_TARGET)) && ln -s $(notdir $(FINAL_SO_TARGET)) $(notdir $(MIDDLE_SO_TARGET))
    124 endif
    125 endif
    126 endif
    127 ifneq ($(IMPORT_LIB_EXT),)
    128 $(INSTALL-L) $(FINAL_IMPORT_LIB) $(DESTDIR)$(libdir)
    129 ifneq ($(IMPORT_LIB),$(FINAL_IMPORT_LIB))
    130 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(IMPORT_LIB))
    131 endif
    132 ifneq ($(MIDDLE_IMPORT_LIB),$(FINAL_IMPORT_LIB))
    133 cd $(DESTDIR)$(libdir) && $(RM) $(notdir $(MIDDLE_IMPORT_LIB)) && ln -s $(notdir $(FINAL_IMPORT_LIB)) $(notdir $(MIDDLE_IMPORT_LIB))
    134 endif
    135 endif
    136 endif
    137 
    138 install-headers:
    139 $(MKINSTALLDIRS) $(DESTDIR)$(includedir)/layout
    140 @for file in $(HEADERS); do \
    141  echo "$(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout"; \
    142  $(INSTALL_DATA) $$file $(DESTDIR)$(includedir)/layout || exit; \
    143 done
    144 
    145 dist-local:
    146 
    147 clean-local:
    148 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
    149 $(RMV) $(OBJECTS) $(STATIC_OBJECTS) $(ALL_TARGETS) $(SO_VERSION_DATA)
    150 
    151 distclean-local: clean-local
    152 $(RMV) Makefile
    153 
    154 check-local:
    155 
    156 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
    157 cd $(top_builddir) \
    158  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
    159 
    160 ifneq ($(ENABLE_STATIC),)
    161 $(TARGET): $(STATIC_OBJECTS)
    162 $(AR) $(ARFLAGS) $(AR_OUTOPT)$@ $^
    163 $(RANLIB) $@
    164 endif
    165 
    166 ifneq ($(ENABLE_SHARED),)
    167 $(SHARED_OBJECT): $(OBJECTS) $(SO_VERSION_DATA)
    168 $(SHLIB.cc) $(LD_SONAME) $(OUTOPT)$@ $^ $(LIBS)
    169 ifeq ($(ENABLE_RPATH),YES)
    170 ifneq ($(wildcard $(libdir)/$(MIDDLE_SO_TARGET)),)
    171 $(warning RPATH warning: --enable-rpath means test programs may use existing $(libdir)/$(MIDDLE_SO_TARGET))
    172 endif
    173 endif
    174 
    175 ifeq ($(BUILD_HOST_ICU),OS390)
    176 $(BATCH_TARGET):$(OBJECTS)
    177 $(SHLIB.cc) $(LD_SONAME) -Wl,-x$@.x $(OUTOPT)$@ $^ $(BATCH_LIBS)
    178 endif
    179 endif   # ENABLE_SHARED
    180 
    181 ifeq (,$(MAKECMDGOALS))
    182 -include $(DEPS)
    183 else
    184 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
    185 -include $(DEPS)
    186 endif
    187 endif