Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change MARX to automake #16

Open
wants to merge 111 commits into
base: alan
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
8e70e55
add .gitignore for every subproject
hamogu Nov 23, 2015
8c27ff9
comment JD macros not needed in jdmath ot obsolute
hamogu Nov 23, 2015
30bc367
Merge branch 'master' of github.com:Chandra-MARX/marx
hamogu Dec 19, 2015
812cfec
SIZE_OF_XXX is done in autoconf
hamogu Nov 23, 2015
86e59fa
remove VAX specific test
hamogu Nov 23, 2015
4a97c38
replace test program and NEEDS_BYTE_SWAP with autoconf AC_C_BIGENDIAN
hamogu Nov 23, 2015
ad2eca6
remove jdsys.h
hamogu Nov 23, 2015
9664acb
AC_INIT to modern form
hamogu Nov 23, 2015
80d972b
Add GNU coding standard files (mostly empty)
hamogu Nov 23, 2015
e895fc0
use automake; flatten directory structure
hamogu Nov 23, 2015
031e059
remove JD_XXX from configure.ac
hamogu Nov 23, 2015
580866a
CHECK_FUNCS for erf is more stadard than the old way (but marginally …
hamogu Nov 23, 2015
c01d779
Add GNU default install instructions
hamogu Nov 23, 2015
61f2cf0
Add CHECK_HEADERS as recommendend in autoconf docs
hamogu Nov 26, 2015
2830e92
remove sysconf.c, and tests during compilation, use autoconf tests in…
hamogu Nov 27, 2015
53c0994
fdfits: flatten, convert to automake
hamogu Nov 28, 2015
b7ba184
run autoreconf
hamogu Nov 29, 2015
f9fdd45
remove obsolete file
hamogu Nov 29, 2015
39e5908
remove empty file
hamogu Nov 29, 2015
2bee797
flatten directory structure and use automake
hamogu Nov 29, 2015
64f7baf
flatten marx directory and convert to automake
hamogu Dec 3, 2015
8a2d36c
add docs and data to Makefile for installation
hamogu Dec 8, 2015
b1536de
add pfiles to install list
hamogu Dec 8, 2015
a4e5094
Add fitsdump, bestfocus and other helpers to automake.
hamogu Dec 9, 2015
5d61170
Do not regenerate mirr_ee.bin during install
hamogu Dec 9, 2015
8f2513e
Rename marxrsp to avoid conflict between file name and folder name
hamogu Dec 15, 2015
55fb93a
cftisio required; fix path for make distcheck
hamogu Dec 15, 2015
d346efd
dynamic linking handled in configure.ac
hamogu Dec 17, 2015
697132e
delete generated files and files not longer needed for configure
hamogu Dec 17, 2015
29831bd
fix dynamic link flag, add scripts tp install
hamogu Dec 18, 2015
39d34a6
Remove generated config.hin files from repro
hamogu Dec 18, 2015
05a981c
Use version information from configure, version is always string
hamogu Dec 19, 2015
0fe2abc
fix hole in off-axis PSF
hamogu Feb 10, 2016
f39dc70
interpret TStart > 2020 as years (for extended mission)
hamogu Feb 16, 2016
1dedfb1
SIMPUT source draft
hamogu Feb 23, 2016
ec354cf
Make s-simput.c compile
hamogu Feb 24, 2016
849736c
Contribute Simput photon generation to simput code base and remove here
hamogu Mar 18, 2016
aab8329
remove hardcoded, add-hos zoff, yoff, mjdref and replace by proper MA…
hamogu Mar 18, 2016
9e3c1cf
switch to dynaically loaded SIMPUT - step 1
hamogu Mar 24, 2016
955a6f1
make simput run linked (still produces garbage)
hamogu Apr 1, 2016
ef83d5b
change to SIMPUT: ARF from arrays instead of constant ARF
hamogu Apr 7, 2016
c0b5a5e
remove SIXTE file used for experimentation
hamogu Apr 7, 2016
e730525
hook simput into MARX infrastructure (marx.par, make)
hamogu Apr 7, 2016
380e9dd
Merge pull request #21 from hamogu/fix_hole
hamogu Apr 7, 2016
602ee35
Merge pull request #22 from hamogu/simput
hamogu Apr 7, 2016
465e6fb
Update verison number in code files
hamogu Apr 7, 2016
dcb5541
add s-simput to compiled objects
hamogu Apr 7, 2016
6f209f3
Merge branch 'master' of github.com:Chandra-MARX/marx
hamogu Apr 27, 2016
6ed5896
add comments to explain how flight grades are assigned
hamogu May 9, 2016
7e4ab05
Merge branch 'master' of github.com:Chandra-MARX/marx
hamogu May 10, 2016
c70c24a
This ensures that the content of the ARF arrays are persistent.
jzuhone Aug 5, 2016
4066825
Merge pull request #29 from jzuhone/fix_simput
hamogu Aug 5, 2016
938dfea
Fix string comparision in source to sort out SIMPUT case
hamogu Aug 5, 2016
1d2b50f
version number to 5.3.1
hamogu Aug 5, 2016
1346e8d
Update CalDB to version to be released for CfP on 12/15
hamogu Dec 1, 2016
13bec42
increase version number to 5.3.2
hamogu Dec 2, 2016
c7ea58a
Add return statements to to several functions.
Aug 30, 2017
8868e0a
increase version number to 5.3.3
hamogu Dec 13, 2017
351f742
Change defaults in marx.par for HRC PSF
hamogu Dec 3, 2018
b120e8f
Merge pull request #35 from hamogu/hrcpars
hamogu Dec 3, 2018
837b64f
Update CalDB to 4.8.2
hamogu Dec 7, 2018
4ee4de1
Version to 5.4
hamogu Dec 7, 2018
dde635d
Change data type of PI and PHA columns written to match CIAO
hamogu Jul 8, 2019
2ee6393
Merge pull request #36 from hamogu/i2i4
hamogu Jul 8, 2019
3090dcc
Changes by Alan
hamogu Jun 24, 2019
08191da
add comment
hamogu Jun 25, 2019
7daf2a8
revert change in source for strcmp
hamogu Jun 25, 2019
dfd3eb0
Add new charcter to marx.par output columns spec
hamogu Jul 8, 2019
7f03391
Alans final changes: remove print statements, fix grade selection
hamogu Jul 19, 2019
74cc8b5
Merge pull request #37 from hamogu/alan
hamogu Jul 26, 2019
7ef0da4
Assign energy before calling user_create_ray
hamogu Dec 9, 2019
5cb2ae6
Merge pull request #39 from hamogu/fix_38
hamogu Dec 9, 2019
01c6866
Add contributed user model
hamogu Dec 9, 2019
bd3bb58
Merge pull request #40 from hamogu/andrea_model
hamogu Dec 9, 2019
2013aa5
SIZE_OF_XXX is done in autoconf
hamogu Nov 23, 2015
108c1d1
remove VAX specific test
hamogu Nov 23, 2015
499ba26
replace test program and NEEDS_BYTE_SWAP with autoconf AC_C_BIGENDIAN
hamogu Nov 23, 2015
e8a6b9f
remove jdsys.h
hamogu Nov 23, 2015
6a3a722
AC_INIT to modern form
hamogu Nov 23, 2015
7e88e31
Add GNU coding standard files (mostly empty)
hamogu Nov 23, 2015
9bc950c
use automake; flatten directory structure
hamogu Nov 23, 2015
4ded1b8
remove JD_XXX from configure.ac
hamogu Nov 23, 2015
7160c81
CHECK_FUNCS for erf is more stadard than the old way (but marginally …
hamogu Nov 23, 2015
9cfcc88
Add GNU default install instructions
hamogu Nov 23, 2015
8ffdacf
Add CHECK_HEADERS as recommendend in autoconf docs
hamogu Nov 26, 2015
33c3143
remove sysconf.c, and tests during compilation, use autoconf tests in…
hamogu Nov 27, 2015
ae92139
fdfits: flatten, convert to automake
hamogu Nov 28, 2015
7be0be3
run autoreconf
hamogu Nov 29, 2015
316372a
remove obsolete file
hamogu Nov 29, 2015
56d3626
remove empty file
hamogu Nov 29, 2015
68111fa
flatten directory structure and use automake
hamogu Nov 29, 2015
069b723
flatten marx directory and convert to automake
hamogu Dec 3, 2015
dbfaa05
add docs and data to Makefile for installation
hamogu Dec 8, 2015
f05d11a
add pfiles to install list
hamogu Dec 8, 2015
7bb5501
Add fitsdump, bestfocus and other helpers to automake.
hamogu Dec 9, 2015
f813573
Do not regenerate mirr_ee.bin during install
hamogu Dec 9, 2015
a486174
Rename marxrsp to avoid conflict between file name and folder name
hamogu Dec 15, 2015
17ac509
cftisio required; fix path for make distcheck
hamogu Dec 15, 2015
c312ea6
dynamic linking handled in configure.ac
hamogu Dec 17, 2015
fc6e558
delete generated files and files not longer needed for configure
hamogu Dec 17, 2015
0ff2ef7
fix dynamic link flag, add scripts tp install
hamogu Dec 18, 2015
0ea694d
Remove generated config.hin files from repro
hamogu Dec 18, 2015
83b1fb9
Use version information from configure, version is always string
hamogu Dec 19, 2015
13e549d
clean up directories a little by using build-aux
hamogu Dec 20, 2015
3b1554e
defaults no longer needed in AC_CHECK_SIZEOF
hamogu Dec 20, 2015
1464d70
AC_CONFIG_AUX_DIR must be called before AC_CONFIG_SUBDIRS
hamogu Dec 22, 2015
bf78966
Update README and AUTHOR for all subpackages
hamogu Apr 27, 2016
6b62254
Change rsp sub-dir to be build as its own package
hamogu Feb 8, 2020
7dfa7f6
Make make work
hamogu Feb 8, 2020
72d15ae
Merge branch 'am2' of github.com:hamogu/marx into am2
hamogu Feb 9, 2020
8e84692
continue tweaking automake and configure files
hamogu Aug 31, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 25 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,30 @@
# Editor backups
*bak
*~

*html
# autoconf / automake
/Makefile
/Makefile.in
/aclocal.m4
/autom4te.cache/
/config.*
/configure
/depcomp
/install-sh
/libtool
/ltmain.sh
/m4/
/missing
/stamp-h?
.deps/
.dirstamp
.libs/

*.png
*.ps
# shared libraries
*.l[ao]

*.pyc
build
build_figures
# static libraries
*.a

# executables
*.o
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
John E. Davis <jed at jedsoft dot org>
H. Moritz Guenther <moritz dot guenther at gmx dot de>
File renamed without changes.
2 changes: 1 addition & 1 deletion marx/COPYRIGHT → COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
This file is part of MARX

Copyright (C) 2002-2015 Massachusetts Institute of Technology
Copyright (C) 2002-2018 Massachusetts Institute of Technology

This software was developed by the MIT Center for Space Research
under contract SV1-61010 from the Smithsonian Institution.
Expand Down
File renamed without changes.
98 changes: 49 additions & 49 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,19 @@
MARX Installation Notes. For details, see
<http://space.mit.edu/ASC/marx/inbrief/install.html>.

Prerequisites
=============

MARX now requires the CFITSIO library to work. (Up until MARX version 5.2
this was an optional dependency.) It is not included in the release because
you most likely already have one or more copies on your system. MARX will attempt
to find a version of CFITSIO during the installation, but if it's installed in a
non-standard location, you might have to provide the path to the ``configure``
script (see below for details).

Building and installing MARX
============================

Before building marx, you need to decide where you want to install it.
A good choice for a multi-user system is under /usr/local/. If you
want to install it for personal use, something like $HOME/marx/ might
Expand All @@ -12,24 +25,8 @@ configure script as follows:

# ./configure --prefix=/usr/local

If you intend to build marxrsp (see below for details), then add the
location of where libcfitsio is located to the configure line, e.g.,

# ./configure --prefix=/usr/local --with-cfitsio=/opt

This form assumes that libcfitsio and fitsio.h are in the lib/ and
include/ subdirectories of a common root directory (/opt in this
example. If this is not the case, then you will have to use the
--with-cfitsiolib and --with-cfitsioinc options, as indicated by
running `./configure --help | grep cfitsio`:

--with-cfitsio=DIR Use DIR/lib and DIR/include for cfitsio
--with-cfitsiolib=DIR cfitsio library in DIR
--with-cfitsioinc=DIR cfitsio include files in DIR

NOTE: If you used "--with-cfitsio=$HEADAS" to link to the version
of CFITSIO distributed with HEASOFT, then see the important note
below in the MARXRSP section of this document.
(See below for instruction if the script stoped because it failed to find
CFITSIO.)

The configure step may take a few minutes to complete, depending upon
the speed of your system. This script probes your system to see what
Expand Down Expand Up @@ -59,42 +56,45 @@ So, you may have to perform the install script using something like

# sudo make install

===========================================================================
MARXRSP
===========================================================================
Note: You do not need marxrsp to run marx. This program is optional!!

To build marxrsp, you first need to get the CFITSIO library if you do
not already have it. It is not included in this distribution because
you probably already have it if you have ftools. In any case, after
locating your CFITSIO distribution, or building and installing
CFITSIO, and running configure as described above, then do:

make marxrsp
make install
Find a copy of CFITSIO
======================
If the ``configure`` script above failed to find CFITSIO, you might not have
it installed or have it installed in a non-standard configuration. In this case
you need to install it or (if already installed) tell the configure script where
to find it.

CFITSIO can be installed in many ways. You need to find one copy of
``libcfitsio.a`` and ``fitsio.h``. Pick one of te following options:

If marxrsp failed to build, then most likely you do not have CFITSIO
properly installed, or you specified the wrong CFITSIO location when
you configured marx.
- If you have `CIAO`_ installed, you find these files in ``CIAO_PATH/ots/lib/``
and ``CIAO_PATH/ots/include``.
- Install CFITSIO through your package manager, e.g.

Note to HEASOFT users:
- Debian/Ubuntu: ``sudo apt-get install Libcfitsio-dev``
- Fedora/openSuSE/...: ``sudo yum install cfitsio-devel``
- MacPorts: ``sudo port install cfitsio``
- See the documentation for your package manager for other systems.

If you tried to compile against the version of CFITSIO distributed
with HEASOFT, you should be aware that the CFITSIO library
- Install from source from
https://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html
- HEASOFT (ftools): If you tried to compile against the version of CFITSIO
distributed with HEASOFT, you should be aware that the CFITSIO library
distributed with it has been renamed to include the version number
in the name of the library. The reason for this is that shared
versions of the CFITSIO library are generally not backward binary
compatible with one another. In this case, you will need to edit
marxrsp/Makefile and explicitly add the version number. For
example, if you used

--with-cfitsio=$HEADAS

then look in the $HEADAS directory to see what libcfitsio is called.
Let's assume that you see something like libcfitsio_3.27.dylib in
the $HEADAS directory. Then in marxrsp/Makefile change "-lcfitsio" to
"-lcfitsio_3.27". Keep in mind that after doing this, marxrsp will be
tied to this particular version of the CFITSIO library, and you will
not be able to update HEASOFT without breaking marxrsp. For this
reason, it is recommended that you download CFITSIO from
http://heasarc.nasa.gov/ and install it separately.
compatible with one another.
Look in the $HEADAS directory to see what libcfitsio is called.
Let's assume that you see something like ``libcfitsio_3.27.dylib`` in
the $HEADAS directory.
You can make a softlink ``ln -s libcfitsio_3.27.dynlib cfitsio.dynlib``.

If ``configure`` does not find the CFITSIO library files, you need to tell it where to
look:

Set ``LDFLAGS=-L/path_to_cfitsio_a`` and ``CFLAGS=-I/path_to_fitsio.h``. E.g. if you have
the static library ``cfitsio.a`` in ``/opt/local/lib`` and the header file ``fitsio.h`` in
``/opt/local/include/`` you do:

./configure --prefix=/where/to/install LDFLAGS=-L/opt/local/lib CFLAGS=-I/opt/local/include
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ marx/libsrc/s-point.c
marx/libsrc/s-rayfile.c
marx/libsrc/s-saosac.c
marx/libsrc/s-user.c
marx/libsrc/s-simput.c
marx/libsrc/trans.c
marx/libsrc/util.c
marx/libsrc/wfold.c
Expand Down
Loading