tor-browser

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

rules.mk (2691B)


      1 #
      2 # FreeType 2 auto-fitter module configuration rules
      3 #
      4 
      5 
      6 # Copyright (C) 2003-2025 by
      7 # David Turner, Robert Wilhelm, and Werner Lemberg.
      8 #
      9 # This file is part of the FreeType project, and may only be used, modified,
     10 # and distributed under the terms of the FreeType project license,
     11 # LICENSE.TXT.  By continuing to use, modify, or distribute this file you
     12 # indicate that you have read the license and understand and accept it
     13 # fully.
     14 
     15 
     16 # AUTOF driver directory
     17 #
     18 AUTOF_DIR := $(SRC_DIR)/autofit
     19 
     20 
     21 # compilation flags for the driver
     22 #
     23 AUTOF_COMPILE := $(CC) $(ANSIFLAGS)                              \
     24                       $I$(subst /,$(COMPILER_SEP),$(AUTOF_DIR)) \
     25                       $(INCLUDE_FLAGS)                          \
     26                       $(FT_CFLAGS)
     27 
     28 
     29 # AUTOF driver sources (i.e., C files)
     30 #
     31 AUTOF_DRV_SRC := $(AUTOF_DIR)/afadjust.c \
     32                 $(AUTOF_DIR)/afblue.c   \
     33                 $(AUTOF_DIR)/afcjk.c    \
     34                 $(AUTOF_DIR)/afdummy.c  \
     35                 $(AUTOF_DIR)/afglobal.c \
     36                 $(AUTOF_DIR)/afgsub.c   \
     37                 $(AUTOF_DIR)/afhints.c  \
     38                 $(AUTOF_DIR)/afindic.c  \
     39                 $(AUTOF_DIR)/aflatin.c  \
     40                 $(AUTOF_DIR)/afloader.c \
     41                 $(AUTOF_DIR)/afmodule.c \
     42                 $(AUTOF_DIR)/afranges.c \
     43                 $(AUTOF_DIR)/afshaper.c \
     44                 $(AUTOF_DIR)/ft-hb.c    \
     45                 $(AUTOF_DIR)/ft-hb-ft.c
     46 
     47 # AUTOF driver headers
     48 #
     49 AUTOF_DRV_H := $(AUTOF_DRV_SRC:%c=%h)     \
     50               $(AUTOF_DIR)/afcover.h     \
     51               $(AUTOF_DIR)/aferrors.h    \
     52               $(AUTOF_DIR)/afscript.h    \
     53               $(AUTOF_DIR)/afstyles.h    \
     54               $(AUTOF_DIR)/aftypes.h     \
     55               $(AUTOF_DIR)/afws-decl.h   \
     56               $(AUTOF_DIR)/afws-iter.h   \
     57               $(AUTOF_DIR)/ft-hb-decls.h
     58 
     59 
     60 # AUTOF driver object(s)
     61 #
     62 #   AUTOF_DRV_OBJ_M is used during `multi' builds.
     63 #   AUTOF_DRV_OBJ_S is used during `single' builds.
     64 #
     65 AUTOF_DRV_OBJ_M := $(AUTOF_DRV_SRC:$(AUTOF_DIR)/%.c=$(OBJ_DIR)/%.$O)
     66 AUTOF_DRV_OBJ_S := $(OBJ_DIR)/autofit.$O
     67 
     68 # AUTOF driver source file for single build
     69 #
     70 AUTOF_DRV_SRC_S := $(AUTOF_DIR)/autofit.c
     71 
     72 
     73 # AUTOF driver - single object
     74 #
     75 $(AUTOF_DRV_OBJ_S): $(AUTOF_DRV_SRC_S) $(AUTOF_DRV_SRC) \
     76                   $(FREETYPE_H) $(AUTOF_DRV_H)
     77 $(AUTOF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(AUTOF_DRV_SRC_S))
     78 
     79 
     80 # AUTOF driver - multiple objects
     81 #
     82 $(OBJ_DIR)/%.$O: $(AUTOF_DIR)/%.c $(FREETYPE_H) $(AUTOF_DRV_H)
     83 $(AUTOF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
     84 
     85 
     86 # update main driver object lists
     87 #
     88 DRV_OBJS_S += $(AUTOF_DRV_OBJ_S)
     89 DRV_OBJS_M += $(AUTOF_DRV_OBJ_M)
     90 
     91 
     92 # EOF