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                $(CFF_DIR)/cffpic.c
     36 
     37 
     38 # CFF driver headers
     39 #
     40 CFF_DRV_H := $(CFF_DRV_SRC:%.c=%.h) \
     41              $(CFF_DIR)/cfferrs.h   \
     42              $(CFF_DIR)/cfftoken.h
     43 
     44 
     45 # CFF driver object(s)
     46 #
     47 #   CFF_DRV_OBJ_M is used during `multi' builds
     48 #   CFF_DRV_OBJ_S is used during `single' builds
     49 #
     50 CFF_DRV_OBJ_M := $(CFF_DRV_SRC:$(CFF_DIR)/%.c=$(OBJ_DIR)/%.$O)
     51 CFF_DRV_OBJ_S := $(OBJ_DIR)/cff.$O
     52 
     53 # CFF driver source file for single build
     54 #
     55 CFF_DRV_SRC_S := $(CFF_DIR)/cff.c
     56 
     57 
     58 # CFF driver - single object
     59 #
     60 $(CFF_DRV_OBJ_S): $(CFF_DRV_SRC_S) $(CFF_DRV_SRC) $(FREETYPE_H) $(CFF_DRV_H)
     61 	$(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(CFF_DRV_SRC_S))
     62 
     63 
     64 # CFF driver - multiple objects
     65 #
     66 $(OBJ_DIR)/%.$O: $(CFF_DIR)/%.c $(FREETYPE_H) $(CFF_DRV_H)
     67 	$(CFF_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
     68 
     69 
     70 # update main driver object lists
     71 #
     72 DRV_OBJS_S += $(CFF_DRV_OBJ_S)
     73 DRV_OBJS_M += $(CFF_DRV_OBJ_M)
     74 
     75 
     76 # EOF
     77