2 # FreeType 2 auto-hinter module configuration rules
 
   6 # Copyright 2000 Catharon Productions Inc.
 
   9 # This file is part of the Catharon Typography Project and shall only
 
  10 # be used, modified, and distributed under the terms of the Catharon
 
  11 # Open Source License that should come with this file under the name
 
  12 # `CatharonLicense.txt'.  By continuing to use, modify, or distribute
 
  13 # this file you indicate that you have read the license and
 
  14 # understand and accept it fully.
 
  16 # Note that this license is compatible with the FreeType license.
 
  19 # AUTO driver directory
 
  21 AUTO_DIR  := $(SRC_)autohint
 
  22 AUTO_DIR_ := $(AUTO_DIR)$(SEP)
 
  25 # compilation flags for the driver
 
  27 AUTO_COMPILE := $(FT_COMPILE)
 
  30 # AUTO driver sources (i.e., C files)
 
  32 AUTO_DRV_SRC := $(AUTO_DIR_)ahangles.c  \
 
  33                 $(AUTO_DIR_)ahglobal.c  \
 
  34                 $(AUTO_DIR_)ahglyph.c   \
 
  35                 $(AUTO_DIR_)ahhint.c    \
 
  36                 $(AUTO_DIR_)ahmodule.c
 
  40 AUTO_DRV_H := $(AUTO_DRV_SRC:%c=%h)  \
 
  41               $(AUTO_DIR_)ahloader.h \
 
  45 # AUTO driver object(s)
 
  47 #   AUTO_DRV_OBJ_M is used during `multi' builds.
 
  48 #   AUTO_DRV_OBJ_S is used during `single' builds.
 
  50 AUTO_DRV_OBJ_M := $(AUTO_DRV_SRC:$(AUTO_DIR_)%.c=$(OBJ_)%.$O)
 
  51 AUTO_DRV_OBJ_S := $(OBJ_)autohint.$O
 
  53 # AUTO driver source file for single build
 
  55 AUTO_DRV_SRC_S := $(AUTO_DIR_)autohint.c
 
  58 # AUTO driver - single object
 
  60 $(AUTO_DRV_OBJ_S): $(AUTO_DRV_SRC_S) $(AUTO_DRV_SRC) \
 
  61                    $(FREETYPE_H) $(AUTO_DRV_H)
 
  62         $(AUTO_COMPILE) $T$@ $(AUTO_DRV_SRC_S)
 
  65 # AUTO driver - multiple objects
 
  67 $(OBJ_)%.$O: $(AUTO_DIR_)%.c $(FREETYPE_H) $(AUTO_DRV_H)
 
  68         $(AUTO_COMPILE) $T$@ $<
 
  71 # update main driver object lists
 
  73 DRV_OBJS_S += $(AUTO_DRV_OBJ_S)
 
  74 DRV_OBJS_M += $(AUTO_DRV_OBJ_M)