Tech News Today
  • News
  • How To
  • Buyer’s Guide
  • Hardware
    • PC Builds
    • Computer Cases
    • Motherboards
    • Peripherals
    • RAM
  • Gaming
  • Software
  • More
    • Mobile
    • Gadgets
    • Laptops
    • Reviews
Facebook Twitter Instagram
Tech News Today
  • News
  • How To
  • Buyer’s Guide
  • Hardware
    • PC Builds
    • Computer Cases
    • Motherboards
    • Peripherals
    • RAM
  • Gaming
  • Software
  • More
    • Mobile
    • Gadgets
    • Laptops
    • Reviews
Tech News Today
Home»Software»How to Install and Use “Make” in Windows

How to Install and Use “Make” in Windows

SandeepBy SandeepNovember 20, 2021
Install and Use Make in Windows

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

Make isn’t available in Windows. When downloading a Windows application we download a setup file of EXE format. There’s no telling what these setup files may contain. You may even be downloading malware with exe format.

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

Table of Contents

  • What is Make?
  • Installing Make on Windows
    • Using Winget
    • Using Chocolatey
    • Using WSL
    • Using MinGW
  • How to use Make on 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 as input and produces the application as output.

Make is targeted for applications that follow the Free and Open Source Software (FOSS) principle. It was originally designed to work across Linux systems only. The source code can be 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 application packages in Windows 10 and 11. To use this tool, you need to have at least Windows 10 or later 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. Type the command Winget install GnuWin32.make and press Enter.
    run-cmd-command
  4. Type Y to agree to source agreements.
    type Y to agree cmd-command
  5. After installation, press Win + R again.
  6. Type systempropertiesadvanced and press Enter.
    run menu
  7. Select Environment Variables under the Advanced tab.
    environment-variables
  8. Under System variables, select New.
    new-options
  9. Under the variable name, enter make.
  10. Under Variable value, enter C:\Program Files(x86)\GnuWin32\bin\make.exe.
  11. Or, select Browse File and go to the above location.
    variable-value
  12. Press on OK.

Using Chocolatey

Using Chocolatey is a great way to install make if you do not meet the minimum requirements for Winget. It is a package manager 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 package manager first. Then, we will use this package 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 ‘Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))' and press Enter.
    power-shell-command
  4. Downloads and installs chocolatey as available from their official source.
  5. Type choco to verify if the installation worked.
    powershell-choco
  6. Now, type the command ‘choco install make‘ to install Make.
    install-choco-make
  7. Go to the installation directory C:\Program Files(x86)\GnuWin32\ to confirm the installation worked.

Using WSL

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

For WSL, we will install Ubuntu inside our Windows.

  1. Press Win + X keys together to open the Power menu.
  2. Select Windows Powershell(Admin).
  3. Type the command ‘Wsl – install‘ and press Enter.
    powershell-wsl--install
  4. Restart your PC.
  5. Go to the Start Menu and type Ubuntu to bring up the Ubuntu command line.
  6. Type the following ‘Sudo apt install gcc build-essential make -y‘ and press Enter.
    powershell-command
  7. Wait until the installation completes.

Using MinGW

MinGW is one 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 command. Both do 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 by opening the setup file.
    install-mingw
  3. Turn off installing graphical interface.
    install--mingw2
  4. Select Continue to start installation.
    mingw-insatallation-package-setup
  5. Go to the installation directory and locate the bin folder.
  6. Make sure MinGW-get.exe exists.
    mingw-exe-file
  7. Press Win + R together to open the Run window.
  8. Type systempropertiesadvanced and press Enter.
  9. Select Environment Variables under the Advanced tab.
    environment-variables
  10. Under System variables, double-click on Path.
    mingw-path
  11. Select New.
    new
  12. Type the location of MinGW-get.exe. E.g. C:\MinGW\bin
    type-location
  13. Select OK.
  14. Press Win + X together to open the Power menu.
  15. Select Windows Powershell.
  16. Type the command ‘Mingw-get install mingw32-make‘ and press Enter.
    windows-power-shell-command

How to use Make on Windows?

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

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

If you want to learn more about using the Make command, there’s entire documentation on its usage.

Windows
Sandeep

Tech enthusiast. Windows. Linux. Security. Networking.

Related Posts

google-drive-backup-restore-2

How To Backup And Restore With Google Drive

March 29, 2022
Excel Filter Not Working

Excel Filter Not Working? Try These Fixes

March 28, 2022
remove-password-excel

How to Add and Remove Password From Excel?

March 27, 2022
recover-folder-in-outlook

How to Recover Folder in Outlook

March 26, 2022
outlook-trying-to-connect

Why is My Outlook Trying To Connect? 12 Ways To Reconnect It

March 26, 2022
obs not recording video

OBS Not Recording Video? How To Fix It

March 24, 2022
Add A Comment

Leave A Reply Cancel Reply

Latest Posts
4k_vs_ultrawide

4k Vs Ultrawide: Which One Is Better?

April 4, 2022
wave-browser

What Is Wave Browser? Should I Remove It?

April 4, 2022
lost ark how long to 60

How Long to Reach Max Level in Lost Ark

April 4, 2022
You may also like
power-switch-on-motherboard

How to Turn on the Computer From Motherboard Without Case

April 4, 2022
private mode safari

Private Mode on Safari – How to Enable or Disable it?

April 4, 2022
can't-find-chromecast

Can’t Find Chromecast? Here’s How to Fix It

April 4, 2022
Recommended
Cookie Clicker Garden Guide

Cookie Clicker Garden Guide to Unlocking Every Seed

September 26, 2021
monitor no signal

Computer Turns On But Monitor Says No Signal (9 Ways To Fix)

October 25, 2021
Facebook Twitter Pinterest
  • Home
  • About Us
  • Privacy Policy
  • Affiliate Disclosure
© 2022 TechNewsToday.

Type above and press Enter to search. Press Esc to cancel.