Changes

Jump to: navigation, search

Real World Mozilla Makefile Lab

136 bytes added, 14:05, 1 April 2008
Resources
[[Dive into Real World Mozilla]] > [[Dive into Real World Mozilla Day 2]] > Makefile Lab
== Overview ==
# You will know you are done when the following commands result in nled.exe being produced:
$ make
$ make clean
$ make
or, if you want to combine this into one line:
$ make clean && makeclean
== Hints ==
* [http://msdn2.microsoft.com/en-us/library/8we9bhf4(VS.80).aspx CL /-c option]* [http://msdn2.microsoft.com/en-us/library/yb8e9b8y(VS.80).aspx CL /-Fo option]* The default extension for object files on win32 is '''.obj''' vs. .o on Unix* To create the executable (nled.exe) you must link all .obj files ''and''and''' user32.lib'''
* Running make with the '''-n''' option will show you all the commands make is going to run, which is helpful when debugging makefiles:
* [http://www.gnu.org/software/make/manual/ GNU Make Manual]
* [http://www.eng.hawaii.edu/Tutor/Make/ Make Tutorial]
* [[Makefile.in Template for In-Tree Extensions]]

Navigation menu