📄 detect.mk
字号:
## FreeType 2 host platform detection rules## Copyright 1996-2000 by# David Turner, Robert Wilhelm, and Werner Lemberg.## This file is part of the FreeType project, and may only be used modified# and distributed under the terms of the FreeType project license,# LICENSE.TXT. By continuing to use, modify, or distribute this file you# indicate that you have read the license and understand and accept it# fully.# This sub-Makefile is in charge of detecting the current platform. It sets# the following variables:## BUILD The configuration and system-specific directory. Usually# `freetype/config/$(PLATFORM)' but can be different if a# specific compiler has been requested on the command line.## The following variables must be defined in system specific `detect.mk'# files:## PLATFORM The detected platform. This will default to `ansi' if# auto-detection fails.# CONFIG_FILE The Makefile to use. This usually depends on the compiler# defined in the `CC' environment variable.# DELETE The shell command used to remove a given file.# COPY The shell command used to copy one file.# SEP The platform-specific directory separator.# CC The compiler to use.## You need to set the following variable(s) before calling it:## TOP The top-most directory in the FreeType library source# hierarchy. If not defined, it will default to `.'.# If TOP is not defined, default it to `.'#ifndef TOPTOP := .endif# Set auto-detection default to `ansi'.# Note that we delay the evaluation of $(CONFIG_), $(BUILD), and# $(CONFIG_RULES).#PLATFORM := ansiDELETE := $(RM)COPY := cpSEP := /CONFIG_ = $(TOP)$(SEP)config$(SEP)BUILD = $(CONFIG_)$(PLATFORM)CONFIG_RULES = $(BUILD)$(SEP)$(CONFIG_FILE)# We define the BACKSLASH variable to hold a single back-slash character.# This is needed because a line like## SEP := \## does not work with GNU Make (the backslash is interpreted as a line# continuation). While a line like## SEP := \\## really defines $(SEP) as `\' on Unix, and `\\' on Dos and Windows!#BACKSLASH := $(strip \ )# Now, include all detection rule files found in the `config/<system>'# directories. Note that the calling order of the various `detect.mk' files# isn't predictable.#include $(wildcard $(CONFIG_)*/detect.mk)# In case no detection rule file was successful, use the default.#ifndef CONFIG_FILE CONFIG_FILE := ansi.mk setup: std_setupendif# The following targets are equivalent, with the exception that they use# slightly different syntaxes for the `echo' command.## std_setup: defined for most platforms# dos_setup: defined for Dos-ish platforms like Dos, Windows & OS/2#.PHONY: std_setup dos_setupstd_setup: @echo "" @echo "FreeType build system -- automatic system detection" @echo "" @echo "The following settings are used:" @echo "" @echo " platform $(PLATFORM)" @echo " compiler $(CC)" @echo " configuration directory $(BUILD)" @echo " configuration rules $(CONFIG_RULES)" @echo "" @echo "If this does not correspond to your system or settings please remove the file" @echo "\`$(CONFIG_MK)' from this directory then read the INSTALL file for help." @echo "" @echo "Otherwise, simply type \`make' again to build the library." @echo "" @$(COPY) $(CONFIG_RULES) $(CONFIG_MK)dos_setup: @echo
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -