tor-browser

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

Makefile.in (3327B)


      1 #################################################################################
      2 ## Makefile.in for ICU - tools/genrb                                            #
      3 ## Copyright (C) 2016 and later: Unicode, Inc. and others.                      #
      4 ## License & terms of use: http://www.unicode.org/copyright.html                #
      5 ## Copyright (c) 1999-2014, International Business Machines Corporation and     #
      6 ## others. All Rights Reserved.                                                 #
      7 #################################################################################
      8 
      9 ## Source directory information
     10 srcdir = @srcdir@
     11 top_srcdir = @top_srcdir@
     12 
     13 top_builddir = ../..
     14 
     15 include $(top_builddir)/icudefs.mk
     16 
     17 ## Build directory information
     18 subdir = tools/genrb
     19 
     20 TARGET_STUB_NAME = genrb
     21 DERB_STUB_NAME = derb
     22 
     23 SECTION = 1
     24 
     25 MAN_FILES = $(TARGET_STUB_NAME).$(SECTION)
     26 @ICUIO_TRUE@MAN_FILES += $(DERB_STUB_NAME).$(SECTION)
     27 
     28 ## Extra files to remove for 'make clean'
     29 CLEANFILES = *~ $(MAN_FILES) $(DEPS) $(DERB_DEPS)
     30 
     31 ## Target information
     32 TARGET = $(BINDIR)/$(TARGET_STUB_NAME)$(EXEEXT)
     33 # derb depends on icuio
     34 @ICUIO_TRUE@DERB = $(BINDIR)/$(DERB_STUB_NAME)$(EXEEXT)
     35 
     36 CPPFLAGS += -I$(srcdir) -I$(top_srcdir)/common -I$(top_srcdir)/i18n -I$(srcdir)/../toolutil -I$(top_srcdir)/io
     37 CPPFLAGS += -DUNISTR_FROM_CHAR_EXPLICIT=explicit -DUNISTR_FROM_STRING_EXPLICIT=explicit
     38 LIBS = $(LIBICUTOOLUTIL) $(LIBICUI18N) $(LIBICUUC) $(DEFAULT_LIBS) $(LIB_M)
     39 
     40 SOURCES = $(shell cat $(srcdir)/sources.txt)
     41 OBJECTS = $(patsubst %.cpp,%.o,$(patsubst %.c,%.o, $(SOURCES)))
     42 DERB_SOURCES = derb.cpp
     43 DERB_OBJ = $(DERB_SOURCES:.cpp=.o)
     44 
     45 DEPS = $(OBJECTS:.o=.d)
     46 DERB_DEPS = $(DERB_OBJ:.o=.d)
     47 
     48 -include Makefile.local
     49 
     50 ## List of phony targets
     51 .PHONY : all all-local install install-local clean clean-local	\
     52 distclean distclean-local dist dist-local check check-local install-man
     53 
     54 ## Clear suffix list
     55 .SUFFIXES :
     56 
     57 ## List of standard targets
     58 all: all-local
     59 install: install-local
     60 clean: clean-local
     61 distclean : distclean-local
     62 dist: dist-local
     63 check: all check-local
     64 
     65 all-local: $(TARGET) $(DERB) $(MAN_FILES)
     66 
     67 install-local: all-local install-man
     68 $(MKINSTALLDIRS) $(DESTDIR)$(bindir)
     69 $(INSTALL) $(TARGET) $(DESTDIR)$(bindir)
     70 @ICUIO_TRUE@	$(INSTALL) $(DERB) $(DESTDIR)$(bindir)
     71 
     72 install-man: $(MAN_FILES)
     73 $(MKINSTALLDIRS) $(DESTDIR)$(mandir)/man$(SECTION)
     74 $(INSTALL_DATA) $? $(DESTDIR)$(mandir)/man$(SECTION)
     75 
     76 dist-local:
     77 
     78 clean-local:
     79 test -z "$(CLEANFILES)" || $(RMV) $(CLEANFILES)
     80 $(RMV) $(TARGET) $(DERB) $(OBJECTS) $(DERB_OBJ)
     81 
     82 distclean-local: clean-local
     83 $(RMV) Makefile
     84 
     85 check-local: all-local
     86 
     87 Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
     88 cd $(top_builddir) \
     89  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
     90 
     91 $(TARGET) : $(OBJECTS)
     92 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBS)
     93 $(POST_BUILD_STEP)
     94 
     95 $(DERB) : $(DERB_OBJ)
     96 $(LINK.cc) $(OUTOPT)$@ $^ $(LIBICUIO) $(LIBS)
     97 $(POST_BUILD_STEP)
     98 
     99 # This line is needed to serialize builds when the gmake -j option is used.
    100 $(TARGET_STUB_NAME).$(SECTION): $(DERB_STUB_NAME).$(SECTION)
    101 
    102 %.$(SECTION): $(srcdir)/%.$(SECTION).in
    103 cd $(top_builddir) \
    104  && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
    105 
    106 
    107 ifeq (,$(MAKECMDGOALS))
    108 -include $(DEPS)
    109 -include $(DERB_DEPS)
    110 else
    111 ifneq ($(patsubst %clean,,$(MAKECMDGOALS)),)
    112 -include $(DEPS)
    113 endif
    114 endif