Mastery
CS61B » Makefiles

How to Make Them Work

1 Save the files (Lab 2, etc.) in a new Java project in Eclipse

2 In Eclipse, click on the project name, then Project » Properties » Builders

3 Create a new Builder Program

4 Name it anything. The location is C:\MinGW\msys\1.0\bin\make.exe. Click on Browse Workspace and select the current project as the Working Directory

5 Arguments are listed after “gmake” in the Makefile. Default is ‘compile.’ Enter others as you see fit

Running Project in Windows Command Prompt

1 After following the above steps, open the Command Prompt

2 cd to the location of the project