Mail Archives: djgpp/1997/12/18/00:15:50
Kent wrote in message <674pcp$dc2 AT bgtnsc01 DOT worldnet DOT att DOT net>...
>Hey, I was just wondering what Make and Makefiles are. Thanks, cYA
>--
> _ ___
>|/ |_ |\ | |
>|\ |_ | \| | e-mail: cybyrpunk AT postoffice DOT worldnet DOT att DOT net
> webpage: http://www.angelfire.com/oh/cybyrpunk
Make and makefiles are for large projects. For example:
You have 3 files, combining them makes foo.exe:
foo.c, gfx.c, sound.c
When you make a makefile properly, make will compile:
gcc -c foo.c
gcc -c gfx.c
gcc -c sound.c
gcc -o foo.exe foo.o gfx.o sound.o
Let's say you change sound.c to incorperate a new sound card (who knows). Then
you save it and re-run make.
gcc -c sound.c
gcc -o foo.exe foo.o gfx.o sound.o
It does all sorts of neat things. Check out the DJGPP documentation for details,
or a general programming book for an overall view of makefiles.
- Raw text -