2 # FreeType 2 dlg logging library configuration rules
6 # Copyright (C) 2020-2023 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 # dlg logging library directory
18 DLG_DIR := $(SRC_DIR)/dlg
21 # compilation flags for the library
23 DLG_COMPILE := $(CC) $(ANSIFLAGS) \
24 $I$(subst /,$(COMPILER_SEP),$(DLG_DIR)) \
29 # dlg logging library sources (i.e., C files)
31 DLG_SRC := $(DLG_DIR)/dlgwrap.c
33 # dlg logging library headers
35 DLG_H := $(TOP_DIR)/include/dlg/dlg.h \
36 $(TOP_DIR)/include/dlg/output.h
39 # dlg logging library object(s)
41 # DLG_OBJ_M is used during `multi' builds
42 # DLG_OBJ_S is used during `single' builds
44 DLG_OBJ_M := $(DLG_SRC:$(DLG_DIR)/%.c=$(OBJ_DIR)/%.$O)
45 DLG_OBJ_S := $(OBJ_DIR)/dlg.$O
47 # dlg logging library source file for single build
49 DLG_SRC_S := $(DLG_DIR)/dlgwrap.c
52 # dlg logging library - single object
54 $(DLG_OBJ_S): $(DLG_SRC_S) $(DLG_SRC) $(FREETYPE_H) $(DLG_H)
55 $(DLG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $(DLG_SRC_S))
58 # dlg logging library - multiple objects
60 $(OBJ_DIR)/%.$O: $(DLG_DIR)/%.c $(FREETYPE_H) $(DLG_H)
61 $(DLG_COMPILE) $T$(subst /,$(COMPILER_SEP),$@ $<)
64 # update main object lists
66 DLG_OBJS_S += $(DLG_OBJ_S)
67 DLG_OBJS_M += $(DLG_OBJ_M)