From: Joe K. <jko...@co...> - 2005-09-21 15:25:55
|
on 9/20/05 10:25 PM, Alan W. Irwin at ir...@be... wrote: > On 2005-09-20 20:52-0600 Joe Koski wrote: > >> on 9/20/05 6:37 PM, Alan W. Irwin at ir...@be... wrote: >>> Look at the installed examples (the ones that are created in >>> $prefix/share/plplot5.5.3/examples/f77 when your run "make install"). There >>> is a short Makefile in that installed directory that has everything you need >>> to know. >>> >>> Alan >> >> Alan, >> >> I couldn't find a "short" makefile in the f77 example directory. Are these >> the typical makefile lines (out of 951) to which you refer? >> >> x06f$(EXEEXT): $(x06f_OBJECTS) $(x06f_DEPENDENCIES) >> @rm -f x06f$(EXEEXT) >> $(F77LINK) $(x06f_LDFLAGS) $(x06f_OBJECTS) $(x06f_LDADD) $(LIBS) >> > > Nope. I guess you misunderstood what I said above which I now realize was > terse. To expand on that do run ./configure with an install prefix of your > choice. (This can be any convenient _empty_ directory under your home > directory.) Do run "./configure --prefix=whatever", make, and "make > install". Then look at the Makefile in the above _installed_ directory. It > is only ~70 lines long and a good third of that is the copyright notice. > Note the "make install" command copies everything a PLplot users needs > (including the examples and convenient Makefiles for them) in one convenient > location rather than having files scattered all over the build tree and > mixed in with a lot of other files which are normally not needed by the > PLplot user. Note, you should put $prefix/bin on your PATH before executing > the make command in the above _installed_ examples directory to build all > the examples. > > Alan Alan, Thanks. I went into my installed plplot examples in /usr/local/share/plplot5.3.1/examples/f77 and copied the Makefile there to my home directory for inspection. Yes, it is much simpler than the one in the original directory. This should be what I need to get the job done. The plplot examples all work, so this will also be a good prototype for my own makefiles. Joe |