Installing make on windows

Make for Windows

Make: GNU make utility to maintain groups of programs

Version

Description

Make is a tool which controls the generation of executables and other non-source files of a program from the program’s source files. Make gets its knowledge of how to build your program from a file called the makefile, which lists each of the non-source files and how to compute it from other files. When you write a program, you should write a makefile for it, so that it is possible to use Make to build and install the program.

Capabilities of Make

  • Make enables the end user to build and install your package without knowing the details of how that is done — because these details are recorded in the makefile that you supply.
  • Make figures out automatically which files it needs to update, based on which source files have changed. It also automatically determines the proper order for updating files, in case one non-source file depends on another non-source file. As a result, if you change a few source files and then run Make, it does not need to recompile all of your program. It updates only those non-source files that depend directly or indirectly on the source files that you changed.
  • Make is not limited to any particular language. For each non-source file in the program, the makefile specifies the shell commands to compute it. These shell commands can run a compiler to produce an object file, the linker to produce an executable, ar to update a library, or TeX or Makeinfo to format documentation.
  • Make is not limited to building a package. You can also use Make to control installing or deinstalling a package, generate tags tables for it, or anything else you want to do often enough to make it worth while writing down how to do it.

Homepage

Download

If you download the Setup program of the package, any requirements for running applications, such as dynamic link libraries (DLL’s) from the dependencies as listed below under Requirements, are already included. If you download the package as Zip files, then you must download and install the dependencies zip file yourself. Developer files (header files and libraries) from other packages are however not included; so if you wish to develop your own applications, you must separately install the required packages.

Description Download Size Last change Md5sum
• Complete package, except sources Setup 3384653 25 November 2006 8ae51379d1f3eef8360df4e674f17d6d
• Sources Setup 1252948 25 November 2006 b896c02e3d581040ba1ad65024bbf2cd
• Binaries Zip 495645 25 November 2006 3521948bc27a31d1ade0dcb23be16d49
• Dependencies Zip 708206 25 November 2006 d370415aa924fa023411c4099ef84563
• Documentation Zip 2470575 25 November 2006 43a07e449d4bab3eb3f31821640ecab7
• Sources Zip 2094753 25 November 2006 8bed4cf17c5206f8094f9c96779be663

You can also download the files from the GnuWin32 files page.

You can monitor new releases of the port of this package.

Как запустить makefile под WINDOWS.

Не так давно я пересел на AtmelStudio6 с AVRStudio4. Есть у меня классный программатор клон STK500. Который просто прекрасно работает с 4й версией. Вот и получается, что пишу я теперь проги под 6й версией, а программатором пользуюсь из под 4ой. Неудобно как то. Попробовал подключить программатор к 6й. Работает через пень колоду. То работает, то не работает. Решил я сделать новый, чтоб работал по 6й версией и не пукал. Решил что это будет AVRISP mkII.

Нарыл я проект LUFA. ТУТ
Скачал код, а там торчит makefile. Самой прошивки там нет, чтоб сразу залить в микроконтроллер. Значит надо запустить сборку makefile чтоб родился hex файл. А как это сделать? Без понятия. А надо. Начал рыть. Помог один товарищ линуксоид. Вместе с ним поколупались и нарыли вот что.

1). Установить прогу mingw-get-inst-20120426.exe. В одном из окон при установке галочку поставить напротив msys. Эта прога есть здесь.

2). Установить прогу bc-1.06-2.exe. Отсюда.

3). Указать путь для переменной PATH в XP 32bit,

Переменная PATH находится здесь.
Компьютер/свойства/дополнительно/переменные среды.

C:\MinGW\msys\1.0\bin;
C:\Program Files\GnuWin32\bin;
C:\Program Files\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.939\avr8-gnu-toolchain\bin

Для WINDIWS_7 64bit
C:\MinGW\msys\1.0\bin;
C:\Program Files (x86)\GnuWin32\bin;
C:\Program Files (x86)\Atmel\Atmel Toolchain\AVR8 GCC\Native\3.4.2.939\avr8-gnu-toolchain\bin

4).Открыть консоль, зайти в нужную папку где находится файл make. Набрать команду make. Вот и все. Там же и появится желанный hex файл. Команда Make clean очищает от прежней сборки файлов.
Вот можно видео глянуть как это происходит.
Продолжение здесь.

Как использовать GNU Make в Windows?

Я установил MinGW и MSYS, добавил C:\MinGW\bin в PATH , но я все еще не могу запустить Makefile в Windows cmd . Я хотел бы запустить cmd.exe и там введите, например, make all , но мой cmd говорит, что такой команды нет.

Что мне делать? Я не хочу использовать оболочку MSYS, это не главное. Любые идеи о том, как использовать GNU Make в Windows cmd, как я могу это сделать в Ubuntu? Меня не интересует Cygwin .

Вот как я получил его для работы:

Затем я могу открыть командную строку и набрать make:

Это означает, что он работает сейчас!

Я использую GNU Make из проекта GnuWin32, см. http://gnuwin32.sourceforge.net/, но каких-то обновлений на некоторое время не было, поэтому я не уверен в этом статусе проекта.

Хотя этот вопрос старый, его все же задают многие, кто использует MSYS2.

Я начал использовать его в этом году, чтобы заменить CygWin, и я очень доволен.

Чтобы установить make , откройте оболочку MSYS2 и введите следующие команды:

Вы можете добавить папку приложения в свой путь из командной строки, используя:

setx PATH “% PATH%; c:\MinGW\bin”

Обратите внимание, что вам, вероятно, нужно будет открыть новое окно команд для изменения измененного параметра пути.

В качестве альтернативы, если вы просто хотите установить make, вы можете использовать диспетчер пакетов chocolatey для установки gnu make с помощью

choco install make -y

Это касается любых проблем с путями, которые могут у вас возникнуть.

user1594322 дал правильный ответ, но когда я попробовал это, я столкнулся с проблемами администратора/разрешения. Я смог скопировать “mingw32-make.exe” и вставить его, переопределив/обойдя проблемы администратора, а затем отредактировав копию в “make.exe”. На VirtualBox в гостях Win7.

Ответ пользователя 1594322 хороший, у меня сейчас работает (mingw64). Спасибо!

Хотя make сам по себе доступен как отдельный исполняемый файл ( gnuwin32.sourceforge.net пакет make ), его использование в надлежащей среде разработки означает использование msys2.

Git 2.24 (Q4 2019) показывает, что:

test-tool run-command : научиться управлять (частями) тестового набора

Signed-off-by: Johannes Schindelin

Git для Windows переключается между циклами, предоставляя среду разработки, которая позволяет собирать Git и запускать его набор тестов.

Для этого вся система MSYS2, включая GNU make и GCC, предлагается как “Git для Windows SDK”.
Это имеет свою цену: первоначальная загрузка указанного SDK весит несколько сотен мегабайт, а распакованный SDK занимает

2 ГБ дискового пространства.

Гораздо более естественной средой разработки для Windows является Visual Studio. Чтобы помочь разработчикам использовать эту среду, у нас уже есть цель Makefile vcxproj , которая генерирует коммит с файлами проекта (и другими сгенерированными файлами), и ветвь vs/master Git for Windows непрерывно перегенерируется с использованием этой цели.

Идея состоит в том, чтобы позволить сборку Git в Visual Studio и запускать отдельные тесты с использованием Portable Git.

Chapter 34 make : special considerations for Windows

2015-11-17 NOTE: This year we made R packages before we used make The hope is, therefore, that the make that ships with Rtools is all we need. So hopefully we can ignore this?

34.1 Install make on Microsoft Windows

We are still working out the best way to install make on Windows. Our current best recommendation is to install msysGit, which includes make as well as git and bash .

Download and install msysGit. The two software packages msysGit and Git for Windows are related. Both install git and bash , but only msysGit installs make . The programs installed by msysGit are found by default in C:\msysGit\bin . Here is the complete list of programs included with msysGit. For this activity, RStudio needs to be able to find in your PATH environment variable the program make , the shell bash , other utilities like rm and cp , and Rscript .

Here is another alternative for installing make alone:

  • Go to the Make for Windows web site.
  • Download the Setup program.
  • Install the file you just downloaded and copy to your clipboard the directory in which it is being installed.
    • FYI: The default directory is C:\Program Files (x86)\GnuWin32\
  • You now have make installed, but you need to tell Windows where to find the program. This is called updating your PATH . You will want to update the PATH to include the bin directory of the newly installed program.

34.2 Update your PATH

If you installed Make for Windows (as opposed to the make that comes with Git for Windows), you still need to update your PATH .

These are the steps on Windows 7 (we don’t have such a write-up yet for Windows 8 – feel free to send one!):

  • Click on the Windows logo.
  • Right click on Computer.
  • Select Properties.
  • Select Advanced System Settings.
  • Select Environment variables.
  • Select the line that has the PATH variable. You may have to scroll down to find it.
  • Select Edit.
  • Go to the end of the line and add a semicolon ; , followed by the path where the program was installed, followed by \bin .
    • Typical example of what one might add: ;C:\Program Files (x86)\GnuWin32\bin
  • Click Okay and close all the windows that you opened.
  • Quit RStudio and open it again.
  • You should now be able to use make from RStudio and the command line.

34.3 Issues we are still clarifying

See issue 58 for what seems to be the most comprehensive statement of the Windows situation.

What are the tricky bits?

  • Getting the same Makefile to “work” via RStudio’s Build buttons/menus and in the shell. And, for that matter, which shell? Git Bash or .
  • Ensuring make , Rscript , pandoc , rm , etc. can be found = updating PATH .
  • Getting make to use the correct shell.
    • See issue 54 on the Discussion repo.

How to install and use “make” in Windows?

I’m following the instructions of someone whose repository I cloned to my machine. What I want is simple: to be able to use the make command as part of setting up the code environment. But I’m using Windows, and I searched online only to find a make.exe file to download, a make-4.1.tar.gz file to download (I don’t know what to do with it next), and things about downloading MinGW (for GNU; but after installing it I didn’t find any mention of «make»).

I don’t want a GNU compiler or related stuff; I only want to use «make» in Windows. Please tell me what I should do to accomplish that.

Thanks in advance!

10 Answers 10

make is a GNU command so the only way you can get it on Windows is installing a Windows version like the one provided by GNUWin32. Anyway, there are several options for getting that:

The most simple choice is using Chocolatey. First you need to install this package manager. Once installed you simlpy need to install make (you may need to run it in an elevated/admin command prompt) :

Other recommended option is installing a Windows Subsystem for Linux (WSL/WSL2), so you’ll have a Linux distribution of your choice embedded in Windows 10 where you’ll be able to install make , gcc and all the tools you need to build C programs.

For older Windows versions (MS Windows 2000 / XP / 2003 / Vista / 2008 / 7 with msvcrt.dll) you can use GnuWin32.

An outdated alternative was MinGw, but the project seems to be abandoned so it’s better to go for one of the previous choices.

Читайте также:  Kali linux удаление каталога
Оцените статью