-lX11
Boud Roukema
boud w astro.uni.torun.pl
Śro, 22 Maj 2002, 09:44:01 CEST
Cze¶æ Micha³, Andrzej,
On Tue, 21 May 2002, Michal Frackowiak wrote:
> Too fast have I said it works...
> Boud: the libraries line looks fine in makefile as:
>
> LIBS=-lpgplot -lX11 -L"/usr/X11R6/lib"
I think this is based on what *you* have put into makemake.
I've added a few lines to makemake:
# HOW TO MODIFY:
# Modify the file makemake and run it to recreate makefile.
#
which will get written near the beginning of makefile.
>
> BUT: variable LIBS is not used anymore in the makefile except this
This is why my own (created) makefile has
LIBS=
i.e. nothing.
> moment. It should be present in all the places where ARGOPTIONS is used
> (or we shall add LIBS to ARGOPTIONS).
I think ARGOPTIONS is unused - it's left over from when I copied the
file from the pgplot makemake file...
OK, I've added some clearer suggestions of values of PGPLOT and
LIBS that could be uncommented in the file makemake.
Here's the new full section on PGPLOT from the makemake file:
##############################################################
## pgplot ##
# If you do NOT have PGPLOT, then the following two lines must
# be UNcommented, and the alternative option below commented (with #).
# 2 lines to UNcomment if you do NOT have PGPLOT:
# PGOPTIONS="$OBIN/pgnull.o"
# PGDEPEND="$OBIN/pgnull.o"
# If you DO have PGPLOT, then the two lines below must
# be UNcommented, and the alternative option above commented (with #).
#
# You will also need to have LIBS and PGPLOT defined
# as environment variables, e.g., setenv LIBS "-lpgplot -lX11"
# and setenv PGPLOT -L$PGPLOT_DIR should be in your .cshrc .
# Alternatively, you could define them as shell variables
# here,
# e.g.
# (
# PGPLOT='-L$PGPLOT_DIR'
# or
# PGPLOT='-L/opt/lib -L/usr/openwin/lib'
# or
# PGPLOT='-L/usr/X11R6/lib'
# ) and
# LIBS='-lpgplot -lX11'
# (Warning: do NOT use spaces around the '=' sign).
# 2 lines to UNcomment if you DO have PGPLOT:
PGOPTIONS="$PGPLOT $LIBS"
PGDEPEND=" "
#echo "PGOPTIONS= $PGOPTIONS"
### Lines below unlikely to need modification. ###
##############################################################
http://www.astro.uni.torun.pl/sympa/shape-univ/2002-05/msg00004.html
> In some free time I can dig some automake docs and see if it is worth
> converting to gnu configuration.
A GNU style of automake probably would be better than the PGPLOT
style, as long as it works for fortran. (And after all, I ended up
creating DEconfig.f which is probably not the most standard way
of implementing system dependent options...)
Pozdrawiam
Boud
PS: I forgot to tell everyone that Micha³ proposed adding his SNe data
analysis routines to DE later on when he has time! Sounds like a good
idea to me :), though it will require some work...
Więcej informacji o liście Shape-univ