2 # FreeType 2 Windows FNT/FON driver configuration rules
6 # Copyright 1996-2018 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 # Windows driver directory
18 FNT_DIR := $(SRC_DIR)/winfonts
21 FNT_COMPILE := $(CC) $(ANSIFLAGS) \
22 $I$(subst /,$(COMPILER_SEP),$(FNT_DIR)) \
27 # Windows driver sources (i.e., C files)
29 FNT_DRV_SRC := $(FNT_DIR)/winfnt.c
31 # Windows driver headers
33 FNT_DRV_H := $(FNT_DRV_SRC:%.c=%.h) \
37 # Windows driver object(s)
39 # FNT_DRV_OBJ_M is used during `multi' builds
40 # FNT_DRV_OBJ_S is used during `single' builds
42 FNT_DRV_OBJ_M := $(FNT_DRV_SRC:$(FNT_DIR)/%.c=$(OBJ_DIR)/%.$O)
43 FNT_DRV_OBJ_S := $(OBJ_DIR)/winfnt.$O
45 # Windows driver source file for single build
47 FNT_DRV_SRC_S := $(FNT_DIR)/winfnt.c
50 # Windows driver - single object
52 $(FNT_DRV_OBJ_S): $(FNT_DRV_SRC_S) $(FNT_DRV_SRC) $(FREETYPE_H) $(FNT_DRV_H)
53 $(FNT_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(FNT_DRV_SRC_S))
56 # Windows driver - multiple objects
58 $(OBJ_DIR)/%.$O: $(FNT_DIR)/%.c $(FREETYPE_H) $(FNT_DRV_H)
59 $(FNT_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
62 # update main driver object lists
64 DRV_OBJS_S += $(FNT_DRV_OBJ_S)
65 DRV_OBJS_M += $(FNT_DRV_OBJ_M)