• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# FreeType 2 dlg logging library configuration rules
3#
4
5
6# Copyright (C) 2020-2022 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# dlg logging library directory
17#
18DLG_DIR := $(SRC_DIR)/dlg
19
20
21# compilation flags for the library
22#
23DLG_COMPILE := $(CC) $(ANSIFLAGS)                            \
24                     $I$(subst /,$(COMPILER_SEP),$(DLG_DIR)) \
25                     $(INCLUDE_FLAGS)                        \
26                     $(FT_CFLAGS)
27
28
29# dlg logging library sources (i.e., C files)
30#
31DLG_SRC := $(DLG_DIR)/dlgwrap.c
32
33# dlg logging library headers
34#
35DLG_H := $(TOP_DIR)/include/dlg/dlg.h \
36         $(TOP_DIR)/include/dlg/output.h
37
38
39# dlg logging library object(s)
40#
41#   DLG_OBJ_M is used during `multi' builds
42#   DLG_OBJ_S is used during `single' builds
43#
44DLG_OBJ_M := $(DLG_SRC:$(DLG_DIR)/%.c=$(OBJ_DIR)/%.$O)
45DLG_OBJ_S := $(OBJ_DIR)/dlg.$O
46
47# dlg logging library source file for single build
48#
49DLG_SRC_S := $(DLG_DIR)/dlgwrap.c
50
51
52# dlg logging library - single object
53#
54$(DLG_OBJ_S): $(DLG_SRC_S) $(DLG_SRC) $(FREETYPE_H) $(DLG_H)
55	$(DLG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(DLG_SRC_S))
56
57
58# dlg logging library - multiple objects
59#
60$(OBJ_DIR)/%.$O: $(DLG_DIR)/%.c $(FREETYPE_H) $(DLG_H)
61	$(DLG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
62
63
64# update main object lists
65#
66DLG_OBJS_S += $(DLG_OBJ_S)
67DLG_OBJS_M += $(DLG_OBJ_M)
68
69
70# EOF
71