Commit 80e2083f authored by Danny Boxhoorn's avatar Danny Boxhoorn
Browse files

Version from 2006/11/16

parent 7c98c5bd
PFGS = aga/aga float2ushort/float2ushort getpsf/getpsf getvar.wcs/getvar mstack/mstack phot/phot wcs2pix/wcs2pix psw/psw
all: ${PFGS}
clean:
touch ${PFGS} out.o
rm ${PFGS}
find . -name "*.[oa]" | xargs rm
install: ${PFGS}
cp -p ${PFGS} ~/bin/
aga/aga: aga/*.[ch]
cd aga; make
float2ushort/float2ushort: float2ushort/*.[ch]
cd float2ushort; make
getpsf/getpsf: getpsf/*.[ch]
cd getpsf ; make
getvar.wcs/getvar: getvar.wcs/*.[ch] getvar.wcs/cfitsio/lib/libcfitsio.a getvar.wcs/wcs/libwcs.a
cd getvar.wcs ; make
getvar.wcs/cfitsio/lib/libcfitsio.a:
cd getvar.wcs/cfitsio/ ; ./configure ; make libcfitsio.a ; make install
getvar.wcs/wcs/libwcs.a:
cd getvar.wcs/wcs/; make
mstack/mstack: mstack/*.[ch]
cd mstack ; make
phot/phot: phot/*.[ch]
cd phot ; make
wcs2pix/wcs2pix: wcs2pix/wcs2pix.[ch] wcs2pix/cfitsio/lib/libcfitsio.a wcs2pix/wcs/libwcs.a
cd wcs2pix ; make
wcs2pix/cfitsio/lib/libcfitsio.a:
cd wcs2pix/cfitsio/; ./configure ; make libcfitsio.a ; make install
wcs2pix/wcs/libwcs.a:
cd wcs2pix/wcs/ ; make
psw/psw: psw/psw.for
cd psw ; f77 -o psw psw.for
# Generated automatically from Makefile.in by configure.
#
# Makefile for cfitsio library:
# libcfits.a
#
# Oct-96 : original version by
#
# JDD/WDP
# NASA GSFC
# Oct 1996
#
# 25-Jan-01 : removed conditional drvrsmem.c compilation because this
# is now handled within the source file itself.
# 09-Mar-98 : modified to conditionally compile drvrsmem.c. Also
# changes to target all (deleted clean), added DEFS, LIBS, added
# DEFS to .c.o, added SOURCES_SHMEM and MY_SHMEM, expanded getcol*
# and putcol* in SOURCES, modified OBJECTS, mv changed to /bin/mv
# (to bypass aliasing), cp changed to /bin/cp, add smem and
# testprog targets. See also changes and comments in configure.in
#
CFITSIO_LIB = /home/tig/VODIA/package/getvar.wcs/cfitsio/lib
CFITSIO_INCLUDE = /home/tig/VODIA/package/getvar.wcs/cfitsio/include
SHELL = /bin/sh
RANLIB = ranlib
CC = cc
CFLAGS = -O -O2 -Dg77Fortran -fPIC
FC = f77
LDFLAGS = $(CFLAGS)
DEFS = -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MATH_H=1 -DHAVE_LIMITS_H=1 -DHAVE_FTRUNCATE=1 -DHAVE_LONGLONG=1 -DHAVE_SHMEM_SERVICES=1 -DHAVE_NET_SERVICES=1
LIBS =
FLEX = flex
BISON = bison
SHLIB_LD = cc -shared
SHLIB_SUFFIX = .so
.c.o:
$(CC) -c $(CFLAGS) $(DEFS) $<
CORE_SOURCES = buffers.c cfileio.c checksum.c compress.c drvrfile.c drvrmem.c \
drvrnet.c drvrsmem.c editcol.c edithdu.c eval_l.c eval_y.c \
eval_f.c fitscore.c getcol.c getcolb.c getcold.c getcole.c \
getcoli.c getcolj.c getcolk.c getcoll.c getcols.c getcolsb.c \
getcoluk.c getcolui.c getcoluj.c getkey.c group.c grparser.c \
histo.c iraffits.c \
modkey.c putcol.c putcolb.c putcold.c putcole.c putcoli.c \
putcolj.c putcolk.c putcoluk.c putcoll.c putcols.c putcolsb.c \
putcolu.c putcolui.c putcoluj.c putkey.c region.c scalnull.c \
swapproc.c wcssub.c wcsutil.c imcompress.c quantize.c ricecomp.c \
pliocomp.c
SOURCES = ${CORE_SOURCES} ${FITSIO_SRC}
OBJECTS = ${SOURCES:.c=.o}
CORE_OBJECTS = ${CORE_SOURCES:.c=.o}
FITSIO_SRC = f77_wrap1.c f77_wrap2.c f77_wrap3.c f77_wrap4.c
# ============ description of all targets =============
# - <<-- ignore error code
all:
@if [ "x${FC}" = x ]; then \
${MAKE} all-nofitsio; \
else \
${MAKE} stand_alone; \
fi
all-nofitsio:
${MAKE} stand_alone "FITSIO_SRC="
stand_alone: libcfitsio.a
libcfitsio.a: ${OBJECTS}
ar rv libcfitsio.a ${OBJECTS}; \
${RANLIB} libcfitsio.a;
shared: libcfitsio${SHLIB_SUFFIX}
libcfitsio${SHLIB_SUFFIX}: ${OBJECTS}
${SHLIB_LD} -o $@ ${OBJECTS}
install: libcfitsio.a ${CFITSIO_LIB} ${CFITSIO_INCLUDE}
@if [ -f libcfitsio.a ]; then \
/bin/mv libcfitsio.a ${CFITSIO_LIB}; \
fi; \
if [ -f libcfitsio${SHLIB_SUFFIX} ]; then \
/bin/mv libcfitsio${SHLIB_SUFFIX} ${CFITSIO_LIB}; \
fi; \
/bin/cp fitsio.h fitsio2.h longnam.h drvrsmem.h ${CFITSIO_INCLUDE}/
smem: smem.o libcfitsio.a ${OBJECTS}
${CC} $(CFLAGS) $(DEFS) -o smem smem.o -L. -lcfitsio -lm
testprog: testprog.o libcfitsio.a ${OBJECTS}
${CC} $(CFLAGS) $(DEFS) -o testprog testprog.o -L. -lcfitsio -lm ${LIBS}
fitscopy: fitscopy.o libcfitsio.a ${OBJECTS}
${CC} $(CFLAGS) $(DEFS) -o fitscopy fitscopy.o -L. -lcfitsio -lm ${LIBS}
speed: speed.o libcfitsio.a ${OBJECTS}
${CC} $(CFLAGS) $(DEFS) -o speed speed.o -L. -lcfitsio -lm ${LIBS}
imcopy: imcopy.o libcfitsio.a ${OBJECTS}
${CC} $(CFLAGS) $(DEFS) -o imcopy imcopy.o -L. -lcfitsio -lm ${LIBS}
listhead: listhead.o libcfitsio.a ${OBJECTS}
${CC} $(CFLAGS) $(DEFS) -o listhead listhead.o -L. -lcfitsio -lm ${LIBS}
cookbook: cookbook.o libcfitsio.a ${OBJECTS}
${CC} $(CFLAGS) $(DEFS) -o cookbook cookbook.o -L. -lcfitsio -lm ${LIBS}
eval: # Rebuild eval_* files from flex/bison source
$(FLEX) -t eval.l > eval_l.c1
/bin/sed -e 's/yy/ff/g' -e 's/YY/FF/g' eval_l.c1 > eval_l.c
/bin/rm -f eval_l.c1
$(BISON) -d -v -y eval.y
/bin/sed -e 's/yy/ff/g' -e 's/YY/FF/g' y.tab.c > eval_y.c
/bin/sed -e 's/yy/ff/g' -e 's/YY/FF/g' y.tab.h > eval_tab.h
/bin/rm -f y.tab.c y.tab.h
clean:
- /bin/rm -f *.o libcfitsio.a libcfitsio${SHLIB_SUFFIX} \
smem testprog y.output
distclean: clean
- /bin/rm -f Makefile config.*
# Make target which outputs the list of the .o contained in the cfitsio lib
# usefull to build a single big shared library containing Tcl/Tk and other
# extensions. used for the Tcl Plugin.
cfitsioLibObjs:
@echo ${CORE_OBJECTS}
# This target actually builds the objects needed for the lib in the above
# case
objs: ${CORE_OBJECTS}
${CFITSIO_LIB} ${CFITSIO_INCLUDE}:
@if [ ! -d $@ ]; then mkdir $@; fi
# This file is a shell script that caches the results of configure
# tests run on this system so they can be shared between configure
# scripts and configure runs. It is not useful on other systems.
# If it contains results you don't want to keep, you may remove or edit it.
#
# By default, configure uses ./config.cache as the cache file,
# creating it if it does not exist already. You can give configure
# the --cache-file=FILE option to use a different cache file; that is
# what configure does when it calls configure scripts in
# subdirectories, so they share the cache.
# Giving --cache-file=/dev/null disables caching, for debugging configure.
# config.status only pays attention to the cache file if you give it the
# --recheck option to rerun configure.
#
ac_cv_func_connect=${ac_cv_func_connect=yes}
ac_cv_func_gethostbyname=${ac_cv_func_gethostbyname=yes}
ac_cv_header_limits_h=${ac_cv_header_limits_h=yes}
ac_cv_header_math_h=${ac_cv_header_math_h=yes}
ac_cv_header_stdlib_h=${ac_cv_header_stdlib_h=yes}
ac_cv_header_string_h=${ac_cv_header_string_h=yes}
ac_cv_prog_CC=${ac_cv_prog_CC=cc}
ac_cv_prog_CPP=${ac_cv_prog_CPP='cc -E'}
ac_cv_prog_FC=${ac_cv_prog_FC=f77}
ac_cv_prog_RANLIB=${ac_cv_prog_RANLIB=ranlib}
ac_cv_prog_cc_cross=${ac_cv_prog_cc_cross=no}
ac_cv_prog_cc_g=${ac_cv_prog_cc_g=yes}
ac_cv_prog_cc_works=${ac_cv_prog_cc_works=yes}
ac_cv_prog_gcc=${ac_cv_prog_gcc=yes}
ac_cv_prog_uname_found=${ac_cv_prog_uname_found=1}
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
configure:565: checking for uname
configure:608: checking for cc
configure:641: checking for gcc
configure:754: checking whether the C compiler (cc ) works
configure:770: cc -o conftest conftest.c 1>&5
configure:796: checking whether the C compiler (cc ) is a cross-compiler
configure:801: checking whether we are using GNU C
configure:829: checking whether cc accepts -g
configure:866: checking for f77
configure:925: checking for ranlib
configure:954: checking how to run the C preprocessor
configure:1037: checking for stdlib.h
configure:1037: checking for string.h
configure:1037: checking for math.h
configure:1037: checking for limits.h
configure:1082: cc -c -g -O2 conftest.c 1>&5
configure:1265: checking whether ftruncate works
configure:1277: cc -o conftest -O -O2 -Dg77Fortran -fPIC conftest.c 1>&5
configure:1299: checking whether long long is defined
configure:1311: cc -c -O -O2 -Dg77Fortran -fPIC conftest.c 1>&5
configure:1341: checking whether system V style IPC services are supported
configure:1358: cc -o conftest -O -O2 -Dg77Fortran -fPIC conftest.c 1>&5
configure:1383: checking do we have flock_t defined in sys/fcntl.h
configure:1395: cc -c -O -O2 -Dg77Fortran -fPIC conftest.c 1>&5
configure: In function 'main':
configure:1390: error: 'flock_t' undeclared (first use in this function)
configure:1390: error: (Each undeclared identifier is reported only once
configure:1390: error: for each function it appears in.)
configure:1390: error: syntax error before 'filler'
configure: failed program was:
#line 1385 "configure"
#include "confdefs.h"
#include <sys/fcntl.h>
int main() {
flock_t filler;
; return 0; }
configure:1414: checking do we have flock_t defined in sys/flock.h
configure:1426: cc -c -O -O2 -Dg77Fortran -fPIC conftest.c 1>&5
configure:1417:23: error: sys/flock.h: No such file or directory
configure: In function 'main':
configure:1421: error: 'flock_t' undeclared (first use in this function)
configure:1421: error: (Each undeclared identifier is reported only once
configure:1421: error: for each function it appears in.)
configure:1421: error: syntax error before 'filler'
configure: failed program was:
#line 1416 "configure"
#include "confdefs.h"
#include <sys/flock.h>
int main() {
flock_t filler;
; return 0; }
configure:1450: checking do we have union semun defined
configure:1464: cc -c -O -O2 -Dg77Fortran -fPIC conftest.c 1>&5
configure: In function 'main':
configure:1459: error: storage size of 'filler' isn't known
configure: failed program was:
#line 1452 "configure"
#include "confdefs.h"
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/sem.h>
int main() {
union semun filler;
; return 0; }
configure:1503: checking for connect
configure:1644: checking for gethostbyname
#! /bin/sh
# Generated automatically by configure.
# Run this file to recreate the current configuration.
# This directory was configured as follows,
# on host pc284:
#
# ./configure
#
# Compiler output produced by configure, useful for debugging
# configure, is in ./config.log if it exists.
ac_cs_usage="Usage: ./config.status [--recheck] [--version] [--help]"
for ac_option
do
case "$ac_option" in
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
echo "running ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion"
exec ${CONFIG_SHELL-/bin/sh} ./configure --no-create --no-recursion ;;
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
echo "./config.status generated by autoconf version 2.13"
exit 0 ;;
-help | --help | --hel | --he | --h)
echo "$ac_cs_usage"; exit 0 ;;
*) echo "$ac_cs_usage"; exit 1 ;;
esac
done
ac_given_srcdir=.
trap 'rm -fr Makefile conftest*; exit 1' 1 2 15
# Protect against being on the right side of a sed subst in config.status.
sed 's/%@/@@/; s/@%/@@/; s/%g$/@g/; /@g$/s/[\\&%]/\\&/g;
s/@@/%@/; s/@@/@%/; s/@g$/%g/' > conftest.subs <<\CEOF
/^[ ]*VPATH[ ]*=[^:]*$/d
s%@SHELL@%/bin/sh%g
s%@CFLAGS@%-O -O2 -Dg77Fortran -fPIC%g
s%@CPPFLAGS@%%g
s%@CXXFLAGS@%%g
s%@FFLAGS@%%g
s%@DEFS@% -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MATH_H=1 -DHAVE_LIMITS_H=1 -DHAVE_FTRUNCATE=1 -DHAVE_LONGLONG=1 -DHAVE_SHMEM_SERVICES=1 -DHAVE_NET_SERVICES=1 %g
s%@LDFLAGS@%%g
s%@LIBS@%%g
s%@exec_prefix@%${prefix}%g
s%@prefix@%/home/tig/VODIA/package/getvar.wcs/cfitsio%g
s%@program_transform_name@%s,x,x,%g
s%@bindir@%${exec_prefix}/bin%g
s%@sbindir@%${exec_prefix}/sbin%g
s%@libexecdir@%${exec_prefix}/libexec%g
s%@datadir@%${prefix}/share%g
s%@sysconfdir@%${prefix}/etc%g
s%@sharedstatedir@%${prefix}/com%g
s%@localstatedir@%${prefix}/var%g
s%@libdir@%${exec_prefix}/lib%g
s%@includedir@%${prefix}/include%g
s%@oldincludedir@%/usr/include%g
s%@infodir@%${prefix}/info%g
s%@mandir@%${prefix}/man%g
s%@CFITSIO_PREFIX@%/home/tig/VODIA/package/getvar.wcs/cfitsio%g
s%@uname_found@%1%g
s%@CC@%cc%g
s%@FC@%f77%g
s%@RANLIB@%ranlib%g
s%@CPP@%cc -E%g
s%@GCCVERSION@%%g
s%@ARCH@%linux%g
s%@LIBPRE@%%g
s%@SHLIB_LD@%cc -shared%g
s%@SHLIB_SUFFIX@%.so%g
s%@F77_WRAPPERS@%${FITSIO_SRC}%g
s%@my_shmem@%${SOURCES_SHMEM}%g
CEOF
# Split the substitutions into bite-sized pieces for seds with
# small command number limits, like on Digital OSF/1 and HP-UX.
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
ac_file=1 # Number of current file.
ac_beg=1 # First line for current file.
ac_end=$ac_max_sed_cmds # Line after last line for current file.
ac_more_lines=:
ac_sed_cmds=""
while $ac_more_lines; do
if test $ac_beg -gt 1; then
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
else
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
fi
if test ! -s conftest.s$ac_file; then
ac_more_lines=false
rm -f conftest.s$ac_file
else
if test -z "$ac_sed_cmds"; then
ac_sed_cmds="sed -f conftest.s$ac_file"
else
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
fi
ac_file=`expr $ac_file + 1`
ac_beg=$ac_end
ac_end=`expr $ac_end + $ac_max_sed_cmds`
fi
done
if test -z "$ac_sed_cmds"; then
ac_sed_cmds=cat
fi
CONFIG_FILES=${CONFIG_FILES-"Makefile"}
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
case "$ac_file" in
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
*) ac_file_in="${ac_file}.in" ;;
esac
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
# Remove last slash and all that follows it. Not all systems have dirname.
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
# The file is in a subdirectory.
test ! -d "$ac_dir" && mkdir "$ac_dir"
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
# A "../" for each directory in $ac_dir_suffix.
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
else
ac_dir_suffix= ac_dots=
fi
case "$ac_given_srcdir" in
.) srcdir=.
if test -z "$ac_dots"; then top_srcdir=.
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
*) # Relative path.
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
top_srcdir="$ac_dots$ac_given_srcdir" ;;
esac
echo creating "$ac_file"
rm -f "$ac_file"
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
case "$ac_file" in
*Makefile*) ac_comsub="1i\\
# $configure_input" ;;
*) ac_comsub= ;;
esac
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
sed -e "$ac_comsub
s%@configure_input@%$configure_input%g
s%@srcdir@%$srcdir%g
s%@top_srcdir@%$top_srcdir%g
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
fi; done
rm -f conftest.s*
exit 0
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment