banner



How To Run A Makefile In Windows

For tech enthusiasts, Make is a very swell style of building applications. Whether you're trying to package your app or install somebody else's, Make makes things easier.

Brand isn't available in Windows. When downloading a Windows application we download a setup file of EXE format. In that location'southward no telling what these setup files may contain. Y'all may fifty-fifty be downloading malware with exe format.

Below we have compiled a few different approaches to installing Brand in Windows.

What is Make?

GNU.org tells Make is a tool that controls the generation of programs from its source files. In simple terms, the Make tool takes the source code of the application equally input and produces the awarding as output.

Brand is targeted for applications that follow the Free and Open up Source Software (FOSS) principle. It was originally designed to work beyond Linux systems only. The source lawmaking tin can exist modified in any way we want before we package it up for use.

Installing Make on Windows

Using Winget

Winget tool by Windows manages installation and upgrade of awarding packages in Windows 10 and 11. To apply this tool, you lot need to accept at least Windows 10 or afterward installed on your PC.

  1. Press Win + R together to open the Run window.
  2. Type cmd and press Enter to bring up the Command Prompt.
  3. Blazon the command Winget install GnuWin32.make and press Enter.
  4. Type Y to concord to source agreements.
  5. After installation, printing Win + R again.
  6. Type systempropertiesadvanced and press Enter.
  7. Select Environment Variables under the Advanced tab.
  8. Under System variables, select New.
  9. Under the variable name, enter brand.
  10. Under Variable value, enter C:\Program Files(x86)\GnuWin32\bin\make.exe.
  11. Or, select Browse File and go to the above location.
  12. Printing on OK.

Using Chocolatey

Using Chocolatey is a great style to install make if you lot do non meet the minimum requirements for Winget. It is a package managing director and installer for the Windows platform. For anyone familiar with Ubuntu, it is the equivalent of apt command for software installation.

Since Make is not directly available in Windows, we need to install the packet director first. Then, nosotros will use this parcel manager to install the make tool.

  1. Press Win + X keys together to open the Power menu.
  2. Select Windows Powershell(Admin).
  3. Type the command 'Ready-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))' and press Enter.
  4. Downloads and installs chocolatey equally available from their official source.
  5. Type choco to verify if the installation worked.
  6. At present, blazon the control 'choco install make' to install Make.
  7. Go to the installation directory C:\Programme Files(x86)\GnuWin32\ to ostend the installation worked.

Using WSL

Using WSL or Windows Subsystem for Linux, we tin can install Make directly on our PC. WSL is released by Windows and then this is the most preferred way of installing Make on Windows.

For WSL, we will install Ubuntu inside our Windows.

  1. Printing Win + X keys together to open the Ability carte du jour.
  2. Select Windows Powershell(Admin).
  3. Type the command 'Wsl – install' and press Enter.
  4. Restart your PC.
  5. Go to the Get-go Menu and type Ubuntu to bring up the Ubuntu control line.
  6. Type the post-obit 'Sudo apt install gcc build-essential make -y' and press Enter.
  7. Look until the installation completes.

Using MinGW

MinGW is 1 of the older ways to install Make on Windows. MinGW is a collection of minimal GNU files for Windows. Note that using this method, you will have to type the ming32-make instead of the make control. Both exercise the same work except ming32-make is the MinGW version of make.

  1. Download the latest version of MinGW-get-setup.exe.
  2. Install MinGW past opening the setup file.
  3. Turn off installing graphical interface.
  4. Select Proceed to outset installation.
  5. Get to the installation directory and locate the bin folder.
  6. Brand sure MinGW-go.exe exists.
  7. Printing Win + R together to open the Run window.
  8. Type systempropertiesadvanced and printing Enter.
  9. Select Environment Variables nether the Advanced tab.
  10. Under System variables, double-click on Path.
  11. Select New.
  12. Type the location of MinGW-get.exe. Eastward.g. C:\MinGW\bin
  13. Select OK.
  14. Press Win + Ten together to open the Power menu.
  15. Select Windows Powershell.
  16. Blazon the command 'Mingw-get install mingw32-make' and printing Enter.

How to use Make on Windows?

Using Make on Windows is pretty much the same as Linux or other platforms. You need to showtime with a makefile along with the source code of the program.

  1. Get to the location of the source code.
  2. Do a correct-click and select Text document under New.
  3. Give it the name Makefile.
  4. Assuming the source lawmaking is source.c, paste the following lines in your makefile as given in this tutorial.
  5. Finally, open Command Prompt and go to the source code location using the cmd command.
  6. Type make and printing Enter.
  7. You can now share and open the output file as an application.
  8. You can as well modify the source code source.c whatsoever number of times and make will compile it as awarding output.

If you desire to learn more about using the Make command, in that location's unabridged documentation on its usage.

Source: https://www.technewstoday.com/install-and-use-make-in-windows/

Posted by: coomerablither.blogspot.com

0 Response to "How To Run A Makefile In Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel