Edit

kc3-lang/freetype/src/cff/rules.mk

Branch :

  • Browse

    Commit

  • Author : Werner Lemberg
    Date : 2000-06-11 03:46:57
    Hash : e35cac66
    Message : A complete revision of FreeType 2's GNU makefiles (of the library): Tons of unnecessary stuff have been removed; only the essential rules have been retained. The source files now depend on all header files in include/freetype, include/freetype/config, and include/freetype/internal. This is not optimal, I know, and I'll try to improve this, but it is better than before (namely no dependencies on `internal'). FTDEBUG_SRC has been added (similar to FTSYS_SRC) -- I don't know exactly whether this is really useful, but it doesn't harm. There is now more documentation in the makefiles itself. io-frames.html: Use of <th>, <code>, and <var> for better tagging. Reactivating of FT_DEBUG_LEVEL_xxx macros. Added a lot of #include directives to make `multi' builds possible -- note that currently the modules cid, t1, and t1z have clashing structures and functions which means that you can only use one of these three modules for a multi build. Added some missing function declarations to (local) header files. Renamed some T1_Open_Face() to CID_Open_Face() in the cid module -- a lot of other functions should be renamed also... Replaced many FT_xxx stuff with T1_xxx in t1z driver -- this isn't finished yet... Fixed FT_Free() to allow a NULL pointer without an assertion (this has always been a valid assumption in FreeType, at least in FT 1.x). A lot of other, minor fixes (mostly documentation).

  • src/cff/rules.mk
  • #
    # FreeType 2 OpenType/CFF driver configuration rules
    #
    
    
    # Copyright 1996-2000 by
    # David Turner, Robert Wilhelm, and Werner Lemberg.
    #
    # This file is part of the FreeType project, and may only be used, modified,
    # and distributed under the terms of the FreeType project license,
    # LICENSE.TXT.  By continuing to use, modify, or distribute this file you
    # indicate that you have read the license and understand and accept it
    # fully.
    
    
    # OpenType driver directory
    #
    T2_DIR  := $(SRC_)cff
    T2_DIR_ := $(T2_DIR)$(SEP)
    
    
    # additional include flags used when compiling the driver
    #
    T2_INCLUDE := $(T2_DIR)
    
    # compilation flags for the driver
    #
    T2_CFLAGS  := $(T2_INCLUDE:%=$I%)
    T2_COMPILE := $(FT_COMPILE) $(T2_CFLAGS)
    
    
    # T2 driver sources (i.e., C files)
    #
    T2_DRV_SRC := $(T2_DIR_)t2objs.c   \
                  $(T2_DIR_)t2load.c   \
                  $(T2_DIR_)t2gload.c  \
                  $(T2_DIR_)t2parse.c  \
                  $(T2_DIR_)t2driver.c
    
    # T2 driver headers
    #
    T2_DRV_H := $(T2_DRV_SRC:%.c=%.h) \
                $(T2_DIR_)t2tokens.h
    
    
    # T2 driver object(s)
    #
    #   T2_DRV_OBJ_M is used during `multi' builds
    #   T2_DRV_OBJ_S is used during `single' builds
    #
    T2_DRV_OBJ_M := $(T2_DRV_SRC:$(T2_DIR_)%.c=$(OBJ_)%.$O)
    T2_DRV_OBJ_S := $(OBJ_)cff.$O
    
    # T2 driver source file for single build
    #
    T2_DRV_SRC_S := $(T2_DIR_)cff.c
    
    
    # T2 driver - single object
    #
    $(T2_DRV_OBJ_S): $(T2_DRV_SRC_S) $(T2_DRV_SRC) $(FREETYPE_H) $(T2_DRV_H)
    	$(T2_COMPILE) $T$@ $(T2_DRV_SRC_S)
    
    
    # T2 driver - multiple objects
    #
    $(OBJ_)%.$O: $(T2_DIR_)%.c $(FREETYPE_H) $(T2_DRV_H)
    	$(T2_COMPILE) $T$@ $<
    
    
    # update main driver object lists
    #
    DRV_OBJS_S += $(T2_DRV_OBJ_S)
    DRV_OBJS_M += $(T2_DRV_OBJ_M)
    
    # EOF