2 # FreeType 2 SFNT driver configuration rules
6 # Copyright 1996-2000 by
7 # David Turner, Robert Wilhelm, and Werner Lemberg.
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
16 # SFNT driver directory
18 SFNT_DIR := $(SRC_)sfnt
19 SFNT_DIR_ := $(SFNT_DIR)$(SEP)
22 # compilation flags for the driver
24 SFNT_COMPILE := $(FT_COMPILE)
27 # SFNT driver sources (i.e., C files)
29 SFNT_DRV_SRC := $(SFNT_DIR_)ttload.c \
30 $(SFNT_DIR_)ttcmap.c \
31 $(SFNT_DIR_)ttsbit.c \
32 $(SFNT_DIR_)ttpost.c \
33 $(SFNT_DIR_)sfobjs.c \
34 $(SFNT_DIR_)sfdriver.c
38 SFNT_DRV_H := $(SFNT_DRV_SRC:%c=%h)
41 # SFNT driver object(s)
43 # SFNT_DRV_OBJ_M is used during `multi' builds.
44 # SFNT_DRV_OBJ_S is used during `single' builds.
46 SFNT_DRV_OBJ_M := $(SFNT_DRV_SRC:$(SFNT_DIR_)%.c=$(OBJ_)%.$O)
47 SFNT_DRV_OBJ_S := $(OBJ_)sfnt.$O
49 # SFNT driver source file for single build
51 SFNT_DRV_SRC_S := $(SFNT_DIR_)sfnt.c
54 # SFNT driver - single object
56 $(SFNT_DRV_OBJ_S): $(SFNT_DRV_SRC_S) $(SFNT_DRV_SRC) \
57 $(FREETYPE_H) $(SFNT_DRV_H)
58 $(SFNT_COMPILE) $T$@ $(SFNT_DRV_SRC_S)
61 # SFNT driver - multiple objects
63 $(OBJ_)%.$O: $(SFNT_DIR_)%.c $(FREETYPE_H) $(SFNT_DRV_H)
64 $(SFNT_COMPILE) $T$@ $<
67 # update main driver object lists
69 DRV_OBJS_S += $(SFNT_DRV_OBJ_S)
70 DRV_OBJS_M += $(SFNT_DRV_OBJ_M)