Home | History | Annotate | Download | only in cff
      1 #
      2 # FreeType 2 OpenType/CFF driver configuration rules
      3 #
      4 
      5 
      6 # Copyright 1996-2018 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 # OpenType driver directory
     17 #
     18 CFF_DIR := $(SRC_DIR)/cff
     19 
     20 
     21 CFF_COMPILE := $(CC) $(ANSIFLAGS)                            \
     22                      $I$(subst /,$(COMPILER_SEP),$(CFF_DIR)) \
     23                      $(INCLUDE_FLAGS)                        \
     24                      $(FT_CFLAGS)
     25 
     26 
     27 # CFF driver sources (i.e., C files)
     28 #
     29 CFF_DRV_SRC := $(CFF_DIR)/cffcmap.c  \
     30                $(CFF_DIR)/cffdrivr.c \
     31                $(CFF_DIR)/cffgload.c \
     32                $(CFF_DIR)/cffload.c  \
     33                $(CFF_DIR)/cffobjs.c  \
     34                $(CFF_DIR)/cffparse.c
     35 
     36 
     37 # CFF driver headers
     38 #
     39 CFF_DRV_H := $(CFF_DRV_SRC:%.c=%.h) \
     40              $(CFF_DIR)/cfferrs.h   \
     41              $(CFF_DIR)/cfftoken.h
     42 
     43 
     44 # CFF driver object(s)
     45 #
     46 #   CFF_DRV_OBJ_M is used during `multi' builds
     47 #   CFF_DRV_OBJ_S is used during `single' builds
     48 #
     49 CFF_DRV_OBJ_M := $(CFF_DRV_SRC:$(CFF_DIR)/%.c=$(OBJ_DIR)/%.$O)
     50 CFF_DRV_OBJ_S := $(OBJ_DIR)/cff.$O
     51 
     52 # CFF driver source file for single build
     53 #
     54 CFF_DRV_SRC_S := $(CFF_DIR)/cff.c
     55 
     56 
     57 # CFF driver - single object
     58 #
     59 $(CFF_DRV_OBJ_S): $(CFF_DRV_SRC_S) $(CFF_DRV_SRC) $(FREETYPE_H) $(CFF_DRV_H)
     60 	$(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CFF_DRV_SRC_S))
     61 
     62 
     63 # CFF driver - multiple objects
     64 #
     65 $(OBJ_DIR)/%.$O: $(CFF_DIR)/%.c $(FREETYPE_H) $(CFF_DRV_H)
     66 	$(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
     67 
     68 
     69 # update main driver object lists
     70 #
     71 DRV_OBJS_S += $(CFF_DRV_OBJ_S)
     72 DRV_OBJS_M += $(CFF_DRV_OBJ_M)
     73 
     74 
     75 # EOF
     76