tor-browser

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

rules.mk (1901B)


      1 #
      2 # FreeType 2 Signed Distance Field driver configuration rules
      3 #
      4 
      5 
      6 # Copyright (C) 2020-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 # sdf driver directory
     17 #
     18 SDF_DIR := $(SRC_DIR)/sdf
     19 
     20 
     21 # compilation flags for the driver
     22 #
     23 SDF_COMPILE := $(CC) $(ANSIFLAGS)                            \
     24                     $I$(subst /,$(COMPILER_SEP),$(SDF_DIR)) \
     25                     $(INCLUDE_FLAGS)                        \
     26                     $(FT_CFLAGS)
     27 
     28 
     29 # sdf driver sources (i.e., C files)
     30 #
     31 SDF_DRV_SRC := $(SDF_DIR)/ftsdfrend.c   \
     32               $(SDF_DIR)/ftsdf.c       \
     33               $(SDF_DIR)/ftbsdf.c      \
     34               $(SDF_DIR)/ftsdfcommon.c
     35 
     36 
     37 # sdf driver headers
     38 #
     39 SDF_DRV_H := $(SDF_DIR)/ftsdfrend.h   \
     40             $(SDF_DIR)/ftsdf.h       \
     41             $(SDF_DIR)/ftsdferrs.h   \
     42             $(SDF_DIR)/ftsdfcommon.h
     43 
     44 
     45 # sdf driver object(s)
     46 #
     47 #   SDF_DRV_OBJ_M is used during `multi' builds.
     48 #   SDF_DRV_OBJ_S is used during `single' builds.
     49 #
     50 SDF_DRV_OBJ_M := $(SDF_DRV_SRC:$(SDF_DIR)/%.c=$(OBJ_DIR)/%.$O)
     51 SDF_DRV_OBJ_S := $(OBJ_DIR)/sdf.$O
     52 
     53 
     54 # sdf driver source file for single build
     55 #
     56 SDF_DRV_SRC_S := $(SDF_DIR)/sdf.c
     57 
     58 
     59 # sdf driver - single object
     60 #
     61 $(SDF_DRV_OBJ_S): $(SDF_DRV_SRC_S) $(SDF_DRV_SRC) \
     62                  $(FREETYPE_H) $(SDF_DRV_H)
     63 $(SDF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(SDF_DRV_SRC_S))
     64 
     65 
     66 # sdf driver - multiple objects
     67 #
     68 $(OBJ_DIR)/%.$O: $(SDF_DIR)/%.c $(FREETYPE_H) $(SDF_DRV_H)
     69 $(SDF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
     70 
     71 
     72 # update main driver list
     73 #
     74 DRV_OBJS_S += $(SDF_DRV_OBJ_S)
     75 DRV_OBJS_M += $(SDF_DRV_OBJ_M)
     76 
     77 
     78 # EOF