Bernard Leclerc (bleclerc++at++cae.ca)
Thu, 18 Apr 1996 13:19:55 -0400
> What do I need to do if a `make' does not pick up the changes in any of its
> files once it was compiled once ? In another word, if I modify my one of the
> files and compile with `make', it simply ignores the changes and declares
> that the executable is up-to-date, thus no need for compiling.
>
> I wonder if any environmental variable need some attention here.
Young,
Makefiles are no magic. Take the time to read the man page on pmake (which I
prefer over the standard make) as well as the system default make rules in
/usr/include/make/system.mk. You'll learn a lot from them. However I do not
suggest to learn Makefiles by reading the Performer 2.0 Makefile. It's too
complicated. As an example, attached is a simple makefile I use to compile
Performer 2.0 test programs such as simple.C, shadows.C, etc. Note that this
Makefile is for C++ program, I'll leave it to you to adapt it for C program.
Good luck...
P.S. To compile simple.C with this Makefile, simply type "make simple"
Isn't it simple? ;)
--
___/ | ___/ Bernard Leclerc e-mail: bleclerc++at++cae.ca
/ / | / Systems Engineer voice: +1 514 341 2000
/ / | __/ CAE Electronics Ltd. extension 2275
/ / | / 8585 Cote De Liesse fax: +1 514 340 5496
/ ____ | / P.O. Box 1800
_____/ _/ _| _____/ Saint-Laurent, Quebec, Canada, H4L-4X4
#!pmake
C++FLAGS = -DIRISGL -g +w +pp -mips2 -MDupdate Makedepend -woff 3259
LDFLAGS = -lpfdu_igl -lpfutil_igl -lpf_igl -limage -lgl -lm -lfpe -lfm -lmalloc
sinclude Makedepend
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:44 PDT