Ticket #25031: config.mk

File config.mk, 1.6 KB (added by dm@…, 14 years ago)

config.mk

Line 
1#
2# FreeType 2 configuration rules for UNIX platforms
3#
4
5
6# Copyright 1996-2000, 2002, 2004, 2006 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# We need these declarations here since unix-def.mk is a generated file.
16BUILD_DIR := $(TOP_DIR)/builds/unix
17PLATFORM  := unix
18
19have_mk := $(wildcard $(OBJ_DIR)/unix-def.mk)
20ifneq ($(have_mk),)
21  # We are building FreeType 2 not in the src tree.
22  include $(OBJ_DIR)/unix-def.mk
23  include $(OBJ_DIR)/unix-cc.mk
24else
25  include $(BUILD_DIR)/unix-def.mk
26  include $(BUILD_DIR)/unix-cc.mk
27endif
28
29ifdef BUILD_PROJECT
30
31  .PHONY: clean_project distclean_project
32
33  # Now include the main sub-makefile.  It contains all the rules used to
34  # build the library with the previous variables defined.
35  #
36  include $(TOP_DIR)/builds/$(PROJECT).mk
37
38
39  # The cleanup targets.
40  #
41  clean_project: clean_project_unix
42  distclean_project: distclean_project_unix
43
44
45  # This final rule is used to link all object files into a single library.
46  # It is part of the system-specific sub-Makefile because not all
47  # librarians accept a simple syntax like
48  #
49  #   librarian library_file {list of object files}
50  #
51    $(PROJECT_LIBRARY): $(OBJECTS_LIST)
52  ifdef CLEAN_LIBRARY
53            -$(CLEAN_LIBRARY) $(NO_OUTPUT)
54  endif
55            $(LINK_LIBRARY)
56
57  include $(TOP_DIR)/builds/unix/install.mk
58
59endif
60
61
62# EOF