tor-browser

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

rules.mk (1900B)


      1 #
      2 # FreeType 2 psnames driver configuration rules
      3 #
      4 
      5 
      6 # Copyright (C) 1996-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 # psnames driver directory
     17 #
     18 PSNAMES_DIR := $(SRC_DIR)/psnames
     19 
     20 
     21 # compilation flags for the driver
     22 #
     23 PSNAMES_COMPILE := $(CC) $(ANSIFLAGS)                                \
     24                         $I$(subst /,$(COMPILER_SEP),$(PSNAMES_DIR)) \
     25                         $(INCLUDE_FLAGS)                            \
     26                         $(FT_CFLAGS)
     27 
     28 
     29 # psnames driver sources (i.e., C files)
     30 #
     31 PSNAMES_DRV_SRC := $(PSNAMES_DIR)/psmodule.c
     32 
     33 
     34 # psnames driver headers
     35 #
     36 PSNAMES_DRV_H := $(PSNAMES_DRV_SRC:%.c=%.h) \
     37                 $(PSNAMES_DIR)/psnamerr.h  \
     38                 $(PSNAMES_DIR)/pstables.h
     39 
     40 
     41 # psnames driver object(s)
     42 #
     43 #   PSNAMES_DRV_OBJ_M is used during `multi' builds
     44 #   PSNAMES_DRV_OBJ_S is used during `single' builds
     45 #
     46 PSNAMES_DRV_OBJ_M := $(PSNAMES_DRV_SRC:$(PSNAMES_DIR)/%.c=$(OBJ_DIR)/%.$O)
     47 PSNAMES_DRV_OBJ_S := $(OBJ_DIR)/psnames.$O
     48 
     49 # psnames driver source file for single build
     50 #
     51 PSNAMES_DRV_SRC_S := $(PSNAMES_DIR)/psnames.c
     52 
     53 
     54 # psnames driver - single object
     55 #
     56 $(PSNAMES_DRV_OBJ_S): $(PSNAMES_DRV_SRC_S) $(PSNAMES_DRV_SRC) \
     57                      $(FREETYPE_H) $(PSNAMES_DRV_H)
     58 $(PSNAMES_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(PSNAMES_DRV_SRC_S))
     59 
     60 
     61 # psnames driver - multiple objects
     62 #
     63 $(OBJ_DIR)/%.$O: $(PSNAMES_DIR)/%.c $(FREETYPE_H) $(PSNAMES_DRV_H)
     64 $(PSNAMES_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
     65 
     66 
     67 # update main driver object lists
     68 #
     69 DRV_OBJS_S += $(PSNAMES_DRV_OBJ_S)
     70 DRV_OBJS_M += $(PSNAMES_DRV_OBJ_M)
     71 
     72 
     73 # EOF