CFLAGS

CFLAGS

CFLAGS и CXXFLAGS являются или именами переменных среды или переменными Makefile, которые устанавливаются для указания дополнительных параметров, передаваемых компилятору в процессе создания программного обеспечения.

Эти переменные обычно указываются внутри Makefile и затем выполняют вспомогательную роль по отношению к командной строке при вызове компилятора. Если они не указаны в Makefile, то они будут считаны из среды, если они там указаны. Инструменты наподобие конфигурационного скрипта ./configure утилиты autoconf обычно берут их из среды и записывают их в создаваемые Makefiles.

CFLAGS позволяет добавлять параметры для компилятора языка Си, а CXXFLAGS предполагается, что будет использоваться при вызове компилятора языка C++. Аналогично, переменная CPPFLAGS указывается для параметров, передаваемых препроцессору Си.

Эти переменные в основном используются для указания параметров компилятора при оптимизации или отладке, например: -g, -O2 или (что специфично для GCC) -march=athlon.

См. также

Ссылки


Wikimedia Foundation. 2010.

Игры ⚽ Поможем написать курсовую

Полезное


Смотреть что такое "CFLAGS" в других словарях:

  • CFLAGS — and CXXFLAGS are either the name of environment variables or of Makefile variables that can be set to specify additional switches to be passed to a compiler in the process of building computer software.These variables are usually set inside a… …   Wikipedia

  • CFLAGS — et CXXFLAGS sont les noms de variables d environnement ou de variables du Makefile qui peuvent être utilisées pour paramétrer la compilation d un logiciel. Ces variables sont habituellement positionnées dans un Makefile et sont ajoutées quand le… …   Wikipédia en Français

  • Make — Cet article a pour sujet le logiciel intitulé make. Pour une définition du mot « make », voir l’article make du Wiktionnaire. make est un logiciel traditionnel d UNIX. C est un « moteur de production » : il sert à appeler …   Wikipédia en Français

  • Makefile — make Cet article a pour sujet le logiciel intitulé make. Pour une définition du mot « make », voir l’article make du Wiktionnaire. make est un logiciel traditionnel d UNIX. C est un « moteur de production » : il sert à… …   Wikipédia en Français

  • make — Cet article a pour sujet le logiciel intitulé make. Pour une définition du mot « make », voir l’article make du Wiktionnaire. make est un logiciel traditionnel d UNIX. C est un « moteur de production » : il sert à appeler …   Wikipédia en Français

  • Make — Saltar a navegación, búsqueda make es una herramienta de generación o automatización de código, muy usada en los sistemas operativos tipo Unix/Linux. Por defecto lee las instrucciones para generar el programa u otra acción del fichero makefile.… …   Wikipedia Español

  • make — es una herramienta de generación o automatización de código, muy usada en los sistemas operativos tipo Unix/Linux. Por defecto lee las instrucciones para generar el programa u otra acción del fichero makefile. Las instrucciones escritas en este… …   Wikipedia Español

  • Make (software) — make Original author(s) Stuart Feldman Initial release 1977 Type build automation tool In software development, Make is a utility that automatically builds executable programs and libraries from source code by rea …   Wikipedia

  • Liste von Hallo-Welt-Programmen/Sonstige — Dies ist eine Liste von Hallo Welt Programmen für grafische Benutzeroberflächen, Web Technologien, exotische Programmiersprachen und Textauszeichnungssprachen. Weitere Beispiele für gebräuchliche Programmiersprachen sind unter Liste von Hallo… …   Deutsch Wikipedia

  • $PATH — Variable d environnement En informatique, les variables d’environnement sont des variables dynamiques utilisées par les différents processus d’un système d’exploitation (Windows, Unix, etc.). Elles servent à communiquer des informations entre… …   Wikipédia en Français


Поделиться ссылкой на выделенное

Прямая ссылка:
Нажмите правой клавишей мыши и выберите «Копировать ссылку»