Changeset 3115 for trunk/psLib/src
- Timestamp:
- Feb 2, 2005, 2:54:13 PM (21 years ago)
- Location:
- trunk/psLib/src
- Files:
-
- 14 added
- 64 edited
-
Doxyfile (modified) (1 diff)
-
Makefile (modified) (1 diff)
-
Makefile.Globals (modified) (4 diffs)
-
Makefile.am (added)
-
astronomy/Makefile (modified) (1 diff)
-
collections/Makefile (modified) (1 diff)
-
collections/Makefile.am (added)
-
collections/psArray.c (modified) (4 diffs)
-
collections/psArray.h (modified) (4 diffs)
-
collections/psBitSet.c (modified) (7 diffs)
-
collections/psBitSet.h (modified) (8 diffs)
-
collections/psVector.c (modified) (6 diffs)
-
collections/psVector.h (modified) (5 diffs)
-
config.h.in (added)
-
dataIO/Makefile (modified) (1 diff)
-
dataIO/Makefile.am (added)
-
dataIO/dataIO.i (added)
-
dataIO/psFileUtilsErrors.h (modified) (2 diffs)
-
dataIO/psLookupTable.c (modified) (2 diffs)
-
dataManip/Makefile (modified) (1 diff)
-
dataManip/Makefile.am (added)
-
dataManip/psDataManipErrors.h (modified) (2 diffs)
-
dataManip/psFunctions.c (modified) (9 diffs)
-
dataManip/psFunctions.h (modified) (2 diffs)
-
dataManip/psMinimize.c (modified) (7 diffs)
-
dataManip/psMinimize.h (modified) (2 diffs)
-
dataManip/psStats.c (modified) (17 diffs)
-
dataManip/psStats.h (modified) (3 diffs)
-
fileUtils/Makefile (modified) (1 diff)
-
fileUtils/Makefile.am (added)
-
fileUtils/fileUtils.i (added)
-
fileUtils/psFileUtilsErrors.h (modified) (2 diffs)
-
fileUtils/psLookupTable.c (modified) (2 diffs)
-
image/Makefile (modified) (1 diff)
-
image/Makefile.am (added)
-
image/image.i (added)
-
image/psImage.c (modified) (7 diffs)
-
image/psImage.h (modified) (4 diffs)
-
image/psImageErrors.h (modified) (2 diffs)
-
image/psImageExtraction.h (modified) (4 diffs)
-
image/psImageManip.h (modified) (2 diffs)
-
image/psImageStats.c (modified) (2 diffs)
-
imageops/psImageStats.c (modified) (2 diffs)
-
math/psMinimize.c (modified) (7 diffs)
-
math/psMinimize.h (modified) (2 diffs)
-
math/psPolynomial.c (modified) (9 diffs)
-
math/psPolynomial.h (modified) (2 diffs)
-
math/psSpline.c (modified) (9 diffs)
-
math/psSpline.h (modified) (2 diffs)
-
math/psStats.c (modified) (17 diffs)
-
math/psStats.h (modified) (3 diffs)
-
mathtypes/psImage.c (modified) (7 diffs)
-
mathtypes/psImage.h (modified) (4 diffs)
-
mathtypes/psVector.c (modified) (6 diffs)
-
mathtypes/psVector.h (modified) (5 diffs)
-
parseErrorCodes.pl (modified) (1 diff)
-
psTest.c (added)
-
psTest.h (added)
-
pslib.h (modified) (3 diffs)
-
sys/psConfigure.c (modified) (2 diffs)
-
sys/psError.h (modified) (3 diffs)
-
sys/psLogMsg.h (modified) (3 diffs)
-
sys/psTrace.c (modified) (3 diffs)
-
sys/psType.h (modified) (2 diffs)
-
sysUtils/Makefile (modified) (1 diff)
-
sysUtils/Makefile.am (added)
-
sysUtils/psConfigure.c (modified) (2 diffs)
-
sysUtils/psError.h (modified) (3 diffs)
-
sysUtils/psLogMsg.h (modified) (3 diffs)
-
sysUtils/psSysUtilsErrors.h (modified) (2 diffs)
-
sysUtils/psTrace.c (modified) (3 diffs)
-
sysUtils/psType.h (modified) (2 diffs)
-
sysUtils/sysUtils.i (added)
-
types/psArray.c (modified) (4 diffs)
-
types/psArray.h (modified) (4 diffs)
-
types/psBitSet.c (modified) (7 diffs)
-
types/psBitSet.h (modified) (8 diffs)
-
types/psLookupTable.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/Doxyfile
r3041 r3115 366 366 sysUtils \ 367 367 image \ 368 fileUtils \ 368 369 dataManip \ 369 370 collections \ -
trunk/psLib/src/Makefile
r3054 r3115 1 ############################################################################### 2 ## 3 ## Makefile: psLib 4 ## 5 ## $Revision: 1.20 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2005-01-19 01:15:21 $ 7 ## 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii 9 ## 10 ############################################################################### 11 12 # Define variable prefix to the top level project - psLib 13 # This is necessary for definition in Makefile.Globals 14 15 ifndef prefix 16 export prefix=$(shell cd ..;pwd) 17 endif 18 19 # Include the make global definitions for the project 20 21 include Makefile.Globals 22 23 # Detect and save the CVS for this makefile 24 25 NAME:= "$Name: not supported by cvs2svn $ " 26 ifeq ($(NAME), "ame: $ ") 27 VERSION:= ": Project Version: Unknown " 28 else 29 VERSION:= ": Project Version: $(NAME) " 30 endif 31 32 # Define the target to build 33 34 ALLTARGETS = sysUtils collections image dataManip astronomy fileUtils 35 36 TARGET_DYNAMIC = libpslib.$(DLL) 37 TARGET_STATIC = libpslib.a 38 39 # Define the installation targets 40 41 INSTALLTARGETS = installSysUtils installCollections installImage installDataManip installAstronomy installFileUtils 42 43 # Define the clean up targets 44 45 CLEANTARGETS = cleanSysUtils cleanCollections cleanImage cleanDataManip cleanAstronomy cleanFileUtils 46 47 CLEANDEPTARGETS = cleandepSysUtils cleandepCollections cleandepImage cleandepDataManip cleandepAstronomy cleandepFileUtils 48 49 # Define the distribution clean up targets 50 51 DISTCLEANTARGETS = distcleanSysUtils distcleanCollections distcleanImage distcleanDataManip distcleanAstronomy distcleanFileUtils 52 53 # Define PHONY target "all" which will make all necessary items 54 55 all: $(ALLTARGETS) 56 sed 's|PREFIX|$(prefix)|' $(TIME_CONFIG_FILE).template > $(TIME_CONFIG_FILE) 57 $(BUILD_DYNAMIC1) $(TARGET_STATIC) $(BUILD_DYNAMIC2) $(TARGET_DYNAMIC) 58 @echo "" 59 @echo " ---- All targets built successfully $(VERSION) ----" 60 @echo "" 61 62 # Define PHONY target "sysUtils" which will make the system utilites 63 # portion of the psLib 64 65 sysUtils: 66 $(MAKE) --directory=sysUtils all 67 68 image: 69 $(MAKE) --directory=image all 70 71 collections: 72 $(MAKE) --directory=collections all 73 74 dataManip: 75 $(MAKE) --directory=dataManip all 76 77 astronomy: 78 $(MAKE) --directory=astronomy all 79 80 fileUtils: 81 $(MAKE) --directory=fileUtils all 82 83 ## ADD ADDITIONAL PORTIONS OF PSLIB HERE 84 85 # Define PHONY target "installSysUtils" which will install all the necessary 86 # files for system utilities portion of psLib 87 88 installSysUtils: 89 $(MAKE) --directory=sysUtils install 90 91 installImage: 92 $(MAKE) --directory=image install 93 94 installCollections: 95 $(MAKE) --directory=collections install 96 97 installDataManip: 98 $(MAKE) --directory=dataManip install 99 100 installAstronomy: 101 $(MAKE) --directory=astronomy install 102 103 installFileUtils: 104 $(MAKE) --directory=fileUtils install 105 106 # Define PHONY target "cleanSysUtils" which will clean up the development 107 # area for system utilites 108 109 cleanSysUtils: 110 $(MAKE) --directory=sysUtils clean 111 112 cleanImage: 113 $(MAKE) --directory=image clean 114 115 cleanCollections: 116 $(MAKE) --directory=collections clean 117 118 cleanDataManip: 119 $(MAKE) --directory=dataManip clean 120 121 cleanAstronomy: 122 $(MAKE) --directory=astronomy clean 123 124 cleanFileUtils: 125 $(MAKE) --directory=fileUtils clean 126 127 #Define PHONY target "cleandep*" which will clean up the dependency files 128 129 cleandepSysUtils: 130 $(MAKE) --directory=sysUtils cleandep 131 132 cleandepImage: 133 $(MAKE) --directory=image cleandep 134 135 cleandepCollections: 136 $(MAKE) --directory=collections cleandep 137 138 cleandepDataManip: 139 $(MAKE) --directory=dataManip cleandep 140 141 cleandepAstronomy: 142 $(MAKE) --directory=astronomy cleandep 143 144 cleandepFileUtils: 145 $(MAKE) --directory=fileUtils cleandep 146 147 # Define PHONY target "distcleanSysUtils which will clean up the distribution 148 # files related to system utilities 149 150 distcleanSysUtils: 151 $(MAKE) --directory=sysUtils distclean 152 153 distcleanImage: 154 $(MAKE) --directory=image distclean 155 156 distcleanCollections: 157 $(MAKE) --directory=collections distclean 158 159 distcleanDataManip: 160 $(MAKE) --directory=dataManip distclean 161 162 distcleanAstronomy: 163 $(MAKE) --directory=astronomy distclean 164 165 distcleanFileUtils: 166 $(MAKE) --directory=fileUtils distclean 167 168 169 # Rule to make include directory if needed 170 171 $(includedir): 172 mkdir -p $(includedir) 173 174 # Rule to make bin directory if needed 175 176 $(bindir): 177 mkdir -p $(bindir) 178 179 # Rule to make lib directory if needed 180 181 $(libexecdir): 182 mkdir -p $(libexecdir) 183 184 # Rule to make man directory if needed 185 186 $(mandir): 187 mkdir -p $(mandir) 188 189 $(mandir)/man3: $(mandir) 190 mkdir -p $(mandir)/man3 191 192 # Rule to make the installation directories if needed 193 194 installdirs: $(includedir) $(bindir) $(libexecdir) $(mandir) 195 196 # Define PHONY target "install" to make the necessary directories for 197 # the installation 198 199 install: all installdirs $(INSTALLTARGETS) 200 install *.h $(includedir) 201 install $(TARGET_STATIC) $(libexecdir) 202 install $(TARGET_DYNAMIC) $(libexecdir) 203 install $(TARGET_DYNAMIC) $(libexecdir) 204 205 # Define PHONY target "clean" to clean up the development areas for 206 # psLib 207 208 clean: $(CLEANTARGETS) 209 $(RM) -f $(TARGET_STATIC) 210 $(RM) -f $(TARGET_DYNAMIC) 211 212 cleandep: $(CLEANDEPTARGETS) 213 214 # Define PHONY target "distclean" to clean up the distribution area for 215 # psLib 216 217 distclean: $(DISTCLEANTARGETS) 218 $(RM) -f $(libexecdir)/$(TARGET_STATIC) 219 $(RM) -f $(libexecdir)/$(TARGET_DYNAMIC) 220 $(RM) -f $(TARGET_DYNAMIC) 221 $(RM) -f $(TARGET_STATIC) 222 223 # Define PHONY target "docs" to generate the Doxygen files for psLib 224 225 docs: 226 $(DOCS) 227 228 tags: 229 etags `find . \( -name \*.[chy] \) -print` 230 231 # List of PHONY targets with make file 232 .PHONY: sysUtils collections image dataManip astronomy fileUtils 1 # Makefile.in generated by automake 1.9.1 from Makefile.am. 2 # src/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 SOURCES = $(libpslib_la_SOURCES) 18 19 srcdir = . 20 top_srcdir = .. 21 22 pkgdatadir = $(datadir)/pslib 23 pkglibdir = $(libdir)/pslib 24 pkgincludedir = $(includedir)/pslib 25 top_builddir = .. 26 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 27 INSTALL = /usr/bin/install -c 28 install_sh_DATA = $(install_sh) -c -m 644 29 install_sh_PROGRAM = $(install_sh) -c 30 install_sh_SCRIPT = $(install_sh) -c 31 INSTALL_HEADER = $(INSTALL_DATA) 32 transform = $(program_transform_name) 33 NORMAL_INSTALL = : 34 PRE_INSTALL = : 35 POST_INSTALL = : 36 NORMAL_UNINSTALL = : 37 PRE_UNINSTALL = : 38 POST_UNINSTALL = : 39 build_triplet = x86_64-unknown-linux-gnu 40 host_triplet = x86_64-unknown-linux-gnu 41 subdir = src 42 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ 43 $(srcdir)/config.h.in 44 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 45 am__aclocal_m4_deps = $(top_srcdir)/configure.in 46 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 47 $(ACLOCAL_M4) 48 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 49 CONFIG_HEADER = config.h 50 CONFIG_CLEAN_FILES = 51 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 52 am__vpath_adj = case $$p in \ 53 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 54 *) f=$$p;; \ 55 esac; 56 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 57 am__installdirs = "$(DESTDIR)$(libdir)" 58 libLTLIBRARIES_INSTALL = $(INSTALL) 59 LTLIBRARIES = $(lib_LTLIBRARIES) 60 libpslib_la_DEPENDENCIES = \ 61 $(top_builddir)/src/astronomy/libpslibastronomy.la \ 62 $(top_builddir)/src/collections/libpslibcollections.la \ 63 $(top_builddir)/src/dataManip/libpslibdataManip.la \ 64 $(top_builddir)/src/fileUtils/libpslibfileUtils.la \ 65 $(top_builddir)/src/image/libpslibimage.la \ 66 $(top_builddir)/src/sysUtils/libpslibsysUtils.la 67 am_libpslib_la_OBJECTS = psTest.lo 68 libpslib_la_OBJECTS = $(am_libpslib_la_OBJECTS) 69 DEFAULT_INCLUDES = -I. -I$(srcdir) -I. 70 depcomp = $(SHELL) $(top_srcdir)/depcomp 71 am__depfiles_maybe = depfiles 72 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 73 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 74 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ 75 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 76 $(AM_CFLAGS) $(CFLAGS) 77 CCLD = $(CC) 78 LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 79 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 80 SOURCES = $(libpslib_la_SOURCES) 81 DIST_SOURCES = $(libpslib_la_SOURCES) 82 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ 83 html-recursive info-recursive install-data-recursive \ 84 install-exec-recursive install-info-recursive \ 85 install-recursive installcheck-recursive installdirs-recursive \ 86 pdf-recursive ps-recursive uninstall-info-recursive \ 87 uninstall-recursive 88 ETAGS = etags 89 CTAGS = ctags 90 DIST_SUBDIRS = $(SUBDIRS) 91 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 92 ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9 93 AMDEP_FALSE = # 94 AMDEP_TRUE = 95 AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar 96 AR = ar 97 AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf 98 AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader 99 AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9 100 AWK = gawk 101 CC = gcc 102 CCDEPMODE = depmode=gcc3 103 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/usr/include -I/usr/include/libxml2 104 CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config 105 CPP = gcc -E 106 CPPFLAGS = 107 CXX = g++ 108 CXXCPP = g++ -E 109 CXXDEPMODE = depmode=gcc3 110 CXXFLAGS = -g -O2 111 CYGPATH_W = echo 112 DEFS = -DHAVE_CONFIG_H 113 DEPDIR = .deps 114 ECHO = echo 115 ECHO_C = 116 ECHO_N = -n 117 ECHO_T = 118 EGREP = grep -E 119 EXEEXT = 120 F77 = g77 121 FFLAGS = -fno-second-underscore -O -fno-f2c 122 GSL_CONFIG = /usr/bin/gsl-config 123 INSTALL_DATA = ${INSTALL} -m 644 124 INSTALL_PROGRAM = ${INSTALL} 125 INSTALL_SCRIPT = ${INSTALL} 126 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 127 LDFLAGS = 128 LIBOBJS = 129 LIBS = 130 LIBTOOL = $(SHELL) $(top_builddir)/libtool 131 LN_S = ln -s 132 LTLIBOBJS = 133 MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo 134 OBJEXT = o 135 PACKAGE = pslib 136 PACKAGE_BUGREPORT = 137 PACKAGE_NAME = 138 PACKAGE_STRING = 139 PACKAGE_TARNAME = 140 PACKAGE_VERSION = 141 PATH_SEPARATOR = : 142 PERL = /usr/bin/perl 143 PSLIB_CFLAGS = -I${prefix}/include 144 PSLIB_LIBS = -L${exec_prefix}/lib -lpslib -lcfitsio -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm 145 RANLIB = ranlib 146 SET_MAKE = 147 SHELL = /bin/sh 148 STRIP = strip 149 SWIG = /usr/bin/swig 150 VERSION = 1.5 151 XML_CONFIG = /usr/bin/xml2-config 152 ac_ct_AR = ar 153 ac_ct_CC = gcc 154 ac_ct_CXX = g++ 155 ac_ct_F77 = g77 156 ac_ct_RANLIB = ranlib 157 ac_ct_STRIP = strip 158 am__fastdepCC_FALSE = # 159 am__fastdepCC_TRUE = 160 am__fastdepCXX_FALSE = # 161 am__fastdepCXX_TRUE = 162 am__include = include 163 am__leading_dot = . 164 am__quote = 165 am__tar = ${AMTAR} chof - "$$tardir" 166 am__untar = ${AMTAR} xf - 167 bindir = ${exec_prefix}/bin 168 build = x86_64-unknown-linux-gnu 169 build_alias = 170 build_cpu = x86_64 171 build_os = linux-gnu 172 build_vendor = unknown 173 datadir = ${prefix}/share 174 exec_prefix = ${prefix} 175 host = x86_64-unknown-linux-gnu 176 host_alias = 177 host_cpu = x86_64 178 host_os = linux-gnu 179 host_vendor = unknown 180 includedir = ${prefix}/include 181 infodir = ${prefix}/info 182 install_sh = /home/desonia/panstarrs/psLib/install-sh 183 libdir = ${exec_prefix}/lib 184 libexecdir = ${exec_prefix}/libexec 185 localstatedir = ${prefix}/var 186 mandir = ${prefix}/man 187 mkdir_p = mkdir -p -- 188 oldincludedir = /usr/include 189 prefix = /home/desonia/panstarrs/psLib 190 program_transform_name = s,x,x, 191 sbindir = ${exec_prefix}/sbin 192 sharedstatedir = ${prefix}/com 193 sysconfdir = ${prefix}/etc 194 target_alias = 195 196 # not a GNU package. You can remove this line, if 197 # have all needed files, that a GNU package needs 198 AUTOMAKE_OPTIONS = foreign 1.4 199 SUBDIRS = astronomy collections dataManip fileUtils image sysUtils swig 200 INCLUDES = \ 201 -I$(top_srcdir)/src/astronomy \ 202 -I$(top_srcdir)/src/collections \ 203 -I$(top_srcdir)/src/dataManip \ 204 -I$(top_srcdir)/src/fileUtils \ 205 -I$(top_srcdir)/src/image \ 206 -I$(top_srcdir)/src/sysUtils \ 207 $(all_includes) 208 209 lib_LTLIBRARIES = libpslib.la 210 libpslib_la_LIBADD = \ 211 $(top_builddir)/src/astronomy/libpslibastronomy.la \ 212 $(top_builddir)/src/collections/libpslibcollections.la \ 213 $(top_builddir)/src/dataManip/libpslibdataManip.la \ 214 $(top_builddir)/src/fileUtils/libpslibfileUtils.la \ 215 $(top_builddir)/src/image/libpslibimage.la \ 216 $(top_builddir)/src/sysUtils/libpslibsysUtils.la 217 218 libpslib_la_SOURCES = psTest.c 219 EXTRA_DIST = parseErrorCodes.pl mainpage.dox Doxyfile psErrorCodes.dat psTest.h 220 all: config.h 221 $(MAKE) $(AM_MAKEFLAGS) all-recursive 222 223 .SUFFIXES: 224 .SUFFIXES: .c .lo .o .obj 225 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 226 @for dep in $?; do \ 227 case '$(am__configure_deps)' in \ 228 *$$dep*) \ 229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 230 && exit 0; \ 231 exit 1;; \ 232 esac; \ 233 done; \ 234 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign src/Makefile'; \ 235 cd $(top_srcdir) && \ 236 $(AUTOMAKE) --foreign src/Makefile 237 .PRECIOUS: Makefile 238 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 239 @case '$?' in \ 240 *config.status*) \ 241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 242 *) \ 243 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 244 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 245 esac; 246 247 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 249 250 $(top_srcdir)/configure: $(am__configure_deps) 251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 252 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 254 255 config.h: stamp-h1 256 @if test ! -f $@; then \ 257 rm -f stamp-h1; \ 258 $(MAKE) stamp-h1; \ 259 else :; fi 260 261 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status 262 @rm -f stamp-h1 263 cd $(top_builddir) && $(SHELL) ./config.status src/config.h 264 $(srcdir)/config.h.in: $(am__configure_deps) 265 cd $(top_srcdir) && $(AUTOHEADER) 266 rm -f stamp-h1 267 touch $@ 268 269 distclean-hdr: 270 -rm -f config.h stamp-h1 271 install-libLTLIBRARIES: $(lib_LTLIBRARIES) 272 @$(NORMAL_INSTALL) 273 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)" 274 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ 275 if test -f $$p; then \ 276 f=$(am__strip_dir) \ 277 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \ 278 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \ 279 else :; fi; \ 280 done 281 282 uninstall-libLTLIBRARIES: 283 @$(NORMAL_UNINSTALL) 284 @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \ 285 p=$(am__strip_dir) \ 286 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \ 287 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \ 288 done 289 290 clean-libLTLIBRARIES: 291 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) 292 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ 293 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 294 test "$$dir" != "$$p" || dir=.; \ 295 echo "rm -f \"$${dir}/so_locations\""; \ 296 rm -f "$${dir}/so_locations"; \ 297 done 298 libpslib.la: $(libpslib_la_OBJECTS) $(libpslib_la_DEPENDENCIES) 299 $(LINK) -rpath $(libdir) $(libpslib_la_LDFLAGS) $(libpslib_la_OBJECTS) $(libpslib_la_LIBADD) $(LIBS) 300 301 mostlyclean-compile: 302 -rm -f *.$(OBJEXT) 303 304 distclean-compile: 305 -rm -f *.tab.c 306 307 include ./$(DEPDIR)/psTest.Plo 308 309 .c.o: 310 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 311 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 312 # source='$<' object='$@' libtool=no \ 313 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 314 # $(COMPILE) -c $< 315 316 .c.obj: 317 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 318 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 319 # source='$<' object='$@' libtool=no \ 320 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 321 # $(COMPILE) -c `$(CYGPATH_W) '$<'` 322 323 .c.lo: 324 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 325 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 326 # source='$<' object='$@' libtool=yes \ 327 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 328 # $(LTCOMPILE) -c -o $@ $< 329 330 mostlyclean-libtool: 331 -rm -f *.lo 332 333 clean-libtool: 334 -rm -rf .libs _libs 335 336 distclean-libtool: 337 -rm -f libtool 338 uninstall-info-am: 339 340 # This directory's subdirectories are mostly independent; you can cd 341 # into them and run `make' without going through this Makefile. 342 # To change the values of `make' variables: instead of editing Makefiles, 343 # (1) if the variable is set in `config.status', edit `config.status' 344 # (which will cause the Makefiles to be regenerated when you run `make'); 345 # (2) otherwise, pass the desired values on the `make' command line. 346 $(RECURSIVE_TARGETS): 347 @set fnord $$MAKEFLAGS; amf=$$2; \ 348 dot_seen=no; \ 349 target=`echo $@ | sed s/-recursive//`; \ 350 list='$(SUBDIRS)'; for subdir in $$list; do \ 351 echo "Making $$target in $$subdir"; \ 352 if test "$$subdir" = "."; then \ 353 dot_seen=yes; \ 354 local_target="$$target-am"; \ 355 else \ 356 local_target="$$target"; \ 357 fi; \ 358 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 359 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 360 done; \ 361 if test "$$dot_seen" = "no"; then \ 362 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 363 fi; test -z "$$fail" 364 365 mostlyclean-recursive clean-recursive distclean-recursive \ 366 maintainer-clean-recursive: 367 @set fnord $$MAKEFLAGS; amf=$$2; \ 368 dot_seen=no; \ 369 case "$@" in \ 370 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 371 *) list='$(SUBDIRS)' ;; \ 372 esac; \ 373 rev=''; for subdir in $$list; do \ 374 if test "$$subdir" = "."; then :; else \ 375 rev="$$subdir $$rev"; \ 376 fi; \ 377 done; \ 378 rev="$$rev ."; \ 379 target=`echo $@ | sed s/-recursive//`; \ 380 for subdir in $$rev; do \ 381 echo "Making $$target in $$subdir"; \ 382 if test "$$subdir" = "."; then \ 383 local_target="$$target-am"; \ 384 else \ 385 local_target="$$target"; \ 386 fi; \ 387 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 388 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 389 done && test -z "$$fail" 390 tags-recursive: 391 list='$(SUBDIRS)'; for subdir in $$list; do \ 392 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 393 done 394 ctags-recursive: 395 list='$(SUBDIRS)'; for subdir in $$list; do \ 396 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ 397 done 398 399 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 400 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 401 unique=`for i in $$list; do \ 402 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 403 done | \ 404 $(AWK) ' { files[$$0] = 1; } \ 405 END { for (i in files) print i; }'`; \ 406 mkid -fID $$unique 407 tags: TAGS 408 409 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 410 $(TAGS_FILES) $(LISP) 411 tags=; \ 412 here=`pwd`; \ 413 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ 414 include_option=--etags-include; \ 415 empty_fix=.; \ 416 else \ 417 include_option=--include; \ 418 empty_fix=; \ 419 fi; \ 420 list='$(SUBDIRS)'; for subdir in $$list; do \ 421 if test "$$subdir" = .; then :; else \ 422 test ! -f $$subdir/TAGS || \ 423 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ 424 fi; \ 425 done; \ 426 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 427 unique=`for i in $$list; do \ 428 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 429 done | \ 430 $(AWK) ' { files[$$0] = 1; } \ 431 END { for (i in files) print i; }'`; \ 432 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 433 test -n "$$unique" || unique=$$empty_fix; \ 434 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 435 $$tags $$unique; \ 436 fi 437 ctags: CTAGS 438 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 439 $(TAGS_FILES) $(LISP) 440 tags=; \ 441 here=`pwd`; \ 442 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ 443 unique=`for i in $$list; do \ 444 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 445 done | \ 446 $(AWK) ' { files[$$0] = 1; } \ 447 END { for (i in files) print i; }'`; \ 448 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 449 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 450 $$tags $$unique 451 452 GTAGS: 453 here=`$(am__cd) $(top_builddir) && pwd` \ 454 && cd $(top_srcdir) \ 455 && gtags -i $(GTAGS_ARGS) $$here 456 457 distclean-tags: 458 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 459 460 distdir: $(DISTFILES) 461 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 462 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 463 list='$(DISTFILES)'; for file in $$list; do \ 464 case $$file in \ 465 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 466 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 467 esac; \ 468 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 469 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 470 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 471 dir="/$$dir"; \ 472 $(mkdir_p) "$(distdir)$$dir"; \ 473 else \ 474 dir=''; \ 475 fi; \ 476 if test -d $$d/$$file; then \ 477 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 478 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 479 fi; \ 480 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 481 else \ 482 test -f $(distdir)/$$file \ 483 || cp -p $$d/$$file $(distdir)/$$file \ 484 || exit 1; \ 485 fi; \ 486 done 487 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ 488 if test "$$subdir" = .; then :; else \ 489 test -d "$(distdir)/$$subdir" \ 490 || $(mkdir_p) "$(distdir)/$$subdir" \ 491 || exit 1; \ 492 distdir=`$(am__cd) $(distdir) && pwd`; \ 493 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ 494 (cd $$subdir && \ 495 $(MAKE) $(AM_MAKEFLAGS) \ 496 top_distdir="$$top_distdir" \ 497 distdir="$$distdir/$$subdir" \ 498 distdir) \ 499 || exit 1; \ 500 fi; \ 501 done 502 check-am: all-am 503 check: check-recursive 504 all-am: Makefile $(LTLIBRARIES) config.h 505 installdirs: installdirs-recursive 506 installdirs-am: 507 for dir in "$(DESTDIR)$(libdir)"; do \ 508 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 509 done 510 install: install-recursive 511 install-exec: install-exec-recursive 512 install-data: install-data-recursive 513 uninstall: uninstall-recursive 514 515 install-am: all-am 516 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 517 518 installcheck: installcheck-recursive 519 install-strip: 520 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 521 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 522 `test -z '$(STRIP)' || \ 523 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 524 mostlyclean-generic: 525 526 clean-generic: 527 528 distclean-generic: 529 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 530 531 maintainer-clean-generic: 532 @echo "This command is intended for maintainers to use" 533 @echo "it deletes files that may require special tools to rebuild." 534 clean: clean-recursive 535 536 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \ 537 mostlyclean-am 538 539 distclean: distclean-recursive 540 -rm -rf ./$(DEPDIR) 541 -rm -f Makefile 542 distclean-am: clean-am distclean-compile distclean-generic \ 543 distclean-hdr distclean-libtool distclean-tags 544 545 dvi: dvi-recursive 546 547 dvi-am: 548 549 html: html-recursive 550 551 info: info-recursive 552 553 info-am: 554 555 install-data-am: 556 557 install-exec-am: install-libLTLIBRARIES 558 559 install-info: install-info-recursive 560 561 install-man: 562 563 installcheck-am: 564 565 maintainer-clean: maintainer-clean-recursive 566 -rm -rf ./$(DEPDIR) 567 -rm -f Makefile 568 maintainer-clean-am: distclean-am maintainer-clean-generic 569 570 mostlyclean: mostlyclean-recursive 571 572 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 573 mostlyclean-libtool 574 575 pdf: pdf-recursive 576 577 pdf-am: 578 579 ps: ps-recursive 580 581 ps-am: 582 583 uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES 584 585 uninstall-info: uninstall-info-recursive 586 587 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \ 588 clean clean-generic clean-libLTLIBRARIES clean-libtool \ 589 clean-recursive ctags ctags-recursive distclean \ 590 distclean-compile distclean-generic distclean-hdr \ 591 distclean-libtool distclean-recursive distclean-tags distdir \ 592 dvi dvi-am html html-am info info-am install install-am \ 593 install-data install-data-am install-exec install-exec-am \ 594 install-info install-info-am install-libLTLIBRARIES \ 595 install-man install-strip installcheck installcheck-am \ 596 installdirs installdirs-am maintainer-clean \ 597 maintainer-clean-generic maintainer-clean-recursive \ 598 mostlyclean mostlyclean-compile mostlyclean-generic \ 599 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \ 600 tags tags-recursive uninstall uninstall-am uninstall-info-am \ 601 uninstall-libLTLIBRARIES 602 603 # Tell versions [3.59,3.63) of GNU make to not export all variables. 604 # Otherwise a system limit (for SysV at least) may be exceeded. 605 .NOEXPORT: -
trunk/psLib/src/Makefile.Globals
r3058 r3115 6 6 ## Assumptions: Variable "prefix" already defined 7 7 ## 8 ## $Revision: 1. 39$ $Name: not supported by cvs2svn $9 ## $Date: 2005-0 1-19 01:53:09$8 ## $Revision: 1.40 $ $Name: not supported by cvs2svn $ 9 ## $Date: 2005-02-03 00:54:10 $ 10 10 ## 11 11 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 50 50 51 51 ifndef PS_LIB_VERSION 52 export PS_LIB_VERSION = rel452 export PS_LIB_VERSION = post_rel4 53 53 endif 54 54 … … 61 61 endif 62 62 63 ifndef PERL_CORE 64 export PERL_CORE = `find /usr/lib -name CORE 2> /dev/null | tail -n 1` 65 endif 66 63 67 SLA_LINK := $(shell $(sladir)/bin/sla_link) 64 68 XML2_LINK := $(shell $(xml2config) --libs) … … 69 73 GCOVFLAGS := 70 74 CFLAGS := -O0 -g2 -Wall -Werror -std=c99 -D_GNU_SOURCE -pipe $(GCOVFLAGS) $(XML2_CFLAGS) 75 SWIG_CFLAGS := -std=c99 -D_GNU_SOURCE -pipe $(GCOVFLAGS) $(XML2_CFLAGS) 71 76 72 77 ifdef NO_TRACE -
trunk/psLib/src/astronomy/Makefile
r2887 r3115 1 ifndef prefix 2 export prefix=$(shell cd ../..;pwd) 3 endif 4 5 TARGET_STATIC = libpslib.a 6 include ../Makefile.Globals 7 8 CFLAGS := $(CFLAGS_RELOC) -I. -I../sysUtils -I../collections -I../dataManip \ 9 -I.. -I../image -I../fileUtils \ 10 -DTIME_CONFIG_FILE="\"$(TIME_CONFIG_FILE)\"" 11 12 SRC_OBJS = psTime.o \ 13 psMetadata.o \ 14 psMetadataIO.o \ 15 psCoord.o \ 16 psAstrometry.o 17 18 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 19 20 HEADERS = $(SRC_OBJS:.o=.h) psPhotometry.h slalib.h 21 22 all: $(TARGET_STATIC) 1 # Makefile.in generated by automake 1.9.1 from Makefile.am. 2 # src/astronomy/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 18 SOURCES = $(libpslibastronomy_la_SOURCES) 19 20 srcdir = . 21 top_srcdir = ../.. 22 23 pkgdatadir = $(datadir)/pslib 24 pkglibdir = $(libdir)/pslib 25 pkgincludedir = $(includedir)/pslib 26 top_builddir = ../.. 27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 28 INSTALL = /usr/bin/install -c 29 install_sh_DATA = $(install_sh) -c -m 644 30 install_sh_PROGRAM = $(install_sh) -c 31 install_sh_SCRIPT = $(install_sh) -c 32 INSTALL_HEADER = $(INSTALL_DATA) 33 transform = $(program_transform_name) 34 NORMAL_INSTALL = : 35 PRE_INSTALL = : 36 POST_INSTALL = : 37 NORMAL_UNINSTALL = : 38 PRE_UNINSTALL = : 39 POST_UNINSTALL = : 40 build_triplet = x86_64-unknown-linux-gnu 41 host_triplet = x86_64-unknown-linux-gnu 42 subdir = src/astronomy 43 DIST_COMMON = $(pslibinclude_HEADERS) $(srcdir)/Makefile.am \ 44 $(srcdir)/Makefile.in 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 46 am__aclocal_m4_deps = $(top_srcdir)/configure.in 47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 48 $(ACLOCAL_M4) 49 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 50 CONFIG_HEADER = $(top_builddir)/src/config.h 51 CONFIG_CLEAN_FILES = 52 LTLIBRARIES = $(noinst_LTLIBRARIES) 53 libpslibastronomy_la_LIBADD = 54 am_libpslibastronomy_la_OBJECTS = psTime.lo psMetadata.lo \ 55 psMetadataIO.lo psCoord.lo psAstrometry.lo aoppa.lo aopqk.lo \ 56 oapqk.lo airmas.lo eqeqx.lo geoc.lo refco.lo aoppat.lo \ 57 dranrm.lo dcs2c.lo refz.lo refro.lo dcc2s.lo gmst.lo atms.lo \ 58 atmt.lo nutc.lo drange.lo 59 libpslibastronomy_la_OBJECTS = $(am_libpslibastronomy_la_OBJECTS) 60 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 61 depcomp = $(SHELL) $(top_srcdir)/depcomp 62 am__depfiles_maybe = depfiles 63 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 64 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 65 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ 66 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 67 $(AM_CFLAGS) $(CFLAGS) 68 CCLD = $(CC) 69 LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 70 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 71 F77COMPILE = $(F77) $(AM_FFLAGS) $(FFLAGS) 72 LTF77COMPILE = $(LIBTOOL) --mode=compile --tag=F77 $(F77) $(AM_FFLAGS) \ 73 $(FFLAGS) 74 F77LD = $(F77) 75 F77LINK = $(LIBTOOL) --mode=link --tag=F77 $(F77LD) $(AM_FFLAGS) \ 76 $(FFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 77 SOURCES = $(libpslibastronomy_la_SOURCES) 78 DIST_SOURCES = $(libpslibastronomy_la_SOURCES) 79 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 80 am__vpath_adj = case $$p in \ 81 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 82 *) f=$$p;; \ 83 esac; 84 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 85 am__installdirs = "$(DESTDIR)$(pslibincludedir)" 86 pslibincludeHEADERS_INSTALL = $(INSTALL_HEADER) 87 HEADERS = $(pslibinclude_HEADERS) 88 ETAGS = etags 89 CTAGS = ctags 90 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 91 ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9 92 AMDEP_FALSE = # 93 AMDEP_TRUE = 94 AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar 95 AR = ar 96 AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf 97 AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader 98 AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9 99 AWK = gawk 100 CC = gcc 101 CCDEPMODE = depmode=gcc3 102 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/usr/include -I/usr/include/libxml2 103 CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config 104 CPP = gcc -E 105 CPPFLAGS = 106 CXX = g++ 107 CXXCPP = g++ -E 108 CXXDEPMODE = depmode=gcc3 109 CXXFLAGS = -g -O2 110 CYGPATH_W = echo 111 DEFS = -DHAVE_CONFIG_H 112 DEPDIR = .deps 113 ECHO = echo 114 ECHO_C = 115 ECHO_N = -n 116 ECHO_T = 117 EGREP = grep -E 118 EXEEXT = 119 F77 = g77 120 FFLAGS = -fno-second-underscore -O -fno-f2c 121 GSL_CONFIG = /usr/bin/gsl-config 122 INSTALL_DATA = ${INSTALL} -m 644 123 INSTALL_PROGRAM = ${INSTALL} 124 INSTALL_SCRIPT = ${INSTALL} 125 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 126 LDFLAGS = 127 LIBOBJS = 128 LIBS = 129 LIBTOOL = $(SHELL) $(top_builddir)/libtool 130 LN_S = ln -s 131 LTLIBOBJS = 132 MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo 133 OBJEXT = o 134 PACKAGE = pslib 135 PACKAGE_BUGREPORT = 136 PACKAGE_NAME = 137 PACKAGE_STRING = 138 PACKAGE_TARNAME = 139 PACKAGE_VERSION = 140 PATH_SEPARATOR = : 141 PERL = /usr/bin/perl 142 PSLIB_CFLAGS = -I${prefix}/include 143 PSLIB_LIBS = -L${exec_prefix}/lib -lpslib -lcfitsio -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm 144 RANLIB = ranlib 145 SET_MAKE = 146 SHELL = /bin/sh 147 STRIP = strip 148 SWIG = /usr/bin/swig 149 VERSION = 1.5 150 XML_CONFIG = /usr/bin/xml2-config 151 ac_ct_AR = ar 152 ac_ct_CC = gcc 153 ac_ct_CXX = g++ 154 ac_ct_F77 = g77 155 ac_ct_RANLIB = ranlib 156 ac_ct_STRIP = strip 157 am__fastdepCC_FALSE = # 158 am__fastdepCC_TRUE = 159 am__fastdepCXX_FALSE = # 160 am__fastdepCXX_TRUE = 161 am__include = include 162 am__leading_dot = . 163 am__quote = 164 am__tar = ${AMTAR} chof - "$$tardir" 165 am__untar = ${AMTAR} xf - 166 bindir = ${exec_prefix}/bin 167 build = x86_64-unknown-linux-gnu 168 build_alias = 169 build_cpu = x86_64 170 build_os = linux-gnu 171 build_vendor = unknown 172 datadir = ${prefix}/share 173 exec_prefix = ${prefix} 174 host = x86_64-unknown-linux-gnu 175 host_alias = 176 host_cpu = x86_64 177 host_os = linux-gnu 178 host_vendor = unknown 179 includedir = ${prefix}/include 180 infodir = ${prefix}/info 181 install_sh = /home/desonia/panstarrs/psLib/install-sh 182 libdir = ${exec_prefix}/lib 183 libexecdir = ${exec_prefix}/libexec 184 localstatedir = ${prefix}/var 185 mandir = ${prefix}/man 186 mkdir_p = mkdir -p -- 187 oldincludedir = /usr/include 188 prefix = /home/desonia/panstarrs/psLib 189 program_transform_name = s,x,x, 190 sbindir = ${exec_prefix}/sbin 191 sharedstatedir = ${prefix}/com 192 sysconfdir = ${prefix}/etc 193 target_alias = 194 195 #Makefile for astronomy functions of psLib 196 # 197 INCLUDES = \ 198 -I$(top_srcdir)/src/collections \ 199 -I$(top_srcdir)/src/dataManip \ 200 -I$(top_srcdir)/src/fileUtils \ 201 -I$(top_srcdir)/src/image \ 202 -I$(top_srcdir)/src/sysUtils \ 203 $(all_includes) 204 205 noinst_LTLIBRARIES = libpslibastronomy.la 206 libpslibastronomy_la_SOURCES = \ 207 psTime.c \ 208 psMetadata.c \ 209 psMetadataIO.c \ 210 psCoord.c \ 211 psAstrometry.c \ 212 aoppa.f aopqk.f oapqk.f airmas.f eqeqx.f geoc.f refco.f aoppat.f \ 213 dranrm.f dcs2c.f refz.f refro.f dcc2s.f gmst.f atms.f atmt.f nutc.f drange.f 214 215 BUILT_SOURCES = psAstronomyErrors.h 216 EXTRA_DIST = psAstronomyErrors.dat psAstronomyErrors.h 217 pslibincludedir = $(includedir)/pslib 218 pslibinclude_HEADERS = \ 219 psTime.h \ 220 psMetadata.h \ 221 psMetadataIO.h \ 222 psCoord.h \ 223 psAstrometry.h \ 224 psPhotometry.h \ 225 slalib.h 226 227 all: $(BUILT_SOURCES) 228 $(MAKE) $(AM_MAKEFLAGS) all-am 229 230 .SUFFIXES: 231 .SUFFIXES: .c .f .lo .o .obj 232 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 233 @for dep in $?; do \ 234 case '$(am__configure_deps)' in \ 235 *$$dep*) \ 236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 237 && exit 0; \ 238 exit 1;; \ 239 esac; \ 240 done; \ 241 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/astronomy/Makefile'; \ 242 cd $(top_srcdir) && \ 243 $(AUTOMAKE) --gnu src/astronomy/Makefile 244 .PRECIOUS: Makefile 245 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 246 @case '$?' in \ 247 *config.status*) \ 248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 249 *) \ 250 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 251 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 252 esac; 253 254 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 256 257 $(top_srcdir)/configure: $(am__configure_deps) 258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 259 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 261 262 clean-noinstLTLIBRARIES: 263 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 264 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 265 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 266 test "$$dir" != "$$p" || dir=.; \ 267 echo "rm -f \"$${dir}/so_locations\""; \ 268 rm -f "$${dir}/so_locations"; \ 269 done 270 libpslibastronomy.la: $(libpslibastronomy_la_OBJECTS) $(libpslibastronomy_la_DEPENDENCIES) 271 $(F77LINK) $(libpslibastronomy_la_LDFLAGS) $(libpslibastronomy_la_OBJECTS) $(libpslibastronomy_la_LIBADD) $(LIBS) 272 273 mostlyclean-compile: 274 -rm -f *.$(OBJEXT) 275 276 distclean-compile: 277 -rm -f *.tab.c 278 279 include ./$(DEPDIR)/psAstrometry.Plo 280 include ./$(DEPDIR)/psCoord.Plo 281 include ./$(DEPDIR)/psMetadata.Plo 282 include ./$(DEPDIR)/psMetadataIO.Plo 283 include ./$(DEPDIR)/psTime.Plo 284 285 .c.o: 286 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 287 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 288 # source='$<' object='$@' libtool=no \ 289 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 290 # $(COMPILE) -c $< 291 292 .c.obj: 293 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 294 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 295 # source='$<' object='$@' libtool=no \ 296 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 297 # $(COMPILE) -c `$(CYGPATH_W) '$<'` 298 299 .c.lo: 300 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 301 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 302 # source='$<' object='$@' libtool=yes \ 303 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 304 # $(LTCOMPILE) -c -o $@ $< 305 306 .f.o: 307 $(F77COMPILE) -c -o $@ $< 308 309 .f.obj: 310 $(F77COMPILE) -c -o $@ `$(CYGPATH_W) '$<'` 311 312 .f.lo: 313 $(LTF77COMPILE) -c -o $@ $< 314 315 mostlyclean-libtool: 316 -rm -f *.lo 317 318 clean-libtool: 319 -rm -rf .libs _libs 320 321 distclean-libtool: 322 -rm -f libtool 323 uninstall-info-am: 324 install-pslibincludeHEADERS: $(pslibinclude_HEADERS) 325 @$(NORMAL_INSTALL) 326 test -z "$(pslibincludedir)" || $(mkdir_p) "$(DESTDIR)$(pslibincludedir)" 327 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 328 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 329 f=$(am__strip_dir) \ 330 echo " $(pslibincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 331 $(pslibincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pslibincludedir)/$$f"; \ 332 done 333 334 uninstall-pslibincludeHEADERS: 335 @$(NORMAL_UNINSTALL) 336 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 337 f=$(am__strip_dir) \ 338 echo " rm -f '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 339 rm -f "$(DESTDIR)$(pslibincludedir)/$$f"; \ 340 done 341 342 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 343 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 344 unique=`for i in $$list; do \ 345 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 346 done | \ 347 $(AWK) ' { files[$$0] = 1; } \ 348 END { for (i in files) print i; }'`; \ 349 mkid -fID $$unique 350 tags: TAGS 351 352 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 353 $(TAGS_FILES) $(LISP) 354 tags=; \ 355 here=`pwd`; \ 356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 357 unique=`for i in $$list; do \ 358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 359 done | \ 360 $(AWK) ' { files[$$0] = 1; } \ 361 END { for (i in files) print i; }'`; \ 362 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 363 test -n "$$unique" || unique=$$empty_fix; \ 364 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 365 $$tags $$unique; \ 366 fi 367 ctags: CTAGS 368 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 369 $(TAGS_FILES) $(LISP) 370 tags=; \ 371 here=`pwd`; \ 372 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 373 unique=`for i in $$list; do \ 374 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 375 done | \ 376 $(AWK) ' { files[$$0] = 1; } \ 377 END { for (i in files) print i; }'`; \ 378 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 379 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 380 $$tags $$unique 381 382 GTAGS: 383 here=`$(am__cd) $(top_builddir) && pwd` \ 384 && cd $(top_srcdir) \ 385 && gtags -i $(GTAGS_ARGS) $$here 386 387 distclean-tags: 388 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 389 390 distdir: $(DISTFILES) 391 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 392 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 393 list='$(DISTFILES)'; for file in $$list; do \ 394 case $$file in \ 395 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 396 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 397 esac; \ 398 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 399 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 400 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 401 dir="/$$dir"; \ 402 $(mkdir_p) "$(distdir)$$dir"; \ 403 else \ 404 dir=''; \ 405 fi; \ 406 if test -d $$d/$$file; then \ 407 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 408 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 409 fi; \ 410 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 411 else \ 412 test -f $(distdir)/$$file \ 413 || cp -p $$d/$$file $(distdir)/$$file \ 414 || exit 1; \ 415 fi; \ 416 done 417 check-am: all-am 418 check: $(BUILT_SOURCES) 419 $(MAKE) $(AM_MAKEFLAGS) check-am 420 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 421 installdirs: 422 for dir in "$(DESTDIR)$(pslibincludedir)"; do \ 423 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 424 done 425 install: $(BUILT_SOURCES) 426 $(MAKE) $(AM_MAKEFLAGS) install-am 427 install-exec: install-exec-am 428 install-data: install-data-am 429 uninstall: uninstall-am 430 431 install-am: all-am 432 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 433 434 installcheck: installcheck-am 435 install-strip: 436 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 437 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 438 `test -z '$(STRIP)' || \ 439 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 440 mostlyclean-generic: 441 442 clean-generic: 443 444 distclean-generic: 445 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 446 447 maintainer-clean-generic: 448 @echo "This command is intended for maintainers to use" 449 @echo "it deletes files that may require special tools to rebuild." 450 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 451 clean: clean-am 452 453 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 454 mostlyclean-am 455 456 distclean: distclean-am 457 -rm -rf ./$(DEPDIR) 458 -rm -f Makefile 459 distclean-am: clean-am distclean-compile distclean-generic \ 460 distclean-libtool distclean-tags 461 462 dvi: dvi-am 463 464 dvi-am: 465 466 html: html-am 467 468 info: info-am 469 470 info-am: 471 472 install-data-am: install-pslibincludeHEADERS 473 474 install-exec-am: 475 476 install-info: install-info-am 477 478 install-man: 479 480 installcheck-am: 481 482 maintainer-clean: maintainer-clean-am 483 -rm -rf ./$(DEPDIR) 484 -rm -f Makefile 485 maintainer-clean-am: distclean-am maintainer-clean-generic 486 487 mostlyclean: mostlyclean-am 488 489 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 490 mostlyclean-libtool 491 492 pdf: pdf-am 493 494 pdf-am: 495 496 ps: ps-am 497 498 ps-am: 499 500 uninstall-am: uninstall-info-am uninstall-pslibincludeHEADERS 501 502 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 503 clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 504 distclean-compile distclean-generic distclean-libtool \ 505 distclean-tags distdir dvi dvi-am html html-am info info-am \ 506 install install-am install-data install-data-am install-exec \ 507 install-exec-am install-info install-info-am install-man \ 508 install-pslibincludeHEADERS install-strip installcheck \ 509 installcheck-am installdirs maintainer-clean \ 510 maintainer-clean-generic mostlyclean mostlyclean-compile \ 511 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 512 tags uninstall uninstall-am uninstall-info-am \ 513 uninstall-pslibincludeHEADERS 514 23 515 24 516 psAstronomyErrors.h: psAstronomyErrors.dat 25 perl ../parseErrorCodes.pl --data=$? $@ 26 27 28 # Rule to make static library 29 30 libpslib.a: $(OBJS) 31 # The ar option -r is to add/replace object and -s is to create 32 # a symbol table in the archive 33 $(AR) rcs ../$@ $(OBJS) 34 35 # Define PHONY target "install" which will install necessary files 36 install: $(TARGET_STATIC) 37 install $(HEADERS) $(includedir) 38 39 # Define PHONY target "distclean" which will cleanup the distribution 40 distclean: clean 41 $(RM) ../$(TARGET_STATIC) 42 43 # Define PHONY target "clean" which will cleanup the development area 44 clean: 45 @echo " Deleting intermediate files for 'astronomy'" 46 $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i) 47 48 cleandep: 49 $(RM) $(OBJS:.o=.d) 50 51 %.lint: %.c 52 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 53 54 %.i: %.c 55 $(CC) -E $(CFLAGS) -o $@ $< 56 57 makedir/%.o: %.c 58 $(CC) -c $(CFLAGS) -o $@ $< 59 60 makedir/%.d: %.c 61 $(CC) -MM $(CFLAGS) $< > $@.tmp 62 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp | sed 's|[A-Za-z0-9\/\.]*libxml[A-Za-z0-9\/\.]*||g' > $@ 63 $(RM) -f $@.tmp 64 65 include $(OBJS:.o=.d) 517 perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@ 518 # Tell versions [3.59,3.63) of GNU make to not export all variables. 519 # Otherwise a system limit (for SysV at least) may be exceeded. 520 .NOEXPORT: -
trunk/psLib/src/collections/Makefile
r1787 r3115 1 ############################################################################### 2 ## 3 ## Makefile: collections 4 ## 5 ## $Revision: 1.31 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-09-11 00:43:54 $ 7 ## 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii 9 ############################################################################### 10 11 # Define variable prefix to the top level project - psLib 12 # This is necessary for definition is Makefile.Globals uses prefix 13 14 ifndef prefix 15 export prefix=$(shell cd ../..;pwd) 16 endif 17 18 # Define the two targets to be built 19 20 TARGET_STATIC = libpslib.a 21 22 # Include the make global definitions for the project 23 24 include ../Makefile.Globals 25 26 # Set CFLAGS used by the implicit rule to compile .c 27 28 CFLAGS := $(CFLAGS_RELOC) -I../sysUtils -I.. 29 30 # Define the source objects 31 32 SRC_OBJS = psBitSet.o \ 33 psVector.o \ 34 psList.o \ 35 psScalar.o \ 36 psCompare.o \ 37 psArray.o \ 38 psHash.o 39 40 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 41 42 HEADERS = $(SRC_OBJS:.o=.h) 43 44 45 # Define PHONY target "all" which will make all the necessary items 46 47 all: $(TARGET_STATIC) 48 49 psCollectionsErrors.h: psCollectionsErrors.dat 50 perl ../parseErrorCodes.pl --data=$? $@ 51 52 # Rule to make static library 53 54 libpslib.a: $(OBJS) 55 # The ar option -r is to add/replace object and -s is to create 56 # a symbol table in the archive 57 $(AR) rcs ../$@ $(OBJS) 58 59 # Define PHONY target "install" which will install necessary files 60 61 install: $(TARGET_STATIC) 62 install $(HEADERS) $(includedir) 63 64 # Define PHONY target "distclean" which will cleanup the distribution 65 66 distclean: clean 67 $(RM) ../$(TARGET_STATIC) 68 69 # Define PHONY target "clean" which will cleanup the development area 70 71 clean: 72 @echo " Deleting intermediate files for 'collections'" 73 $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i) 74 75 cleandep: 76 $(RM) $(OBJS:.o=.d) 77 78 %.lint: %.c 79 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 80 81 %.i: %.c 82 $(CC) -E $(CFLAGS) -o $@ $< 83 84 makedir/%.o: %.c 85 $(CC) -c $(CFLAGS) -o $@ $< 86 87 makedir/%.d: %.c 88 $(CC) -MM $(CFLAGS) $< > $@.tmp 89 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@ 90 $(RM) -f $@.tmp 91 92 include $(OBJS:.o=.d) 1 # Makefile.in generated by automake 1.9.1 from Makefile.am. 2 # src/collections/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 18 SOURCES = $(libpslibcollections_la_SOURCES) 19 20 srcdir = . 21 top_srcdir = ../.. 22 23 pkgdatadir = $(datadir)/pslib 24 pkglibdir = $(libdir)/pslib 25 pkgincludedir = $(includedir)/pslib 26 top_builddir = ../.. 27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 28 INSTALL = /usr/bin/install -c 29 install_sh_DATA = $(install_sh) -c -m 644 30 install_sh_PROGRAM = $(install_sh) -c 31 install_sh_SCRIPT = $(install_sh) -c 32 INSTALL_HEADER = $(INSTALL_DATA) 33 transform = $(program_transform_name) 34 NORMAL_INSTALL = : 35 PRE_INSTALL = : 36 POST_INSTALL = : 37 NORMAL_UNINSTALL = : 38 PRE_UNINSTALL = : 39 POST_UNINSTALL = : 40 build_triplet = x86_64-unknown-linux-gnu 41 host_triplet = x86_64-unknown-linux-gnu 42 subdir = src/collections 43 DIST_COMMON = $(pslibinclude_HEADERS) $(srcdir)/Makefile.am \ 44 $(srcdir)/Makefile.in 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 46 am__aclocal_m4_deps = $(top_srcdir)/configure.in 47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 48 $(ACLOCAL_M4) 49 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 50 CONFIG_HEADER = $(top_builddir)/src/config.h 51 CONFIG_CLEAN_FILES = 52 LTLIBRARIES = $(noinst_LTLIBRARIES) 53 libpslibcollections_la_LIBADD = 54 am_libpslibcollections_la_OBJECTS = psBitSet.lo psVector.lo psList.lo \ 55 psScalar.lo psCompare.lo psArray.lo psHash.lo 56 libpslibcollections_la_OBJECTS = $(am_libpslibcollections_la_OBJECTS) 57 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 58 depcomp = $(SHELL) $(top_srcdir)/depcomp 59 am__depfiles_maybe = depfiles 60 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 61 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 62 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ 63 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 64 $(AM_CFLAGS) $(CFLAGS) 65 CCLD = $(CC) 66 LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 67 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 68 SOURCES = $(libpslibcollections_la_SOURCES) 69 DIST_SOURCES = $(libpslibcollections_la_SOURCES) 70 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 71 am__vpath_adj = case $$p in \ 72 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 73 *) f=$$p;; \ 74 esac; 75 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 76 am__installdirs = "$(DESTDIR)$(pslibincludedir)" 77 pslibincludeHEADERS_INSTALL = $(INSTALL_HEADER) 78 HEADERS = $(pslibinclude_HEADERS) 79 ETAGS = etags 80 CTAGS = ctags 81 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 82 ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9 83 AMDEP_FALSE = # 84 AMDEP_TRUE = 85 AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar 86 AR = ar 87 AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf 88 AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader 89 AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9 90 AWK = gawk 91 CC = gcc 92 CCDEPMODE = depmode=gcc3 93 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/usr/include -I/usr/include/libxml2 94 CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config 95 CPP = gcc -E 96 CPPFLAGS = 97 CXX = g++ 98 CXXCPP = g++ -E 99 CXXDEPMODE = depmode=gcc3 100 CXXFLAGS = -g -O2 101 CYGPATH_W = echo 102 DEFS = -DHAVE_CONFIG_H 103 DEPDIR = .deps 104 ECHO = echo 105 ECHO_C = 106 ECHO_N = -n 107 ECHO_T = 108 EGREP = grep -E 109 EXEEXT = 110 F77 = g77 111 FFLAGS = -fno-second-underscore -O -fno-f2c 112 GSL_CONFIG = /usr/bin/gsl-config 113 INSTALL_DATA = ${INSTALL} -m 644 114 INSTALL_PROGRAM = ${INSTALL} 115 INSTALL_SCRIPT = ${INSTALL} 116 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 117 LDFLAGS = 118 LIBOBJS = 119 LIBS = 120 LIBTOOL = $(SHELL) $(top_builddir)/libtool 121 LN_S = ln -s 122 LTLIBOBJS = 123 MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo 124 OBJEXT = o 125 PACKAGE = pslib 126 PACKAGE_BUGREPORT = 127 PACKAGE_NAME = 128 PACKAGE_STRING = 129 PACKAGE_TARNAME = 130 PACKAGE_VERSION = 131 PATH_SEPARATOR = : 132 PERL = /usr/bin/perl 133 PSLIB_CFLAGS = -I${prefix}/include 134 PSLIB_LIBS = -L${exec_prefix}/lib -lpslib -lcfitsio -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm 135 RANLIB = ranlib 136 SET_MAKE = 137 SHELL = /bin/sh 138 STRIP = strip 139 SWIG = /usr/bin/swig 140 VERSION = 1.5 141 XML_CONFIG = /usr/bin/xml2-config 142 ac_ct_AR = ar 143 ac_ct_CC = gcc 144 ac_ct_CXX = g++ 145 ac_ct_F77 = g77 146 ac_ct_RANLIB = ranlib 147 ac_ct_STRIP = strip 148 am__fastdepCC_FALSE = # 149 am__fastdepCC_TRUE = 150 am__fastdepCXX_FALSE = # 151 am__fastdepCXX_TRUE = 152 am__include = include 153 am__leading_dot = . 154 am__quote = 155 am__tar = ${AMTAR} chof - "$$tardir" 156 am__untar = ${AMTAR} xf - 157 bindir = ${exec_prefix}/bin 158 build = x86_64-unknown-linux-gnu 159 build_alias = 160 build_cpu = x86_64 161 build_os = linux-gnu 162 build_vendor = unknown 163 datadir = ${prefix}/share 164 exec_prefix = ${prefix} 165 host = x86_64-unknown-linux-gnu 166 host_alias = 167 host_cpu = x86_64 168 host_os = linux-gnu 169 host_vendor = unknown 170 includedir = ${prefix}/include 171 infodir = ${prefix}/info 172 install_sh = /home/desonia/panstarrs/psLib/install-sh 173 libdir = ${exec_prefix}/lib 174 libexecdir = ${exec_prefix}/libexec 175 localstatedir = ${prefix}/var 176 mandir = ${prefix}/man 177 mkdir_p = mkdir -p -- 178 oldincludedir = /usr/include 179 prefix = /home/desonia/panstarrs/psLib 180 program_transform_name = s,x,x, 181 sbindir = ${exec_prefix}/sbin 182 sharedstatedir = ${prefix}/com 183 sysconfdir = ${prefix}/etc 184 target_alias = 185 186 #Makefile for collections functions of psLib 187 # 188 INCLUDES = \ 189 -I$(top_srcdir)/src/astronomy \ 190 -I$(top_srcdir)/src/dataManip \ 191 -I$(top_srcdir)/src/fileUtils \ 192 -I$(top_srcdir)/src/image \ 193 -I$(top_srcdir)/src/sysUtils \ 194 $(all_includes) 195 196 noinst_LTLIBRARIES = libpslibcollections.la 197 libpslibcollections_la_SOURCES = \ 198 psBitSet.c \ 199 psVector.c \ 200 psList.c \ 201 psScalar.c \ 202 psCompare.c \ 203 psArray.c \ 204 psHash.c 205 206 BUILT_SOURCES = psCollectionsErrors.h 207 EXTRA_DIST = psCollectionsErrors.dat psCollectionsErrors.h 208 pslibincludedir = $(includedir)/pslib 209 pslibinclude_HEADERS = \ 210 psBitSet.h \ 211 psVector.h \ 212 psList.h \ 213 psScalar.h \ 214 psCompare.h \ 215 psArray.h \ 216 psHash.h 217 218 all: $(BUILT_SOURCES) 219 $(MAKE) $(AM_MAKEFLAGS) all-am 220 221 .SUFFIXES: 222 .SUFFIXES: .c .lo .o .obj 223 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 224 @for dep in $?; do \ 225 case '$(am__configure_deps)' in \ 226 *$$dep*) \ 227 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 228 && exit 0; \ 229 exit 1;; \ 230 esac; \ 231 done; \ 232 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/collections/Makefile'; \ 233 cd $(top_srcdir) && \ 234 $(AUTOMAKE) --gnu src/collections/Makefile 235 .PRECIOUS: Makefile 236 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 237 @case '$?' in \ 238 *config.status*) \ 239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 240 *) \ 241 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 242 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 243 esac; 244 245 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 246 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 247 248 $(top_srcdir)/configure: $(am__configure_deps) 249 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 250 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 252 253 clean-noinstLTLIBRARIES: 254 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 255 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 256 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 257 test "$$dir" != "$$p" || dir=.; \ 258 echo "rm -f \"$${dir}/so_locations\""; \ 259 rm -f "$${dir}/so_locations"; \ 260 done 261 libpslibcollections.la: $(libpslibcollections_la_OBJECTS) $(libpslibcollections_la_DEPENDENCIES) 262 $(LINK) $(libpslibcollections_la_LDFLAGS) $(libpslibcollections_la_OBJECTS) $(libpslibcollections_la_LIBADD) $(LIBS) 263 264 mostlyclean-compile: 265 -rm -f *.$(OBJEXT) 266 267 distclean-compile: 268 -rm -f *.tab.c 269 270 include ./$(DEPDIR)/psArray.Plo 271 include ./$(DEPDIR)/psBitSet.Plo 272 include ./$(DEPDIR)/psCompare.Plo 273 include ./$(DEPDIR)/psHash.Plo 274 include ./$(DEPDIR)/psList.Plo 275 include ./$(DEPDIR)/psScalar.Plo 276 include ./$(DEPDIR)/psVector.Plo 277 278 .c.o: 279 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 280 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 281 # source='$<' object='$@' libtool=no \ 282 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 283 # $(COMPILE) -c $< 284 285 .c.obj: 286 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 287 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 288 # source='$<' object='$@' libtool=no \ 289 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 290 # $(COMPILE) -c `$(CYGPATH_W) '$<'` 291 292 .c.lo: 293 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 294 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 295 # source='$<' object='$@' libtool=yes \ 296 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 297 # $(LTCOMPILE) -c -o $@ $< 298 299 mostlyclean-libtool: 300 -rm -f *.lo 301 302 clean-libtool: 303 -rm -rf .libs _libs 304 305 distclean-libtool: 306 -rm -f libtool 307 uninstall-info-am: 308 install-pslibincludeHEADERS: $(pslibinclude_HEADERS) 309 @$(NORMAL_INSTALL) 310 test -z "$(pslibincludedir)" || $(mkdir_p) "$(DESTDIR)$(pslibincludedir)" 311 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 312 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 313 f=$(am__strip_dir) \ 314 echo " $(pslibincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 315 $(pslibincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pslibincludedir)/$$f"; \ 316 done 317 318 uninstall-pslibincludeHEADERS: 319 @$(NORMAL_UNINSTALL) 320 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 321 f=$(am__strip_dir) \ 322 echo " rm -f '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 323 rm -f "$(DESTDIR)$(pslibincludedir)/$$f"; \ 324 done 325 326 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 327 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 328 unique=`for i in $$list; do \ 329 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 330 done | \ 331 $(AWK) ' { files[$$0] = 1; } \ 332 END { for (i in files) print i; }'`; \ 333 mkid -fID $$unique 334 tags: TAGS 335 336 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 337 $(TAGS_FILES) $(LISP) 338 tags=; \ 339 here=`pwd`; \ 340 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 341 unique=`for i in $$list; do \ 342 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 343 done | \ 344 $(AWK) ' { files[$$0] = 1; } \ 345 END { for (i in files) print i; }'`; \ 346 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 347 test -n "$$unique" || unique=$$empty_fix; \ 348 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 349 $$tags $$unique; \ 350 fi 351 ctags: CTAGS 352 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 353 $(TAGS_FILES) $(LISP) 354 tags=; \ 355 here=`pwd`; \ 356 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 357 unique=`for i in $$list; do \ 358 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 359 done | \ 360 $(AWK) ' { files[$$0] = 1; } \ 361 END { for (i in files) print i; }'`; \ 362 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 363 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 364 $$tags $$unique 365 366 GTAGS: 367 here=`$(am__cd) $(top_builddir) && pwd` \ 368 && cd $(top_srcdir) \ 369 && gtags -i $(GTAGS_ARGS) $$here 370 371 distclean-tags: 372 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 373 374 distdir: $(DISTFILES) 375 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 376 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 377 list='$(DISTFILES)'; for file in $$list; do \ 378 case $$file in \ 379 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 380 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 381 esac; \ 382 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 383 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 384 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 385 dir="/$$dir"; \ 386 $(mkdir_p) "$(distdir)$$dir"; \ 387 else \ 388 dir=''; \ 389 fi; \ 390 if test -d $$d/$$file; then \ 391 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 392 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 393 fi; \ 394 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 395 else \ 396 test -f $(distdir)/$$file \ 397 || cp -p $$d/$$file $(distdir)/$$file \ 398 || exit 1; \ 399 fi; \ 400 done 401 check-am: all-am 402 check: $(BUILT_SOURCES) 403 $(MAKE) $(AM_MAKEFLAGS) check-am 404 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 405 installdirs: 406 for dir in "$(DESTDIR)$(pslibincludedir)"; do \ 407 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 408 done 409 install: $(BUILT_SOURCES) 410 $(MAKE) $(AM_MAKEFLAGS) install-am 411 install-exec: install-exec-am 412 install-data: install-data-am 413 uninstall: uninstall-am 414 415 install-am: all-am 416 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 417 418 installcheck: installcheck-am 419 install-strip: 420 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 421 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 422 `test -z '$(STRIP)' || \ 423 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 424 mostlyclean-generic: 425 426 clean-generic: 427 428 distclean-generic: 429 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 430 431 maintainer-clean-generic: 432 @echo "This command is intended for maintainers to use" 433 @echo "it deletes files that may require special tools to rebuild." 434 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 435 clean: clean-am 436 437 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 438 mostlyclean-am 439 440 distclean: distclean-am 441 -rm -rf ./$(DEPDIR) 442 -rm -f Makefile 443 distclean-am: clean-am distclean-compile distclean-generic \ 444 distclean-libtool distclean-tags 445 446 dvi: dvi-am 447 448 dvi-am: 449 450 html: html-am 451 452 info: info-am 453 454 info-am: 455 456 install-data-am: install-pslibincludeHEADERS 457 458 install-exec-am: 459 460 install-info: install-info-am 461 462 install-man: 463 464 installcheck-am: 465 466 maintainer-clean: maintainer-clean-am 467 -rm -rf ./$(DEPDIR) 468 -rm -f Makefile 469 maintainer-clean-am: distclean-am maintainer-clean-generic 470 471 mostlyclean: mostlyclean-am 472 473 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 474 mostlyclean-libtool 475 476 pdf: pdf-am 477 478 pdf-am: 479 480 ps: ps-am 481 482 ps-am: 483 484 uninstall-am: uninstall-info-am uninstall-pslibincludeHEADERS 485 486 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 487 clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 488 distclean-compile distclean-generic distclean-libtool \ 489 distclean-tags distdir dvi dvi-am html html-am info info-am \ 490 install install-am install-data install-data-am install-exec \ 491 install-exec-am install-info install-info-am install-man \ 492 install-pslibincludeHEADERS install-strip installcheck \ 493 installcheck-am installdirs maintainer-clean \ 494 maintainer-clean-generic mostlyclean mostlyclean-compile \ 495 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 496 tags uninstall uninstall-am uninstall-info-am \ 497 uninstall-pslibincludeHEADERS 498 499 500 psCollectionsErrors.h:psCollectionsErrors.dat 501 perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@ 502 # Tell versions [3.59,3.63) of GNU make to not export all variables. 503 # Otherwise a system limit (for SysV at least) may be exceeded. 504 .NOEXPORT: -
trunk/psLib/src/collections/psArray.c
r2855 r3115 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-30 20:18:36$11 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 33 33 FUNCTION IMPLEMENTATION - LOCAL 34 34 *****************************************************************************/ 35 static void arrayFree(psArray* restrictpsArr);35 static void arrayFree(psArray* psArr); 36 36 37 static void arrayFree(psArray* restrictpsArr)37 static void arrayFree(psArray* psArr) 38 38 { 39 39 if (psArr == NULL) { … … 66 66 } 67 67 68 psArray* psArrayRealloc(psArray* restrictin, psU32 nalloc)68 psArray* psArrayRealloc(psArray* in, psU32 nalloc) 69 69 { 70 70 if (in == NULL) { … … 134 134 } 135 135 136 void psArrayElementFree(psArray* restrictpsArr)136 void psArrayElementFree(psArray* psArr) 137 137 { 138 138 -
trunk/psLib/src/collections/psArray.h
r2793 r3115 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $15 * @date $Date: 200 4-12-23 01:14:52$14 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:10 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 55 55 */ 56 56 psArray* psArrayAlloc( 57 psU32 nalloc ///< Total number of elements to make available.57 psU32 nalloc ///< Total number of elements to make available. 58 58 ); 59 59 … … 67 67 */ 68 68 psArray* psArrayRealloc( 69 psArray* restrict psArr,///< array to reallocate.69 psArray* psArr, ///< array to reallocate. 70 70 psU32 nalloc ///< Total number of elements to make available. 71 71 ); … … 104 104 */ 105 105 void psArrayElementFree( 106 psArray* restrict psArr///< Void pointer array to destroy.106 psArray* psArr ///< Void pointer array to destroy. 107 107 ); 108 108 -
trunk/psLib/src/collections/psBitSet.c
r2273 r3115 11 11 * @author Robert DeSonia, MHPCC 12 12 * 13 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $14 * @date $Date: 200 4-11-04 01:04:57$13 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:10 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 }; 39 39 40 static void bitSetFree(psBitSet* restrictinBitSet);40 static void bitSetFree(psBitSet* inBitSet); 41 41 42 42 /** Private function to create a mask. … … 58 58 } 59 59 60 static void bitSetFree(psBitSet* restrictinBitSet)60 static void bitSetFree(psBitSet* inBitSet) 61 61 { 62 62 if (inBitSet == NULL) { … … 161 161 162 162 psBitSet* psBitSetOp(psBitSet* outBitSet, 163 const psBitSet* restrictinBitSet1,163 const psBitSet* inBitSet1, 164 164 char *operator, 165 const psBitSet* restrictinBitSet2)165 const psBitSet* inBitSet2) 166 166 { 167 167 psS32 i = 0; … … 264 264 break; 265 265 default: 266 psAbort( PS_ERRORNAME_DOMAIN"psBitSetOp",266 psAbort("psBitSetOp", 267 267 "Unexpected error - operator parsed successfully but not valid?"); 268 268 } … … 272 272 273 273 psBitSet* psBitSetNot(psBitSet* outBitSet, 274 const psBitSet* restrictinBitSet)274 const psBitSet* inBitSet) 275 275 { 276 276 if (inBitSet == NULL) { … … 291 291 } 292 292 293 char *psBitSetToString(const psBitSet* restrictinBitSet)293 char *psBitSetToString(const psBitSet* inBitSet) 294 294 { 295 295 psS32 i = 0; -
trunk/psLib/src/collections/psBitSet.h
r2204 r3115 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $15 * @date $Date: 200 4-10-27 00:57:31$14 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:10 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 56 56 /*@null@*/ 57 57 psBitSet* psBitSetAlloc( 58 psS32 n ///< Number of bits in psBitSet array58 psS32 n ///< Number of bits in psBitSet array 59 59 ); 60 60 … … 69 69 psBitSet* psBitSetSet( 70 70 /* @returned@ */ 71 psBitSet* restrict inMask,///< Pointer to psBitSet to be set.72 psS32 bit ///< Bit to be set.71 psBitSet* inMask, ///< Pointer to psBitSet to be set. 72 psS32 bit ///< Bit to be set. 73 73 ); 74 74 … … 83 83 psBitSet* psBitSetClear( 84 84 /* @returned@ */ 85 psBitSet* restrict inMask,///< Pointer to psBitSet to be cleared.86 psS32 bit ///< Bit to be cleared.85 psBitSet* inMask, ///< Pointer to psBitSet to be cleared. 86 psS32 bit ///< Bit to be cleared. 87 87 ); 88 88 … … 98 98 99 99 psBool psBitSetTest( 100 const psBitSet* restrict inMask,///< Pointer psBitSet to be tested.101 psS32 bit ///< Bit to be tested.100 const psBitSet* inMask, ///< Pointer psBitSet to be tested. 101 psS32 bit ///< Bit to be tested. 102 102 ); 103 103 … … 111 111 psBitSet* psBitSetOp( 112 112 /* @returned@ */ 113 psBitSet* restrict outMask,///< Resulting psBitSet from binary operation114 const psBitSet* restrict inMask1,///< First psBitSet on which to operate113 psBitSet* outMask, ///< Resulting psBitSet from binary operation 114 const psBitSet* inMask1, ///< First psBitSet on which to operate 115 115 char *operator, ///< Bit operation 116 const psBitSet* restrict inMask2///< First psBitSet on which to operate116 const psBitSet* inMask2 ///< First psBitSet on which to operate 117 117 ); 118 118 … … 126 126 psBitSet* psBitSetNot( 127 127 psBitSet* outBitSet, ///< Resulting psBitSet from operation 128 const psBitSet* restrict inBitSet///< Input psBitSet128 const psBitSet* inBitSet ///< Input psBitSet 129 129 ); 130 130 … … 138 138 139 139 char *psBitSetToString( 140 const psBitSet* restrict inMask///< psBitSet to convert */140 const psBitSet* inMask ///< psBitSet to convert */ 141 141 ); 142 142 -
trunk/psLib/src/collections/psVector.c
r2676 r3115 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 200 4-12-09 21:30:43$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-02-03 00:54:10 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 28 28 #include "psCollectionsErrors.h" 29 29 30 static void vectorFree(psVector* restrictpsVec);31 32 33 static void vectorFree(psVector* restrictpsVec)30 static void vectorFree(psVector* psVec); 31 32 33 static void vectorFree(psVector* psVec) 34 34 { 35 35 if (psVec == NULL) { … … 64 64 } 65 65 66 psVector* psVectorRealloc(psVector* restrictin, psU32 nalloc)66 psVector* psVectorRealloc(psVector* in, psU32 nalloc) 67 67 { 68 68 psS32 elementSize = 0; … … 87 87 } 88 88 89 psVector* psVectorRecycle(psVector* restrictin, psU32 n, psElemType type)89 psVector* psVectorRecycle(psVector* in, psU32 n, psElemType type) 90 90 { 91 91 psS32 byteSize; … … 218 218 } 219 219 220 psVector* psVectorSort(psVector* restrict outVector, const psVector* restrictinVector)220 psVector* psVectorSort(psVector* outVector, const psVector* inVector) 221 221 { 222 222 psS32 N = 0; … … 302 302 } 303 303 304 psVector* psVectorSortIndex(psVector* restrict outVector, const psVector* restrictinVector)304 psVector* psVectorSortIndex(psVector* outVector, const psVector* inVector) 305 305 { 306 306 psS32 N = 0; -
trunk/psLib/src/collections/psVector.h
r3025 r3115 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.2 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 1-17 20:58:21$13 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:10 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 84 84 */ 85 85 psVector* psVectorRealloc( 86 psVector* restrict psVec,///< Vector to reallocate.87 psU32 nalloc ///< Total number of elements to make available.86 psVector* psVec, ///< Vector to reallocate. 87 psU32 nalloc ///< Total number of elements to make available. 88 88 ); 89 89 … … 98 98 */ 99 99 psVector* psVectorRecycle( 100 psVector* restrictpsVec,100 psVector* psVec, 101 101 ///< Vector to recycle. If NULL, a new vector is created. No effort 102 102 ///< taken to preserve the values. 103 103 104 psU32 nalloc, ///< Total number of elements to make available.104 psU32 nalloc, ///< Total number of elements to make available. 105 105 psElemType type ///< the datatype of the returned vector 106 106 ); … … 128 128 */ 129 129 psVector* psVectorSort( 130 psVector* restrict outVector,///< the output vector to recycle, or NULL if new vector desired.131 const psVector* restrict inVector///< the vector to sort.130 psVector* outVector, ///< the output vector to recycle, or NULL if new vector desired. 131 const psVector* inVector ///< the vector to sort. 132 132 ); 133 133 … … 140 140 */ 141 141 psVector* psVectorSortIndex( 142 psVector* restrict outVector,///< vector to recycle143 const psVector* restrict inVector///< vector to sort142 psVector* outVector, ///< vector to recycle 143 const psVector* inVector ///< vector to sort 144 144 ); 145 145 -
trunk/psLib/src/dataIO/Makefile
r2962 r3115 1 ifndef prefix 2 export prefix=$(shell cd ../..;pwd) 3 endif 4 5 TARGET_STATIC = libpslib.a 6 include ../Makefile.Globals 7 CFLAGS := $(CFLAGS_RELOC) -I. -I../sysUtils -I../collections -I../dataManip \ 8 -I.. -I../image -I../astronomy -DSER7_FILE="\"$(SER7_FILE)\"" -DTAIUTC_FILE="\"$(TAIUTC_FILE)\"" 9 10 SRC_OBJS = psLookupTable.o \ 11 psFits.o 12 13 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 14 15 HEADERS = $(SRC_OBJS:.o=.h) 16 17 all: $(TARGET_STATIC) 1 # Makefile.in generated by automake 1.9.1 from Makefile.am. 2 # src/fileUtils/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 18 SOURCES = $(libpslibfileUtils_la_SOURCES) 19 20 srcdir = . 21 top_srcdir = ../.. 22 23 pkgdatadir = $(datadir)/pslib 24 pkglibdir = $(libdir)/pslib 25 pkgincludedir = $(includedir)/pslib 26 top_builddir = ../.. 27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 28 INSTALL = /usr/bin/install -c 29 install_sh_DATA = $(install_sh) -c -m 644 30 install_sh_PROGRAM = $(install_sh) -c 31 install_sh_SCRIPT = $(install_sh) -c 32 INSTALL_HEADER = $(INSTALL_DATA) 33 transform = $(program_transform_name) 34 NORMAL_INSTALL = : 35 PRE_INSTALL = : 36 POST_INSTALL = : 37 NORMAL_UNINSTALL = : 38 PRE_UNINSTALL = : 39 POST_UNINSTALL = : 40 build_triplet = x86_64-unknown-linux-gnu 41 host_triplet = x86_64-unknown-linux-gnu 42 subdir = src/fileUtils 43 DIST_COMMON = $(pslibinclude_HEADERS) $(srcdir)/Makefile.am \ 44 $(srcdir)/Makefile.in 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 46 am__aclocal_m4_deps = $(top_srcdir)/configure.in 47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 48 $(ACLOCAL_M4) 49 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 50 CONFIG_HEADER = $(top_builddir)/src/config.h 51 CONFIG_CLEAN_FILES = 52 LTLIBRARIES = $(noinst_LTLIBRARIES) 53 libpslibfileUtils_la_LIBADD = 54 am_libpslibfileUtils_la_OBJECTS = psLookupTable.lo psFits.lo 55 libpslibfileUtils_la_OBJECTS = $(am_libpslibfileUtils_la_OBJECTS) 56 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 57 depcomp = $(SHELL) $(top_srcdir)/depcomp 58 am__depfiles_maybe = depfiles 59 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 60 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 61 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ 62 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 63 $(AM_CFLAGS) $(CFLAGS) 64 CCLD = $(CC) 65 LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 66 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 67 SOURCES = $(libpslibfileUtils_la_SOURCES) 68 DIST_SOURCES = $(libpslibfileUtils_la_SOURCES) 69 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 70 am__vpath_adj = case $$p in \ 71 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 72 *) f=$$p;; \ 73 esac; 74 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 75 am__installdirs = "$(DESTDIR)$(pslibincludedir)" 76 pslibincludeHEADERS_INSTALL = $(INSTALL_HEADER) 77 HEADERS = $(pslibinclude_HEADERS) 78 ETAGS = etags 79 CTAGS = ctags 80 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 81 ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9 82 AMDEP_FALSE = # 83 AMDEP_TRUE = 84 AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar 85 AR = ar 86 AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf 87 AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader 88 AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9 89 AWK = gawk 90 CC = gcc 91 CCDEPMODE = depmode=gcc3 92 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/usr/include -I/usr/include/libxml2 93 CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config 94 CPP = gcc -E 95 CPPFLAGS = 96 CXX = g++ 97 CXXCPP = g++ -E 98 CXXDEPMODE = depmode=gcc3 99 CXXFLAGS = -g -O2 100 CYGPATH_W = echo 101 DEFS = -DHAVE_CONFIG_H 102 DEPDIR = .deps 103 ECHO = echo 104 ECHO_C = 105 ECHO_N = -n 106 ECHO_T = 107 EGREP = grep -E 108 EXEEXT = 109 F77 = g77 110 FFLAGS = -fno-second-underscore -O -fno-f2c 111 GSL_CONFIG = /usr/bin/gsl-config 112 INSTALL_DATA = ${INSTALL} -m 644 113 INSTALL_PROGRAM = ${INSTALL} 114 INSTALL_SCRIPT = ${INSTALL} 115 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 116 LDFLAGS = 117 LIBOBJS = 118 LIBS = 119 LIBTOOL = $(SHELL) $(top_builddir)/libtool 120 LN_S = ln -s 121 LTLIBOBJS = 122 MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo 123 OBJEXT = o 124 PACKAGE = pslib 125 PACKAGE_BUGREPORT = 126 PACKAGE_NAME = 127 PACKAGE_STRING = 128 PACKAGE_TARNAME = 129 PACKAGE_VERSION = 130 PATH_SEPARATOR = : 131 PERL = /usr/bin/perl 132 PSLIB_CFLAGS = -I${prefix}/include 133 PSLIB_LIBS = -L${exec_prefix}/lib -lpslib -lcfitsio -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm 134 RANLIB = ranlib 135 SET_MAKE = 136 SHELL = /bin/sh 137 STRIP = strip 138 SWIG = /usr/bin/swig 139 VERSION = 1.5 140 XML_CONFIG = /usr/bin/xml2-config 141 ac_ct_AR = ar 142 ac_ct_CC = gcc 143 ac_ct_CXX = g++ 144 ac_ct_F77 = g77 145 ac_ct_RANLIB = ranlib 146 ac_ct_STRIP = strip 147 am__fastdepCC_FALSE = # 148 am__fastdepCC_TRUE = 149 am__fastdepCXX_FALSE = # 150 am__fastdepCXX_TRUE = 151 am__include = include 152 am__leading_dot = . 153 am__quote = 154 am__tar = ${AMTAR} chof - "$$tardir" 155 am__untar = ${AMTAR} xf - 156 bindir = ${exec_prefix}/bin 157 build = x86_64-unknown-linux-gnu 158 build_alias = 159 build_cpu = x86_64 160 build_os = linux-gnu 161 build_vendor = unknown 162 datadir = ${prefix}/share 163 exec_prefix = ${prefix} 164 host = x86_64-unknown-linux-gnu 165 host_alias = 166 host_cpu = x86_64 167 host_os = linux-gnu 168 host_vendor = unknown 169 includedir = ${prefix}/include 170 infodir = ${prefix}/info 171 install_sh = /home/desonia/panstarrs/psLib/install-sh 172 libdir = ${exec_prefix}/lib 173 libexecdir = ${exec_prefix}/libexec 174 localstatedir = ${prefix}/var 175 mandir = ${prefix}/man 176 mkdir_p = mkdir -p -- 177 oldincludedir = /usr/include 178 prefix = /home/desonia/panstarrs/psLib 179 program_transform_name = s,x,x, 180 sbindir = ${exec_prefix}/sbin 181 sharedstatedir = ${prefix}/com 182 sysconfdir = ${prefix}/etc 183 target_alias = 184 185 #Makefile for fileUtils functions of psLib 186 # 187 INCLUDES = \ 188 -I$(top_srcdir)/src/astronomy \ 189 -I$(top_srcdir)/src/collections \ 190 -I$(top_srcdir)/src/dataManip \ 191 -I$(top_srcdir)/src/image \ 192 -I$(top_srcdir)/src/sysUtils \ 193 $(all_includes) 194 195 noinst_LTLIBRARIES = libpslibfileUtils.la 196 libpslibfileUtils_la_SOURCES = \ 197 psLookupTable.c \ 198 psFits.c 199 200 BUILT_SOURCES = psFileUtilsErrors.h 201 EXTRA_DIST = psFileUtilsErrors.dat psFileUtilsErrors.h 202 pslibincludedir = $(includedir)/pslib 203 pslibinclude_HEADERS = \ 204 psLookupTable.h \ 205 psFits.h 206 207 all: $(BUILT_SOURCES) 208 $(MAKE) $(AM_MAKEFLAGS) all-am 209 210 .SUFFIXES: 211 .SUFFIXES: .c .lo .o .obj 212 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 213 @for dep in $?; do \ 214 case '$(am__configure_deps)' in \ 215 *$$dep*) \ 216 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 217 && exit 0; \ 218 exit 1;; \ 219 esac; \ 220 done; \ 221 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/fileUtils/Makefile'; \ 222 cd $(top_srcdir) && \ 223 $(AUTOMAKE) --gnu src/fileUtils/Makefile 224 .PRECIOUS: Makefile 225 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 226 @case '$?' in \ 227 *config.status*) \ 228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 229 *) \ 230 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 231 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 232 esac; 233 234 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 235 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 236 237 $(top_srcdir)/configure: $(am__configure_deps) 238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 239 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 241 242 clean-noinstLTLIBRARIES: 243 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 244 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 245 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 246 test "$$dir" != "$$p" || dir=.; \ 247 echo "rm -f \"$${dir}/so_locations\""; \ 248 rm -f "$${dir}/so_locations"; \ 249 done 250 libpslibfileUtils.la: $(libpslibfileUtils_la_OBJECTS) $(libpslibfileUtils_la_DEPENDENCIES) 251 $(LINK) $(libpslibfileUtils_la_LDFLAGS) $(libpslibfileUtils_la_OBJECTS) $(libpslibfileUtils_la_LIBADD) $(LIBS) 252 253 mostlyclean-compile: 254 -rm -f *.$(OBJEXT) 255 256 distclean-compile: 257 -rm -f *.tab.c 258 259 include ./$(DEPDIR)/psFits.Plo 260 include ./$(DEPDIR)/psLookupTable.Plo 261 262 .c.o: 263 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 264 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 265 # source='$<' object='$@' libtool=no \ 266 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 267 # $(COMPILE) -c $< 268 269 .c.obj: 270 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 271 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 272 # source='$<' object='$@' libtool=no \ 273 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 274 # $(COMPILE) -c `$(CYGPATH_W) '$<'` 275 276 .c.lo: 277 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 278 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 279 # source='$<' object='$@' libtool=yes \ 280 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 281 # $(LTCOMPILE) -c -o $@ $< 282 283 mostlyclean-libtool: 284 -rm -f *.lo 285 286 clean-libtool: 287 -rm -rf .libs _libs 288 289 distclean-libtool: 290 -rm -f libtool 291 uninstall-info-am: 292 install-pslibincludeHEADERS: $(pslibinclude_HEADERS) 293 @$(NORMAL_INSTALL) 294 test -z "$(pslibincludedir)" || $(mkdir_p) "$(DESTDIR)$(pslibincludedir)" 295 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 296 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 297 f=$(am__strip_dir) \ 298 echo " $(pslibincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 299 $(pslibincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pslibincludedir)/$$f"; \ 300 done 301 302 uninstall-pslibincludeHEADERS: 303 @$(NORMAL_UNINSTALL) 304 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 305 f=$(am__strip_dir) \ 306 echo " rm -f '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 307 rm -f "$(DESTDIR)$(pslibincludedir)/$$f"; \ 308 done 309 310 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 311 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 312 unique=`for i in $$list; do \ 313 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 314 done | \ 315 $(AWK) ' { files[$$0] = 1; } \ 316 END { for (i in files) print i; }'`; \ 317 mkid -fID $$unique 318 tags: TAGS 319 320 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 321 $(TAGS_FILES) $(LISP) 322 tags=; \ 323 here=`pwd`; \ 324 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 325 unique=`for i in $$list; do \ 326 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 327 done | \ 328 $(AWK) ' { files[$$0] = 1; } \ 329 END { for (i in files) print i; }'`; \ 330 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 331 test -n "$$unique" || unique=$$empty_fix; \ 332 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 333 $$tags $$unique; \ 334 fi 335 ctags: CTAGS 336 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 337 $(TAGS_FILES) $(LISP) 338 tags=; \ 339 here=`pwd`; \ 340 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 341 unique=`for i in $$list; do \ 342 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 343 done | \ 344 $(AWK) ' { files[$$0] = 1; } \ 345 END { for (i in files) print i; }'`; \ 346 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 347 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 348 $$tags $$unique 349 350 GTAGS: 351 here=`$(am__cd) $(top_builddir) && pwd` \ 352 && cd $(top_srcdir) \ 353 && gtags -i $(GTAGS_ARGS) $$here 354 355 distclean-tags: 356 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 357 358 distdir: $(DISTFILES) 359 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 360 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 361 list='$(DISTFILES)'; for file in $$list; do \ 362 case $$file in \ 363 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 364 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 365 esac; \ 366 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 367 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 368 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 369 dir="/$$dir"; \ 370 $(mkdir_p) "$(distdir)$$dir"; \ 371 else \ 372 dir=''; \ 373 fi; \ 374 if test -d $$d/$$file; then \ 375 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 376 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 377 fi; \ 378 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 379 else \ 380 test -f $(distdir)/$$file \ 381 || cp -p $$d/$$file $(distdir)/$$file \ 382 || exit 1; \ 383 fi; \ 384 done 385 check-am: all-am 386 check: $(BUILT_SOURCES) 387 $(MAKE) $(AM_MAKEFLAGS) check-am 388 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 389 installdirs: 390 for dir in "$(DESTDIR)$(pslibincludedir)"; do \ 391 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 392 done 393 install: $(BUILT_SOURCES) 394 $(MAKE) $(AM_MAKEFLAGS) install-am 395 install-exec: install-exec-am 396 install-data: install-data-am 397 uninstall: uninstall-am 398 399 install-am: all-am 400 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 401 402 installcheck: installcheck-am 403 install-strip: 404 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 405 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 406 `test -z '$(STRIP)' || \ 407 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 408 mostlyclean-generic: 409 410 clean-generic: 411 412 distclean-generic: 413 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 414 415 maintainer-clean-generic: 416 @echo "This command is intended for maintainers to use" 417 @echo "it deletes files that may require special tools to rebuild." 418 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 419 clean: clean-am 420 421 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 422 mostlyclean-am 423 424 distclean: distclean-am 425 -rm -rf ./$(DEPDIR) 426 -rm -f Makefile 427 distclean-am: clean-am distclean-compile distclean-generic \ 428 distclean-libtool distclean-tags 429 430 dvi: dvi-am 431 432 dvi-am: 433 434 html: html-am 435 436 info: info-am 437 438 info-am: 439 440 install-data-am: install-pslibincludeHEADERS 441 442 install-exec-am: 443 444 install-info: install-info-am 445 446 install-man: 447 448 installcheck-am: 449 450 maintainer-clean: maintainer-clean-am 451 -rm -rf ./$(DEPDIR) 452 -rm -f Makefile 453 maintainer-clean-am: distclean-am maintainer-clean-generic 454 455 mostlyclean: mostlyclean-am 456 457 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 458 mostlyclean-libtool 459 460 pdf: pdf-am 461 462 pdf-am: 463 464 ps: ps-am 465 466 ps-am: 467 468 uninstall-am: uninstall-info-am uninstall-pslibincludeHEADERS 469 470 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 471 clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 472 distclean-compile distclean-generic distclean-libtool \ 473 distclean-tags distdir dvi dvi-am html html-am info info-am \ 474 install install-am install-data install-data-am install-exec \ 475 install-exec-am install-info install-info-am install-man \ 476 install-pslibincludeHEADERS install-strip installcheck \ 477 installcheck-am installdirs maintainer-clean \ 478 maintainer-clean-generic mostlyclean mostlyclean-compile \ 479 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 480 tags uninstall uninstall-am uninstall-info-am \ 481 uninstall-pslibincludeHEADERS 482 18 483 19 484 psFileUtilsErrors.h: psFileUtilsErrors.dat 20 perl ../parseErrorCodes.pl --data=$? $@ 21 22 23 # Rule to make static library 24 25 libpslib.a: $(OBJS) 26 # The ar option -r is to add/replace object and -s is to create 27 # a symbol table in the archive 28 $(AR) rcs ../$@ $(OBJS) 29 30 # Define PHONY target "install" which will install necessary files 31 install: $(TARGET_STATIC) 32 install $(HEADERS) $(includedir) 33 34 # Define PHONY target "distclean" which will cleanup the distribution 35 distclean: clean 36 $(RM) ../$(TARGET_STATIC) 37 38 # Define PHONY target "clean" which will cleanup the development area 39 clean: 40 @echo " Deleting intermediate files for 'fileUtils'" 41 $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i) 42 43 cleandep: 44 $(RM) $(OBJS:.o=.d) 45 46 %.lint: %.c 47 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 48 49 %.i: %.c 50 $(CC) -E $(CFLAGS) -o $@ $< 51 52 makedir/%.o: %.c 53 $(CC) -c $(CFLAGS) -o $@ $< 54 55 makedir/%.d: %.c 56 $(CC) -MM $(CFLAGS) $< > $@.tmp 57 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@ 58 $(RM) -f $@.tmp 59 60 include $(OBJS:.o=.d) 485 perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@ 486 # Tell versions [3.59,3.63) of GNU make to not export all variables. 487 # Otherwise a system limit (for SysV at least) may be exceeded. 488 .NOEXPORT: -
trunk/psLib/src/dataIO/psFileUtilsErrors.h
r3028 r3115 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 1-18 03:15:03$9 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:11 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ 28 29 #define PS_ERRORNAME_DOMAIN "psLib.astronomy."30 28 31 29 //~Start #define PS_ERRORTEXT_$1 "$2" -
trunk/psLib/src/dataIO/psLookupTable.c
r2725 r3115 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 200 4-12-16 18:53:02$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:11 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 455 455 psU64 failedLines = 0; 456 456 FILE *fp = NULL; 457 psElemType elemType ;457 psElemType elemType = PS_TYPE_PTR; 458 458 psVector *indexVec = NULL; 459 459 psVector *valuesVec = NULL; -
trunk/psLib/src/dataManip/Makefile
r2432 r3115 1 ifndef prefix 2 export prefix=$(shell cd ../..;pwd) 3 endif 4 5 TARGET_STATIC = libpslib.a 6 include ../Makefile.Globals 7 CFLAGS := $(CFLAGS_RELOC) -I. -I../sysUtils -I../collections -I.. -I../image -I.. 8 9 SRC_OBJS = psStats.o \ 10 psFunctions.o \ 11 psMatrix.o \ 12 psMatrixVectorArithmetic.o \ 13 psVectorFFT.o \ 14 psMinimize.o \ 15 psRandom.o \ 16 17 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 18 19 HEADERS = $(SRC_OBJS:.o=.h) 20 21 all: $(TARGET_STATIC) 1 # Makefile.in generated by automake 1.9.1 from Makefile.am. 2 # src/dataManip/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 18 SOURCES = $(libpslibdataManip_la_SOURCES) 19 20 srcdir = . 21 top_srcdir = ../.. 22 23 pkgdatadir = $(datadir)/pslib 24 pkglibdir = $(libdir)/pslib 25 pkgincludedir = $(includedir)/pslib 26 top_builddir = ../.. 27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 28 INSTALL = /usr/bin/install -c 29 install_sh_DATA = $(install_sh) -c -m 644 30 install_sh_PROGRAM = $(install_sh) -c 31 install_sh_SCRIPT = $(install_sh) -c 32 INSTALL_HEADER = $(INSTALL_DATA) 33 transform = $(program_transform_name) 34 NORMAL_INSTALL = : 35 PRE_INSTALL = : 36 POST_INSTALL = : 37 NORMAL_UNINSTALL = : 38 PRE_UNINSTALL = : 39 POST_UNINSTALL = : 40 build_triplet = x86_64-unknown-linux-gnu 41 host_triplet = x86_64-unknown-linux-gnu 42 subdir = src/dataManip 43 DIST_COMMON = $(pslibinclude_HEADERS) $(srcdir)/Makefile.am \ 44 $(srcdir)/Makefile.in 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 46 am__aclocal_m4_deps = $(top_srcdir)/configure.in 47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 48 $(ACLOCAL_M4) 49 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 50 CONFIG_HEADER = $(top_builddir)/src/config.h 51 CONFIG_CLEAN_FILES = 52 LTLIBRARIES = $(noinst_LTLIBRARIES) 53 libpslibdataManip_la_LIBADD = 54 am_libpslibdataManip_la_OBJECTS = psStats.lo psFunctions.lo \ 55 psMatrix.lo psMatrixVectorArithmetic.lo psVectorFFT.lo \ 56 psMinimize.lo psRandom.lo 57 libpslibdataManip_la_OBJECTS = $(am_libpslibdataManip_la_OBJECTS) 58 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 59 depcomp = $(SHELL) $(top_srcdir)/depcomp 60 am__depfiles_maybe = depfiles 61 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 62 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 63 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ 64 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 65 $(AM_CFLAGS) $(CFLAGS) 66 CCLD = $(CC) 67 LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 68 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 69 SOURCES = $(libpslibdataManip_la_SOURCES) 70 DIST_SOURCES = $(libpslibdataManip_la_SOURCES) 71 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 72 am__vpath_adj = case $$p in \ 73 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 74 *) f=$$p;; \ 75 esac; 76 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 77 am__installdirs = "$(DESTDIR)$(pslibincludedir)" 78 pslibincludeHEADERS_INSTALL = $(INSTALL_HEADER) 79 HEADERS = $(pslibinclude_HEADERS) 80 ETAGS = etags 81 CTAGS = ctags 82 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 83 ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9 84 AMDEP_FALSE = # 85 AMDEP_TRUE = 86 AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar 87 AR = ar 88 AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf 89 AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader 90 AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9 91 AWK = gawk 92 CC = gcc 93 CCDEPMODE = depmode=gcc3 94 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/usr/include -I/usr/include/libxml2 95 CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config 96 CPP = gcc -E 97 CPPFLAGS = 98 CXX = g++ 99 CXXCPP = g++ -E 100 CXXDEPMODE = depmode=gcc3 101 CXXFLAGS = -g -O2 102 CYGPATH_W = echo 103 DEFS = -DHAVE_CONFIG_H 104 DEPDIR = .deps 105 ECHO = echo 106 ECHO_C = 107 ECHO_N = -n 108 ECHO_T = 109 EGREP = grep -E 110 EXEEXT = 111 F77 = g77 112 FFLAGS = -fno-second-underscore -O -fno-f2c 113 GSL_CONFIG = /usr/bin/gsl-config 114 INSTALL_DATA = ${INSTALL} -m 644 115 INSTALL_PROGRAM = ${INSTALL} 116 INSTALL_SCRIPT = ${INSTALL} 117 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 118 LDFLAGS = 119 LIBOBJS = 120 LIBS = 121 LIBTOOL = $(SHELL) $(top_builddir)/libtool 122 LN_S = ln -s 123 LTLIBOBJS = 124 MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo 125 OBJEXT = o 126 PACKAGE = pslib 127 PACKAGE_BUGREPORT = 128 PACKAGE_NAME = 129 PACKAGE_STRING = 130 PACKAGE_TARNAME = 131 PACKAGE_VERSION = 132 PATH_SEPARATOR = : 133 PERL = /usr/bin/perl 134 PSLIB_CFLAGS = -I${prefix}/include 135 PSLIB_LIBS = -L${exec_prefix}/lib -lpslib -lcfitsio -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm 136 RANLIB = ranlib 137 SET_MAKE = 138 SHELL = /bin/sh 139 STRIP = strip 140 SWIG = /usr/bin/swig 141 VERSION = 1.5 142 XML_CONFIG = /usr/bin/xml2-config 143 ac_ct_AR = ar 144 ac_ct_CC = gcc 145 ac_ct_CXX = g++ 146 ac_ct_F77 = g77 147 ac_ct_RANLIB = ranlib 148 ac_ct_STRIP = strip 149 am__fastdepCC_FALSE = # 150 am__fastdepCC_TRUE = 151 am__fastdepCXX_FALSE = # 152 am__fastdepCXX_TRUE = 153 am__include = include 154 am__leading_dot = . 155 am__quote = 156 am__tar = ${AMTAR} chof - "$$tardir" 157 am__untar = ${AMTAR} xf - 158 bindir = ${exec_prefix}/bin 159 build = x86_64-unknown-linux-gnu 160 build_alias = 161 build_cpu = x86_64 162 build_os = linux-gnu 163 build_vendor = unknown 164 datadir = ${prefix}/share 165 exec_prefix = ${prefix} 166 host = x86_64-unknown-linux-gnu 167 host_alias = 168 host_cpu = x86_64 169 host_os = linux-gnu 170 host_vendor = unknown 171 includedir = ${prefix}/include 172 infodir = ${prefix}/info 173 install_sh = /home/desonia/panstarrs/psLib/install-sh 174 libdir = ${exec_prefix}/lib 175 libexecdir = ${exec_prefix}/libexec 176 localstatedir = ${prefix}/var 177 mandir = ${prefix}/man 178 mkdir_p = mkdir -p -- 179 oldincludedir = /usr/include 180 prefix = /home/desonia/panstarrs/psLib 181 program_transform_name = s,x,x, 182 sbindir = ${exec_prefix}/sbin 183 sharedstatedir = ${prefix}/com 184 sysconfdir = ${prefix}/etc 185 target_alias = 186 187 #Makefile for dataManip functions of psLib 188 # 189 INCLUDES = \ 190 -I$(top_srcdir)/src/astronomy \ 191 -I$(top_srcdir)/src/collections \ 192 -I$(top_srcdir)/src/fileUtils \ 193 -I$(top_srcdir)/src/image \ 194 -I$(top_srcdir)/src/sysUtils \ 195 $(all_includes) 196 197 noinst_LTLIBRARIES = libpslibdataManip.la 198 libpslibdataManip_la_SOURCES = \ 199 psStats.c \ 200 psFunctions.c \ 201 psMatrix.c \ 202 psMatrixVectorArithmetic.c \ 203 psVectorFFT.c \ 204 psMinimize.c \ 205 psRandom.c 206 207 BUILT_SOURCES = psDataManipErrors.h 208 EXTRA_DIST = psDataManipErrors.dat psDataManipErrors.h 209 pslibincludedir = $(includedir)/pslib 210 pslibinclude_HEADERS = \ 211 psConstants.h \ 212 psStats.h \ 213 psFunctions.h \ 214 psMatrix.h \ 215 psMatrixVectorArithmetic.h \ 216 psVectorFFT.h \ 217 psMinimize.h \ 218 psRandom.h 219 220 all: $(BUILT_SOURCES) 221 $(MAKE) $(AM_MAKEFLAGS) all-am 222 223 .SUFFIXES: 224 .SUFFIXES: .c .lo .o .obj 225 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 226 @for dep in $?; do \ 227 case '$(am__configure_deps)' in \ 228 *$$dep*) \ 229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 230 && exit 0; \ 231 exit 1;; \ 232 esac; \ 233 done; \ 234 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/dataManip/Makefile'; \ 235 cd $(top_srcdir) && \ 236 $(AUTOMAKE) --gnu src/dataManip/Makefile 237 .PRECIOUS: Makefile 238 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 239 @case '$?' in \ 240 *config.status*) \ 241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 242 *) \ 243 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 244 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 245 esac; 246 247 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 249 250 $(top_srcdir)/configure: $(am__configure_deps) 251 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 252 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 254 255 clean-noinstLTLIBRARIES: 256 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 257 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 258 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 259 test "$$dir" != "$$p" || dir=.; \ 260 echo "rm -f \"$${dir}/so_locations\""; \ 261 rm -f "$${dir}/so_locations"; \ 262 done 263 libpslibdataManip.la: $(libpslibdataManip_la_OBJECTS) $(libpslibdataManip_la_DEPENDENCIES) 264 $(LINK) $(libpslibdataManip_la_LDFLAGS) $(libpslibdataManip_la_OBJECTS) $(libpslibdataManip_la_LIBADD) $(LIBS) 265 266 mostlyclean-compile: 267 -rm -f *.$(OBJEXT) 268 269 distclean-compile: 270 -rm -f *.tab.c 271 272 include ./$(DEPDIR)/psFunctions.Plo 273 include ./$(DEPDIR)/psMatrix.Plo 274 include ./$(DEPDIR)/psMatrixVectorArithmetic.Plo 275 include ./$(DEPDIR)/psMinimize.Plo 276 include ./$(DEPDIR)/psRandom.Plo 277 include ./$(DEPDIR)/psStats.Plo 278 include ./$(DEPDIR)/psVectorFFT.Plo 279 280 .c.o: 281 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 282 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 283 # source='$<' object='$@' libtool=no \ 284 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 285 # $(COMPILE) -c $< 286 287 .c.obj: 288 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 289 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 290 # source='$<' object='$@' libtool=no \ 291 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 292 # $(COMPILE) -c `$(CYGPATH_W) '$<'` 293 294 .c.lo: 295 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 296 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 297 # source='$<' object='$@' libtool=yes \ 298 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 299 # $(LTCOMPILE) -c -o $@ $< 300 301 mostlyclean-libtool: 302 -rm -f *.lo 303 304 clean-libtool: 305 -rm -rf .libs _libs 306 307 distclean-libtool: 308 -rm -f libtool 309 uninstall-info-am: 310 install-pslibincludeHEADERS: $(pslibinclude_HEADERS) 311 @$(NORMAL_INSTALL) 312 test -z "$(pslibincludedir)" || $(mkdir_p) "$(DESTDIR)$(pslibincludedir)" 313 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 314 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 315 f=$(am__strip_dir) \ 316 echo " $(pslibincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 317 $(pslibincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pslibincludedir)/$$f"; \ 318 done 319 320 uninstall-pslibincludeHEADERS: 321 @$(NORMAL_UNINSTALL) 322 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 323 f=$(am__strip_dir) \ 324 echo " rm -f '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 325 rm -f "$(DESTDIR)$(pslibincludedir)/$$f"; \ 326 done 327 328 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 329 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 330 unique=`for i in $$list; do \ 331 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 332 done | \ 333 $(AWK) ' { files[$$0] = 1; } \ 334 END { for (i in files) print i; }'`; \ 335 mkid -fID $$unique 336 tags: TAGS 337 338 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 339 $(TAGS_FILES) $(LISP) 340 tags=; \ 341 here=`pwd`; \ 342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 343 unique=`for i in $$list; do \ 344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 345 done | \ 346 $(AWK) ' { files[$$0] = 1; } \ 347 END { for (i in files) print i; }'`; \ 348 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 349 test -n "$$unique" || unique=$$empty_fix; \ 350 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 351 $$tags $$unique; \ 352 fi 353 ctags: CTAGS 354 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 355 $(TAGS_FILES) $(LISP) 356 tags=; \ 357 here=`pwd`; \ 358 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 359 unique=`for i in $$list; do \ 360 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 361 done | \ 362 $(AWK) ' { files[$$0] = 1; } \ 363 END { for (i in files) print i; }'`; \ 364 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 365 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 366 $$tags $$unique 367 368 GTAGS: 369 here=`$(am__cd) $(top_builddir) && pwd` \ 370 && cd $(top_srcdir) \ 371 && gtags -i $(GTAGS_ARGS) $$here 372 373 distclean-tags: 374 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 375 376 distdir: $(DISTFILES) 377 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 378 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 379 list='$(DISTFILES)'; for file in $$list; do \ 380 case $$file in \ 381 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 382 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 383 esac; \ 384 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 385 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 386 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 387 dir="/$$dir"; \ 388 $(mkdir_p) "$(distdir)$$dir"; \ 389 else \ 390 dir=''; \ 391 fi; \ 392 if test -d $$d/$$file; then \ 393 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 394 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 395 fi; \ 396 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 397 else \ 398 test -f $(distdir)/$$file \ 399 || cp -p $$d/$$file $(distdir)/$$file \ 400 || exit 1; \ 401 fi; \ 402 done 403 check-am: all-am 404 check: $(BUILT_SOURCES) 405 $(MAKE) $(AM_MAKEFLAGS) check-am 406 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 407 installdirs: 408 for dir in "$(DESTDIR)$(pslibincludedir)"; do \ 409 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 410 done 411 install: $(BUILT_SOURCES) 412 $(MAKE) $(AM_MAKEFLAGS) install-am 413 install-exec: install-exec-am 414 install-data: install-data-am 415 uninstall: uninstall-am 416 417 install-am: all-am 418 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 419 420 installcheck: installcheck-am 421 install-strip: 422 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 423 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 424 `test -z '$(STRIP)' || \ 425 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 426 mostlyclean-generic: 427 428 clean-generic: 429 430 distclean-generic: 431 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 432 433 maintainer-clean-generic: 434 @echo "This command is intended for maintainers to use" 435 @echo "it deletes files that may require special tools to rebuild." 436 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 437 clean: clean-am 438 439 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 440 mostlyclean-am 441 442 distclean: distclean-am 443 -rm -rf ./$(DEPDIR) 444 -rm -f Makefile 445 distclean-am: clean-am distclean-compile distclean-generic \ 446 distclean-libtool distclean-tags 447 448 dvi: dvi-am 449 450 dvi-am: 451 452 html: html-am 453 454 info: info-am 455 456 info-am: 457 458 install-data-am: install-pslibincludeHEADERS 459 460 install-exec-am: 461 462 install-info: install-info-am 463 464 install-man: 465 466 installcheck-am: 467 468 maintainer-clean: maintainer-clean-am 469 -rm -rf ./$(DEPDIR) 470 -rm -f Makefile 471 maintainer-clean-am: distclean-am maintainer-clean-generic 472 473 mostlyclean: mostlyclean-am 474 475 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 476 mostlyclean-libtool 477 478 pdf: pdf-am 479 480 pdf-am: 481 482 ps: ps-am 483 484 ps-am: 485 486 uninstall-am: uninstall-info-am uninstall-pslibincludeHEADERS 487 488 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 489 clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 490 distclean-compile distclean-generic distclean-libtool \ 491 distclean-tags distdir dvi dvi-am html html-am info info-am \ 492 install install-am install-data install-data-am install-exec \ 493 install-exec-am install-info install-info-am install-man \ 494 install-pslibincludeHEADERS install-strip installcheck \ 495 installcheck-am installdirs maintainer-clean \ 496 maintainer-clean-generic mostlyclean mostlyclean-compile \ 497 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 498 tags uninstall uninstall-am uninstall-info-am \ 499 uninstall-pslibincludeHEADERS 500 22 501 23 502 psDataManipErrors.h: psDataManipErrors.dat 24 perl ../parseErrorCodes.pl --data=$? $@ 25 26 # force the creation of a psImage.i for psImage.o (to expand macros). 27 psMatrixVectorArithmetic.o: psMatrixVectorArithmetic.i 28 29 # Rule to make static library 30 31 libpslib.a: $(OBJS) 32 # The ar option -r is to add/replace object and -s is to create 33 # a symbol table in the archive 34 $(AR) rcs ../$@ $(OBJS) 35 36 # Define PHONY target "install" which will install necessary files 37 # XXX: Do the psConstants.h install. 38 install: $(TARGET_STATIC) 39 install $(HEADERS) $(includedir) 40 install psConstants.h $(includedir) 41 42 43 # Define PHONY target "distclean" which will cleanup the distribution 44 distclean: clean 45 $(RM) ../$(TARGET_STATIC) 46 47 # Define PHONY target "clean" which will cleanup the development area 48 clean: 49 @echo " Deleting intermediate files for 'sysUtils'" 50 $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i) 51 52 cleandep: 53 $(RM) $(OBJS:.o=.d) 54 55 %.lint: %.c 56 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 57 58 %.i: %.c 59 $(CC) -E $(CFLAGS) -o $@ $< 60 61 makedir/%.o: %.c 62 $(CC) -c $(CFLAGS) -o $@ $< 63 64 makedir/%.d: %.c 65 $(CC) -MM $(CFLAGS) $< > $@.tmp 66 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@ 67 $(RM) -f $@.tmp 68 69 include $(OBJS:.o=.d) 503 perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@ 504 # Tell versions [3.59,3.63) of GNU make to not export all variables. 505 # Otherwise a system limit (for SysV at least) may be exceeded. 506 .NOEXPORT: -
trunk/psLib/src/dataManip/psDataManipErrors.h
r3009 r3115 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 1$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 1-15 01:15:09$9 * @version $Revision: 1.12 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:10 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ 28 29 #define PS_ERRORNAME_DOMAIN "psLib.dataManip."30 28 31 29 //~Start #define PS_ERRORTEXT_$1 "$2" -
trunk/psLib/src/dataManip/psFunctions.c
r3097 r3115 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.8 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 1-26 20:47:41$9 * @version $Revision: 1.86 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:10 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1202 1202 PS_VECTOR_CHECK_TYPE(x, PS_TYPE_F32, NULL); 1203 1203 1204 psVector *tmp ;1205 psVector *myX ;1204 psVector *tmp = NULL; 1205 psVector *myX = NULL; 1206 1206 psS32 i; 1207 1207 … … 1244 1244 PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F32, NULL); 1245 1245 1246 psVector *tmp ;1247 psVector *myX ;1248 psVector *myY ;1246 psVector *tmp = NULL; 1247 psVector *myX = NULL; 1248 psVector *myY = NULL; 1249 1249 psS32 i; 1250 1250 psS32 vecLen=x->n; … … 1302 1302 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F32, NULL); 1303 1303 1304 psVector *tmp ;1305 psVector *myX ;1306 psVector *myY ;1307 psVector *myZ ;1304 psVector *tmp = NULL; 1305 psVector *myX = NULL; 1306 psVector *myY = NULL; 1307 psVector *myZ = NULL; 1308 1308 psS32 i; 1309 1309 psS32 vecLen=x->n; … … 1370 1370 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F32, NULL); 1371 1371 1372 psVector *tmp ;1373 psVector *myW ;1374 psVector *myX ;1375 psVector *myY ;1376 psVector *myZ ;1372 psVector *tmp = NULL; 1373 psVector *myW = NULL; 1374 psVector *myX = NULL; 1375 psVector *myY = NULL; 1376 psVector *myZ = NULL; 1377 1377 psS32 i; 1378 1378 psS32 vecLen=x->n; … … 1603 1603 PS_VECTOR_CHECK_TYPE(x, PS_TYPE_F64, NULL); 1604 1604 1605 psVector *tmp ;1606 psVector *myX ;1605 psVector *tmp = NULL; 1606 psVector *myX = NULL; 1607 1607 psS32 i; 1608 1608 … … 1648 1648 PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F64, NULL); 1649 1649 1650 psVector *tmp ;1651 psVector *myX ;1652 psVector *myY ;1650 psVector *tmp = NULL; 1651 psVector *myX = NULL; 1652 psVector *myY = NULL; 1653 1653 psS32 i; 1654 1654 psS32 vecLen=x->n; … … 1710 1710 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F64, NULL); 1711 1711 1712 psVector *tmp ;1713 psVector *myX ;1714 psVector *myY ;1715 psVector *myZ ;1712 psVector *tmp = NULL; 1713 psVector *myX = NULL; 1714 psVector *myY = NULL; 1715 psVector *myZ = NULL; 1716 1716 psS32 i; 1717 1717 psS32 vecLen=x->n; … … 1782 1782 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F64, NULL); 1783 1783 1784 psVector *tmp ;1785 psVector *myW ;1786 psVector *myX ;1787 psVector *myY ;1788 psVector *myZ ;1784 psVector *tmp = NULL; 1785 psVector *myW = NULL; 1786 psVector *myX = NULL; 1787 psVector *myY = NULL; 1788 psVector *myZ = NULL; 1789 1789 psS32 i; 1790 1790 psS32 vecLen=x->n; -
trunk/psLib/src/dataManip/psFunctions.h
r3096 r3115 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 1-26 20:41:04$14 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:10 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 429 429 430 430 psF32 p_psNRSpline1DEval(psSpline1D *spline, 431 const psVector* restrictx,432 const psVector* restricty,431 const psVector* x, 432 const psVector* y, 433 433 psF32 X); 434 434 -
trunk/psLib/src/dataManip/psMinimize.c
r3097 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.10 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-26 20:47:41$11 * @version $Revision: 1.104 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 96 96 XXX: do an F64 version? 97 97 *****************************************************************************/ 98 psF32 *CalculateSecondDerivs(const psVector* restrictx, ///< Ordinates (or NULL to just use the indices)99 const psVector* restricty) ///< Coordinates98 psF32 *CalculateSecondDerivs(const psVector* x, ///< Ordinates (or NULL to just use the indices) 99 const psVector* y) ///< Coordinates 100 100 { 101 101 psTrace(".psLib.dataManip.CalculateSecondDerivs", 4, … … 167 167 /* 168 168 psF32 p_psNRSpline1DEval(psSpline1D *spline, 169 const psVector* restrictx,170 const psVector* restricty,169 const psVector* x, 170 const psVector* y, 171 171 psF32 X) 172 172 { … … 250 250 XXX: Assumes mySpline->knots is psF32. Must add psU32 and psF64. 251 251 *****************************************************************************/ 252 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline, ///< The spline which will be generated.253 const psVector* restrictx, ///< Ordinates (or NULL to just use the indices)254 const psVector* restricty, ///< Coordinates255 const psVector* restrictyErr) ///< Errors in coordinates, or NULL252 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline, ///< The spline which will be generated. 253 const psVector* x, ///< Ordinates (or NULL to just use the indices) 254 const psVector* y, ///< Coordinates 255 const psVector* yErr) ///< Errors in coordinates, or NULL 256 256 { 257 257 PS_VECTOR_CHECK_NULL(y, NULL); … … 833 833 *****************************************************************************/ 834 834 psPolynomial1D *VectorFitPolynomial1DCheby(psPolynomial1D* myPoly, 835 const psVector* restrictx,836 const psVector* restricty,837 const psVector* restrictyErr)835 const psVector* x, 836 const psVector* y, 837 const psVector* yErr) 838 838 { 839 839 psS32 j; … … 911 911 *****************************************************************************/ 912 912 psPolynomial1D* VectorFitPolynomial1DOrd(psPolynomial1D* myPoly, 913 const psVector* restrictx,914 const psVector* restricty,915 const psVector* restrictyErr)913 const psVector* x, 914 const psVector* y, 915 const psVector* yErr) 916 916 { 917 917 psS32 polyOrder = myPoly->n; … … 1018 1018 *****************************************************************************/ 1019 1019 psPolynomial1D* psVectorFitPolynomial1D(psPolynomial1D* myPoly, 1020 const psVector* restrictx,1021 const psVector* restricty,1022 const psVector* restrictyErr)1020 const psVector* x, 1021 const psVector* y, 1022 const psVector* yErr) 1023 1023 { 1024 1024 PS_POLY_CHECK_NULL(myPoly, NULL); -
trunk/psLib/src/dataManip/psMinimize.h
r2788 r3115 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $11 * @date $Date: 200 4-12-22 05:09:32$10 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-02-03 00:54:10 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 65 65 psPolynomial1D* psVectorFitPolynomial1D( 66 66 psPolynomial1D* myPoly, ///< Polynomial to fit 67 const psVector* restrict x,///< Ordinates (or NULL to just use the indices)68 const psVector* restrict y,///< Coordinates69 const psVector* restrict yErr///< Errors in coordinates, or NULL67 const psVector* x, ///< Ordinates (or NULL to just use the indices) 68 const psVector* y, ///< Coordinates 69 const psVector* yErr ///< Errors in coordinates, or NULL 70 70 ); 71 71 72 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline, ///< The spline which will be generated.73 const psVector* restrictx, ///< Ordinates (or NULL to just use the indices)74 const psVector* restricty, ///< Coordinates75 const psVector* restrictyErr ///< Errors in coordinates, or NULL72 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline, ///< The spline which will be generated. 73 const psVector* x, ///< Ordinates (or NULL to just use the indices) 74 const psVector* y, ///< Coordinates 75 const psVector* yErr ///< Errors in coordinates, or NULL 76 76 ); 77 77 -
trunk/psLib/src/dataManip/psStats.c
r3095 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.11 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-26 20:24:17$11 * @version $Revision: 1.112 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 145 145 this routine sets stats->sampleMean to NAN. 146 146 *****************************************************************************/ 147 psS32 p_psVectorSampleMean(const psVector* restrictmyVector,148 const psVector* restricterrors,149 const psVector* restrictmaskVector,147 psS32 p_psVectorSampleMean(const psVector* myVector, 148 const psVector* errors, 149 const psVector* maskVector, 150 150 psU32 maskVal, 151 151 psStats* stats) … … 283 283 this routine sets stats->max to NAN. 284 284 *****************************************************************************/ 285 psS32 p_psVectorMax(const psVector* restrictmyVector,286 const psVector* restrictmaskVector,285 psS32 p_psVectorMax(const psVector* myVector, 286 const psVector* maskVector, 287 287 psU32 maskVal, 288 288 psStats* stats) … … 348 348 this routine sets stats->min to NAN. 349 349 *****************************************************************************/ 350 psS32 p_psVectorMin(const psVector* restrictmyVector,351 const psVector* restrictmaskVector,350 psS32 p_psVectorMin(const psVector* myVector, 351 const psVector* maskVector, 352 352 psU32 maskVal, 353 353 psStats* stats) … … 414 414 "false". 415 415 *****************************************************************************/ 416 bool p_psVectorCheckNonEmpty(const psVector* restrictmyVector,417 const psVector* restrictmaskVector,416 bool p_psVectorCheckNonEmpty(const psVector* myVector, 417 const psVector* maskVector, 418 418 psU32 maskVal, 419 419 psStats* stats) … … 462 462 range, if specified. 463 463 *****************************************************************************/ 464 psS32 p_psVectorNValues(const psVector* restrictmyVector,465 const psVector* restrictmaskVector,464 psS32 p_psVectorNValues(const psVector* myVector, 465 const psVector* maskVector, 466 466 psU32 maskVal, 467 467 psStats* stats) … … 511 511 XXX: Use static vectors for sort arrays. 512 512 *****************************************************************************/ 513 bool p_psVectorSampleMedian(const psVector* restrictmyVector,514 const psVector* restrictmaskVector,513 bool p_psVectorSampleMedian(const psVector* myVector, 514 const psVector* maskVector, 515 515 psU32 maskVal, 516 516 psStats* stats) … … 701 701 NULL 702 702 *****************************************************************************/ 703 bool p_psVectorSampleQuartiles(const psVector* restrictmyVector,704 const psVector* restrictmaskVector,703 bool p_psVectorSampleQuartiles(const psVector* myVector, 704 const psVector* maskVector, 705 705 psU32 maskVal, 706 706 psStats* stats) … … 787 787 788 788 *****************************************************************************/ 789 void p_psVectorSampleStdevOLD(const psVector* restrictmyVector,790 const psVector* restricterrors,791 const psVector* restrictmaskVector,789 void p_psVectorSampleStdevOLD(const psVector* myVector, 790 const psVector* errors, 791 const psVector* maskVector, 792 792 psU32 maskVal, 793 793 psStats* stats) … … 881 881 882 882 *****************************************************************************/ 883 void p_psVectorSampleStdev(const psVector* restrictmyVector,884 const psVector* restricterrors,885 const psVector* restrictmaskVector,883 void p_psVectorSampleStdev(const psVector* myVector, 884 const psVector* errors, 885 const psVector* maskVector, 886 886 psU32 maskVal, 887 887 psStats* stats) … … 896 896 // psF32 sum1; 897 897 // psF32 sum2; 898 psF32 errorDivisor ;898 psF32 errorDivisor = 0.0f; 899 899 900 900 // This procedure requires the mean. If it has not been already … … 1003 1003 -2: warning 1004 1004 *****************************************************************************/ 1005 psS32 p_psVectorClippedStats(const psVector* restrictmyVector,1006 const psVector* restricterrors,1007 const psVector* restrictmaskVector,1005 psS32 p_psVectorClippedStats(const psVector* myVector, 1006 const psVector* errors, 1007 const psVector* maskVector, 1008 1008 psU32 maskVal, 1009 1009 psStats* stats) … … 1331 1331 psPolynomial1D *myPoly = psPolynomial1DAlloc(2, PS_POLYNOMIAL_ORD); 1332 1332 1333 psF32 tmpFloat ;1333 psF32 tmpFloat = 0.0f; 1334 1334 1335 1335 if ((binNum > 0) && (binNum < (yVec->n - 2))) { … … 1425 1425 XXX: Check for errors in psLib routines that we call. 1426 1426 *****************************************************************************/ 1427 psS32 p_psVectorRobustStats(const psVector* restrictmyVector,1428 const psVector* restricterrors,1429 const psVector* restrictmaskVector,1427 psS32 p_psVectorRobustStats(const psVector* myVector, 1428 const psVector* errors, 1429 const psVector* maskVector, 1430 1430 psU32 maskVal, 1431 1431 psStats* stats) … … 1820 1820 The histogram structure 1821 1821 *****************************************************************************/ 1822 psHistogram* psHistogramAllocGeneric(const psVector* restrictbounds)1822 psHistogram* psHistogramAllocGeneric(const psVector* bounds) 1823 1823 { 1824 1824 PS_VECTOR_CHECK_NULL(bounds, NULL); … … 1890 1890 psF32 boxcarRight = boxcarCenter + (boxcarWidth / 2.0); 1891 1891 psS32 bin; 1892 psS32 boxcarLeftBinNum ;1893 psS32 boxcarRightBinNum ;1892 psS32 boxcarLeftBinNum = 0; 1893 psS32 boxcarRightBinNum = 0; 1894 1894 1895 1895 // Determine the left endpoint of the boxcar for the PDF. … … 1961 1961 *****************************************************************************/ 1962 1962 psHistogram* psVectorHistogram(psHistogram* out, 1963 const psVector* restrictin,1964 const psVector* restricterrors,1965 const psVector* restrictmask,1963 const psVector* in, 1964 const psVector* errors, 1965 const psVector* mask, 1966 1966 psU32 maskVal) 1967 1967 { -
trunk/psLib/src/dataManip/psStats.h
r2788 r3115 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $13 * @date $Date: 200 4-12-22 05:09:32$12 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-02-03 00:54:10 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 143 143 */ 144 144 psHistogram* psHistogramAllocGeneric( 145 const psVector* restrict bounds///< Bounds for the bins145 const psVector* bounds ///< Bounds for the bins 146 146 ); 147 147 … … 156 156 psHistogram* psVectorHistogram( 157 157 psHistogram* out, ///< Histogram data 158 const psVector* restrict in,///< Vector to analyse159 const psVector* restrict errors,///< Errors160 const psVector* restrict mask,///< Mask dat for input vector161 psU32 maskVal ///< Mask value158 const psVector* in, ///< Vector to analyse 159 const psVector* errors, ///< Errors 160 const psVector* mask, ///< Mask dat for input vector 161 psU32 maskVal ///< Mask value 162 162 ); 163 163 -
trunk/psLib/src/fileUtils/Makefile
r2962 r3115 1 ifndef prefix 2 export prefix=$(shell cd ../..;pwd) 3 endif 4 5 TARGET_STATIC = libpslib.a 6 include ../Makefile.Globals 7 CFLAGS := $(CFLAGS_RELOC) -I. -I../sysUtils -I../collections -I../dataManip \ 8 -I.. -I../image -I../astronomy -DSER7_FILE="\"$(SER7_FILE)\"" -DTAIUTC_FILE="\"$(TAIUTC_FILE)\"" 9 10 SRC_OBJS = psLookupTable.o \ 11 psFits.o 12 13 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 14 15 HEADERS = $(SRC_OBJS:.o=.h) 16 17 all: $(TARGET_STATIC) 1 # Makefile.in generated by automake 1.9.1 from Makefile.am. 2 # src/fileUtils/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 18 SOURCES = $(libpslibfileUtils_la_SOURCES) 19 20 srcdir = . 21 top_srcdir = ../.. 22 23 pkgdatadir = $(datadir)/pslib 24 pkglibdir = $(libdir)/pslib 25 pkgincludedir = $(includedir)/pslib 26 top_builddir = ../.. 27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 28 INSTALL = /usr/bin/install -c 29 install_sh_DATA = $(install_sh) -c -m 644 30 install_sh_PROGRAM = $(install_sh) -c 31 install_sh_SCRIPT = $(install_sh) -c 32 INSTALL_HEADER = $(INSTALL_DATA) 33 transform = $(program_transform_name) 34 NORMAL_INSTALL = : 35 PRE_INSTALL = : 36 POST_INSTALL = : 37 NORMAL_UNINSTALL = : 38 PRE_UNINSTALL = : 39 POST_UNINSTALL = : 40 build_triplet = x86_64-unknown-linux-gnu 41 host_triplet = x86_64-unknown-linux-gnu 42 subdir = src/fileUtils 43 DIST_COMMON = $(pslibinclude_HEADERS) $(srcdir)/Makefile.am \ 44 $(srcdir)/Makefile.in 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 46 am__aclocal_m4_deps = $(top_srcdir)/configure.in 47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 48 $(ACLOCAL_M4) 49 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 50 CONFIG_HEADER = $(top_builddir)/src/config.h 51 CONFIG_CLEAN_FILES = 52 LTLIBRARIES = $(noinst_LTLIBRARIES) 53 libpslibfileUtils_la_LIBADD = 54 am_libpslibfileUtils_la_OBJECTS = psLookupTable.lo psFits.lo 55 libpslibfileUtils_la_OBJECTS = $(am_libpslibfileUtils_la_OBJECTS) 56 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 57 depcomp = $(SHELL) $(top_srcdir)/depcomp 58 am__depfiles_maybe = depfiles 59 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 60 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 61 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ 62 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 63 $(AM_CFLAGS) $(CFLAGS) 64 CCLD = $(CC) 65 LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 66 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 67 SOURCES = $(libpslibfileUtils_la_SOURCES) 68 DIST_SOURCES = $(libpslibfileUtils_la_SOURCES) 69 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 70 am__vpath_adj = case $$p in \ 71 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 72 *) f=$$p;; \ 73 esac; 74 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 75 am__installdirs = "$(DESTDIR)$(pslibincludedir)" 76 pslibincludeHEADERS_INSTALL = $(INSTALL_HEADER) 77 HEADERS = $(pslibinclude_HEADERS) 78 ETAGS = etags 79 CTAGS = ctags 80 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 81 ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9 82 AMDEP_FALSE = # 83 AMDEP_TRUE = 84 AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar 85 AR = ar 86 AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf 87 AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader 88 AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9 89 AWK = gawk 90 CC = gcc 91 CCDEPMODE = depmode=gcc3 92 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/usr/include -I/usr/include/libxml2 93 CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config 94 CPP = gcc -E 95 CPPFLAGS = 96 CXX = g++ 97 CXXCPP = g++ -E 98 CXXDEPMODE = depmode=gcc3 99 CXXFLAGS = -g -O2 100 CYGPATH_W = echo 101 DEFS = -DHAVE_CONFIG_H 102 DEPDIR = .deps 103 ECHO = echo 104 ECHO_C = 105 ECHO_N = -n 106 ECHO_T = 107 EGREP = grep -E 108 EXEEXT = 109 F77 = g77 110 FFLAGS = -fno-second-underscore -O -fno-f2c 111 GSL_CONFIG = /usr/bin/gsl-config 112 INSTALL_DATA = ${INSTALL} -m 644 113 INSTALL_PROGRAM = ${INSTALL} 114 INSTALL_SCRIPT = ${INSTALL} 115 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 116 LDFLAGS = 117 LIBOBJS = 118 LIBS = 119 LIBTOOL = $(SHELL) $(top_builddir)/libtool 120 LN_S = ln -s 121 LTLIBOBJS = 122 MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo 123 OBJEXT = o 124 PACKAGE = pslib 125 PACKAGE_BUGREPORT = 126 PACKAGE_NAME = 127 PACKAGE_STRING = 128 PACKAGE_TARNAME = 129 PACKAGE_VERSION = 130 PATH_SEPARATOR = : 131 PERL = /usr/bin/perl 132 PSLIB_CFLAGS = -I${prefix}/include 133 PSLIB_LIBS = -L${exec_prefix}/lib -lpslib -lcfitsio -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm 134 RANLIB = ranlib 135 SET_MAKE = 136 SHELL = /bin/sh 137 STRIP = strip 138 SWIG = /usr/bin/swig 139 VERSION = 1.5 140 XML_CONFIG = /usr/bin/xml2-config 141 ac_ct_AR = ar 142 ac_ct_CC = gcc 143 ac_ct_CXX = g++ 144 ac_ct_F77 = g77 145 ac_ct_RANLIB = ranlib 146 ac_ct_STRIP = strip 147 am__fastdepCC_FALSE = # 148 am__fastdepCC_TRUE = 149 am__fastdepCXX_FALSE = # 150 am__fastdepCXX_TRUE = 151 am__include = include 152 am__leading_dot = . 153 am__quote = 154 am__tar = ${AMTAR} chof - "$$tardir" 155 am__untar = ${AMTAR} xf - 156 bindir = ${exec_prefix}/bin 157 build = x86_64-unknown-linux-gnu 158 build_alias = 159 build_cpu = x86_64 160 build_os = linux-gnu 161 build_vendor = unknown 162 datadir = ${prefix}/share 163 exec_prefix = ${prefix} 164 host = x86_64-unknown-linux-gnu 165 host_alias = 166 host_cpu = x86_64 167 host_os = linux-gnu 168 host_vendor = unknown 169 includedir = ${prefix}/include 170 infodir = ${prefix}/info 171 install_sh = /home/desonia/panstarrs/psLib/install-sh 172 libdir = ${exec_prefix}/lib 173 libexecdir = ${exec_prefix}/libexec 174 localstatedir = ${prefix}/var 175 mandir = ${prefix}/man 176 mkdir_p = mkdir -p -- 177 oldincludedir = /usr/include 178 prefix = /home/desonia/panstarrs/psLib 179 program_transform_name = s,x,x, 180 sbindir = ${exec_prefix}/sbin 181 sharedstatedir = ${prefix}/com 182 sysconfdir = ${prefix}/etc 183 target_alias = 184 185 #Makefile for fileUtils functions of psLib 186 # 187 INCLUDES = \ 188 -I$(top_srcdir)/src/astronomy \ 189 -I$(top_srcdir)/src/collections \ 190 -I$(top_srcdir)/src/dataManip \ 191 -I$(top_srcdir)/src/image \ 192 -I$(top_srcdir)/src/sysUtils \ 193 $(all_includes) 194 195 noinst_LTLIBRARIES = libpslibfileUtils.la 196 libpslibfileUtils_la_SOURCES = \ 197 psLookupTable.c \ 198 psFits.c 199 200 BUILT_SOURCES = psFileUtilsErrors.h 201 EXTRA_DIST = psFileUtilsErrors.dat psFileUtilsErrors.h 202 pslibincludedir = $(includedir)/pslib 203 pslibinclude_HEADERS = \ 204 psLookupTable.h \ 205 psFits.h 206 207 all: $(BUILT_SOURCES) 208 $(MAKE) $(AM_MAKEFLAGS) all-am 209 210 .SUFFIXES: 211 .SUFFIXES: .c .lo .o .obj 212 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 213 @for dep in $?; do \ 214 case '$(am__configure_deps)' in \ 215 *$$dep*) \ 216 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 217 && exit 0; \ 218 exit 1;; \ 219 esac; \ 220 done; \ 221 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/fileUtils/Makefile'; \ 222 cd $(top_srcdir) && \ 223 $(AUTOMAKE) --gnu src/fileUtils/Makefile 224 .PRECIOUS: Makefile 225 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 226 @case '$?' in \ 227 *config.status*) \ 228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 229 *) \ 230 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 231 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 232 esac; 233 234 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 235 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 236 237 $(top_srcdir)/configure: $(am__configure_deps) 238 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 239 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 241 242 clean-noinstLTLIBRARIES: 243 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 244 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 245 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 246 test "$$dir" != "$$p" || dir=.; \ 247 echo "rm -f \"$${dir}/so_locations\""; \ 248 rm -f "$${dir}/so_locations"; \ 249 done 250 libpslibfileUtils.la: $(libpslibfileUtils_la_OBJECTS) $(libpslibfileUtils_la_DEPENDENCIES) 251 $(LINK) $(libpslibfileUtils_la_LDFLAGS) $(libpslibfileUtils_la_OBJECTS) $(libpslibfileUtils_la_LIBADD) $(LIBS) 252 253 mostlyclean-compile: 254 -rm -f *.$(OBJEXT) 255 256 distclean-compile: 257 -rm -f *.tab.c 258 259 include ./$(DEPDIR)/psFits.Plo 260 include ./$(DEPDIR)/psLookupTable.Plo 261 262 .c.o: 263 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 264 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 265 # source='$<' object='$@' libtool=no \ 266 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 267 # $(COMPILE) -c $< 268 269 .c.obj: 270 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 271 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 272 # source='$<' object='$@' libtool=no \ 273 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 274 # $(COMPILE) -c `$(CYGPATH_W) '$<'` 275 276 .c.lo: 277 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 278 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 279 # source='$<' object='$@' libtool=yes \ 280 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 281 # $(LTCOMPILE) -c -o $@ $< 282 283 mostlyclean-libtool: 284 -rm -f *.lo 285 286 clean-libtool: 287 -rm -rf .libs _libs 288 289 distclean-libtool: 290 -rm -f libtool 291 uninstall-info-am: 292 install-pslibincludeHEADERS: $(pslibinclude_HEADERS) 293 @$(NORMAL_INSTALL) 294 test -z "$(pslibincludedir)" || $(mkdir_p) "$(DESTDIR)$(pslibincludedir)" 295 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 296 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 297 f=$(am__strip_dir) \ 298 echo " $(pslibincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 299 $(pslibincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pslibincludedir)/$$f"; \ 300 done 301 302 uninstall-pslibincludeHEADERS: 303 @$(NORMAL_UNINSTALL) 304 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 305 f=$(am__strip_dir) \ 306 echo " rm -f '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 307 rm -f "$(DESTDIR)$(pslibincludedir)/$$f"; \ 308 done 309 310 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 311 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 312 unique=`for i in $$list; do \ 313 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 314 done | \ 315 $(AWK) ' { files[$$0] = 1; } \ 316 END { for (i in files) print i; }'`; \ 317 mkid -fID $$unique 318 tags: TAGS 319 320 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 321 $(TAGS_FILES) $(LISP) 322 tags=; \ 323 here=`pwd`; \ 324 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 325 unique=`for i in $$list; do \ 326 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 327 done | \ 328 $(AWK) ' { files[$$0] = 1; } \ 329 END { for (i in files) print i; }'`; \ 330 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 331 test -n "$$unique" || unique=$$empty_fix; \ 332 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 333 $$tags $$unique; \ 334 fi 335 ctags: CTAGS 336 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 337 $(TAGS_FILES) $(LISP) 338 tags=; \ 339 here=`pwd`; \ 340 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 341 unique=`for i in $$list; do \ 342 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 343 done | \ 344 $(AWK) ' { files[$$0] = 1; } \ 345 END { for (i in files) print i; }'`; \ 346 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 347 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 348 $$tags $$unique 349 350 GTAGS: 351 here=`$(am__cd) $(top_builddir) && pwd` \ 352 && cd $(top_srcdir) \ 353 && gtags -i $(GTAGS_ARGS) $$here 354 355 distclean-tags: 356 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 357 358 distdir: $(DISTFILES) 359 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 360 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 361 list='$(DISTFILES)'; for file in $$list; do \ 362 case $$file in \ 363 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 364 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 365 esac; \ 366 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 367 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 368 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 369 dir="/$$dir"; \ 370 $(mkdir_p) "$(distdir)$$dir"; \ 371 else \ 372 dir=''; \ 373 fi; \ 374 if test -d $$d/$$file; then \ 375 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 376 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 377 fi; \ 378 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 379 else \ 380 test -f $(distdir)/$$file \ 381 || cp -p $$d/$$file $(distdir)/$$file \ 382 || exit 1; \ 383 fi; \ 384 done 385 check-am: all-am 386 check: $(BUILT_SOURCES) 387 $(MAKE) $(AM_MAKEFLAGS) check-am 388 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 389 installdirs: 390 for dir in "$(DESTDIR)$(pslibincludedir)"; do \ 391 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 392 done 393 install: $(BUILT_SOURCES) 394 $(MAKE) $(AM_MAKEFLAGS) install-am 395 install-exec: install-exec-am 396 install-data: install-data-am 397 uninstall: uninstall-am 398 399 install-am: all-am 400 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 401 402 installcheck: installcheck-am 403 install-strip: 404 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 405 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 406 `test -z '$(STRIP)' || \ 407 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 408 mostlyclean-generic: 409 410 clean-generic: 411 412 distclean-generic: 413 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 414 415 maintainer-clean-generic: 416 @echo "This command is intended for maintainers to use" 417 @echo "it deletes files that may require special tools to rebuild." 418 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 419 clean: clean-am 420 421 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 422 mostlyclean-am 423 424 distclean: distclean-am 425 -rm -rf ./$(DEPDIR) 426 -rm -f Makefile 427 distclean-am: clean-am distclean-compile distclean-generic \ 428 distclean-libtool distclean-tags 429 430 dvi: dvi-am 431 432 dvi-am: 433 434 html: html-am 435 436 info: info-am 437 438 info-am: 439 440 install-data-am: install-pslibincludeHEADERS 441 442 install-exec-am: 443 444 install-info: install-info-am 445 446 install-man: 447 448 installcheck-am: 449 450 maintainer-clean: maintainer-clean-am 451 -rm -rf ./$(DEPDIR) 452 -rm -f Makefile 453 maintainer-clean-am: distclean-am maintainer-clean-generic 454 455 mostlyclean: mostlyclean-am 456 457 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 458 mostlyclean-libtool 459 460 pdf: pdf-am 461 462 pdf-am: 463 464 ps: ps-am 465 466 ps-am: 467 468 uninstall-am: uninstall-info-am uninstall-pslibincludeHEADERS 469 470 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 471 clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 472 distclean-compile distclean-generic distclean-libtool \ 473 distclean-tags distdir dvi dvi-am html html-am info info-am \ 474 install install-am install-data install-data-am install-exec \ 475 install-exec-am install-info install-info-am install-man \ 476 install-pslibincludeHEADERS install-strip installcheck \ 477 installcheck-am installdirs maintainer-clean \ 478 maintainer-clean-generic mostlyclean mostlyclean-compile \ 479 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 480 tags uninstall uninstall-am uninstall-info-am \ 481 uninstall-pslibincludeHEADERS 482 18 483 19 484 psFileUtilsErrors.h: psFileUtilsErrors.dat 20 perl ../parseErrorCodes.pl --data=$? $@ 21 22 23 # Rule to make static library 24 25 libpslib.a: $(OBJS) 26 # The ar option -r is to add/replace object and -s is to create 27 # a symbol table in the archive 28 $(AR) rcs ../$@ $(OBJS) 29 30 # Define PHONY target "install" which will install necessary files 31 install: $(TARGET_STATIC) 32 install $(HEADERS) $(includedir) 33 34 # Define PHONY target "distclean" which will cleanup the distribution 35 distclean: clean 36 $(RM) ../$(TARGET_STATIC) 37 38 # Define PHONY target "clean" which will cleanup the development area 39 clean: 40 @echo " Deleting intermediate files for 'fileUtils'" 41 $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i) 42 43 cleandep: 44 $(RM) $(OBJS:.o=.d) 45 46 %.lint: %.c 47 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 48 49 %.i: %.c 50 $(CC) -E $(CFLAGS) -o $@ $< 51 52 makedir/%.o: %.c 53 $(CC) -c $(CFLAGS) -o $@ $< 54 55 makedir/%.d: %.c 56 $(CC) -MM $(CFLAGS) $< > $@.tmp 57 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@ 58 $(RM) -f $@.tmp 59 60 include $(OBJS:.o=.d) 485 perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@ 486 # Tell versions [3.59,3.63) of GNU make to not export all variables. 487 # Otherwise a system limit (for SysV at least) may be exceeded. 488 .NOEXPORT: -
trunk/psLib/src/fileUtils/psFileUtilsErrors.h
r3028 r3115 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1. 9$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 1-18 03:15:03$9 * @version $Revision: 1.10 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:11 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ 28 29 #define PS_ERRORNAME_DOMAIN "psLib.astronomy."30 28 31 29 //~Start #define PS_ERRORTEXT_$1 "$2" -
trunk/psLib/src/fileUtils/psLookupTable.c
r2725 r3115 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 200 4-12-16 18:53:02$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:11 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 455 455 psU64 failedLines = 0; 456 456 FILE *fp = NULL; 457 psElemType elemType ;457 psElemType elemType = PS_TYPE_PTR; 458 458 psVector *indexVec = NULL; 459 459 psVector *valuesVec = NULL; -
trunk/psLib/src/image/Makefile
r1787 r3115 1 ############################################################################### 2 ## 3 ## Makefile: collections 4 ## 5 ## $Revision: 1.6 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-09-11 00:43:54 $ 7 ## 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii 9 ############################################################################### 10 11 # Define variable prefix to the top level project - psLib 12 # This is necessary for definition is Makefile.Globals uses prefix 13 14 ifndef prefix 15 export prefix=$(shell cd ../..;pwd) 16 endif 17 18 # Define the two targets to be built 19 20 TARGET_STATIC = libpslib.a 21 22 # Include the make global definitions for the project 23 24 include ../Makefile.Globals 25 26 # Set CFLAGS used by the implicit rule to compile .c 27 28 CFLAGS := $(CFLAGS_RELOC) -I../sysUtils -I../dataManip -I../collections -I.. 29 30 # Define the source objects 31 32 SRC_OBJS = psImage.o \ 33 psImageExtraction.o \ 34 psImageIO.o \ 35 psImageManip.o \ 36 psImageStats.o \ 37 psImageFFT.o \ 38 psImageConvolve.o 39 40 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 41 42 HEADERS = $(SRC_OBJS:.o=.h) 43 44 # Define PHONY target "all" which will make all the necessary items 45 46 all: $(TARGET_STATIC) 1 # Makefile.in generated by automake 1.9.1 from Makefile.am. 2 # src/image/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 18 SOURCES = $(libpslibimage_la_SOURCES) 19 20 srcdir = . 21 top_srcdir = ../.. 22 23 pkgdatadir = $(datadir)/pslib 24 pkglibdir = $(libdir)/pslib 25 pkgincludedir = $(includedir)/pslib 26 top_builddir = ../.. 27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 28 INSTALL = /usr/bin/install -c 29 install_sh_DATA = $(install_sh) -c -m 644 30 install_sh_PROGRAM = $(install_sh) -c 31 install_sh_SCRIPT = $(install_sh) -c 32 INSTALL_HEADER = $(INSTALL_DATA) 33 transform = $(program_transform_name) 34 NORMAL_INSTALL = : 35 PRE_INSTALL = : 36 POST_INSTALL = : 37 NORMAL_UNINSTALL = : 38 PRE_UNINSTALL = : 39 POST_UNINSTALL = : 40 build_triplet = x86_64-unknown-linux-gnu 41 host_triplet = x86_64-unknown-linux-gnu 42 subdir = src/image 43 DIST_COMMON = $(pslibinclude_HEADERS) $(srcdir)/Makefile.am \ 44 $(srcdir)/Makefile.in 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 46 am__aclocal_m4_deps = $(top_srcdir)/configure.in 47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 48 $(ACLOCAL_M4) 49 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 50 CONFIG_HEADER = $(top_builddir)/src/config.h 51 CONFIG_CLEAN_FILES = 52 LTLIBRARIES = $(noinst_LTLIBRARIES) 53 libpslibimage_la_LIBADD = 54 am_libpslibimage_la_OBJECTS = psImage.lo psImageExtraction.lo \ 55 psImageIO.lo psImageManip.lo psImageStats.lo psImageFFT.lo \ 56 psImageConvolve.lo 57 libpslibimage_la_OBJECTS = $(am_libpslibimage_la_OBJECTS) 58 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 59 depcomp = $(SHELL) $(top_srcdir)/depcomp 60 am__depfiles_maybe = depfiles 61 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 62 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 63 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ 64 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 65 $(AM_CFLAGS) $(CFLAGS) 66 CCLD = $(CC) 67 LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 68 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 69 SOURCES = $(libpslibimage_la_SOURCES) 70 DIST_SOURCES = $(libpslibimage_la_SOURCES) 71 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 72 am__vpath_adj = case $$p in \ 73 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 74 *) f=$$p;; \ 75 esac; 76 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 77 am__installdirs = "$(DESTDIR)$(pslibincludedir)" 78 pslibincludeHEADERS_INSTALL = $(INSTALL_HEADER) 79 HEADERS = $(pslibinclude_HEADERS) 80 ETAGS = etags 81 CTAGS = ctags 82 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 83 ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9 84 AMDEP_FALSE = # 85 AMDEP_TRUE = 86 AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar 87 AR = ar 88 AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf 89 AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader 90 AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9 91 AWK = gawk 92 CC = gcc 93 CCDEPMODE = depmode=gcc3 94 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/usr/include -I/usr/include/libxml2 95 CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config 96 CPP = gcc -E 97 CPPFLAGS = 98 CXX = g++ 99 CXXCPP = g++ -E 100 CXXDEPMODE = depmode=gcc3 101 CXXFLAGS = -g -O2 102 CYGPATH_W = echo 103 DEFS = -DHAVE_CONFIG_H 104 DEPDIR = .deps 105 ECHO = echo 106 ECHO_C = 107 ECHO_N = -n 108 ECHO_T = 109 EGREP = grep -E 110 EXEEXT = 111 F77 = g77 112 FFLAGS = -fno-second-underscore -O -fno-f2c 113 GSL_CONFIG = /usr/bin/gsl-config 114 INSTALL_DATA = ${INSTALL} -m 644 115 INSTALL_PROGRAM = ${INSTALL} 116 INSTALL_SCRIPT = ${INSTALL} 117 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 118 LDFLAGS = 119 LIBOBJS = 120 LIBS = 121 LIBTOOL = $(SHELL) $(top_builddir)/libtool 122 LN_S = ln -s 123 LTLIBOBJS = 124 MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo 125 OBJEXT = o 126 PACKAGE = pslib 127 PACKAGE_BUGREPORT = 128 PACKAGE_NAME = 129 PACKAGE_STRING = 130 PACKAGE_TARNAME = 131 PACKAGE_VERSION = 132 PATH_SEPARATOR = : 133 PERL = /usr/bin/perl 134 PSLIB_CFLAGS = -I${prefix}/include 135 PSLIB_LIBS = -L${exec_prefix}/lib -lpslib -lcfitsio -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm 136 RANLIB = ranlib 137 SET_MAKE = 138 SHELL = /bin/sh 139 STRIP = strip 140 SWIG = /usr/bin/swig 141 VERSION = 1.5 142 XML_CONFIG = /usr/bin/xml2-config 143 ac_ct_AR = ar 144 ac_ct_CC = gcc 145 ac_ct_CXX = g++ 146 ac_ct_F77 = g77 147 ac_ct_RANLIB = ranlib 148 ac_ct_STRIP = strip 149 am__fastdepCC_FALSE = # 150 am__fastdepCC_TRUE = 151 am__fastdepCXX_FALSE = # 152 am__fastdepCXX_TRUE = 153 am__include = include 154 am__leading_dot = . 155 am__quote = 156 am__tar = ${AMTAR} chof - "$$tardir" 157 am__untar = ${AMTAR} xf - 158 bindir = ${exec_prefix}/bin 159 build = x86_64-unknown-linux-gnu 160 build_alias = 161 build_cpu = x86_64 162 build_os = linux-gnu 163 build_vendor = unknown 164 datadir = ${prefix}/share 165 exec_prefix = ${prefix} 166 host = x86_64-unknown-linux-gnu 167 host_alias = 168 host_cpu = x86_64 169 host_os = linux-gnu 170 host_vendor = unknown 171 includedir = ${prefix}/include 172 infodir = ${prefix}/info 173 install_sh = /home/desonia/panstarrs/psLib/install-sh 174 libdir = ${exec_prefix}/lib 175 libexecdir = ${exec_prefix}/libexec 176 localstatedir = ${prefix}/var 177 mandir = ${prefix}/man 178 mkdir_p = mkdir -p -- 179 oldincludedir = /usr/include 180 prefix = /home/desonia/panstarrs/psLib 181 program_transform_name = s,x,x, 182 sbindir = ${exec_prefix}/sbin 183 sharedstatedir = ${prefix}/com 184 sysconfdir = ${prefix}/etc 185 target_alias = 186 187 #Makefile for image functions of psLib 188 # 189 INCLUDES = \ 190 -I$(top_srcdir)/src/astronomy \ 191 -I$(top_srcdir)/src/collections \ 192 -I$(top_srcdir)/src/dataManip \ 193 -I$(top_srcdir)/src/fileUtils \ 194 -I$(top_srcdir)/src/sysUtils \ 195 $(all_includes) 196 197 noinst_LTLIBRARIES = libpslibimage.la 198 libpslibimage_la_SOURCES = \ 199 psImage.c \ 200 psImageExtraction.c \ 201 psImageIO.c \ 202 psImageManip.c \ 203 psImageStats.c \ 204 psImageFFT.c \ 205 psImageConvolve.c 206 207 BUILT_SOURCES = psImageErrors.h 208 EXTRA_DIST = psImageErrors.dat psImageErrors.h 209 pslibincludedir = $(includedir)/pslib 210 pslibinclude_HEADERS = \ 211 psImage.h \ 212 psImageExtraction.h \ 213 psImageIO.h \ 214 psImageManip.h \ 215 psImageStats.h \ 216 psImageFFT.h \ 217 psImageConvolve.h 218 219 all: $(BUILT_SOURCES) 220 $(MAKE) $(AM_MAKEFLAGS) all-am 221 222 .SUFFIXES: 223 .SUFFIXES: .c .lo .o .obj 224 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 225 @for dep in $?; do \ 226 case '$(am__configure_deps)' in \ 227 *$$dep*) \ 228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 229 && exit 0; \ 230 exit 1;; \ 231 esac; \ 232 done; \ 233 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/image/Makefile'; \ 234 cd $(top_srcdir) && \ 235 $(AUTOMAKE) --gnu src/image/Makefile 236 .PRECIOUS: Makefile 237 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 238 @case '$?' in \ 239 *config.status*) \ 240 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 241 *) \ 242 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 243 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 244 esac; 245 246 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 247 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 248 249 $(top_srcdir)/configure: $(am__configure_deps) 250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 251 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 253 254 clean-noinstLTLIBRARIES: 255 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 256 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 257 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 258 test "$$dir" != "$$p" || dir=.; \ 259 echo "rm -f \"$${dir}/so_locations\""; \ 260 rm -f "$${dir}/so_locations"; \ 261 done 262 libpslibimage.la: $(libpslibimage_la_OBJECTS) $(libpslibimage_la_DEPENDENCIES) 263 $(LINK) $(libpslibimage_la_LDFLAGS) $(libpslibimage_la_OBJECTS) $(libpslibimage_la_LIBADD) $(LIBS) 264 265 mostlyclean-compile: 266 -rm -f *.$(OBJEXT) 267 268 distclean-compile: 269 -rm -f *.tab.c 270 271 include ./$(DEPDIR)/psImage.Plo 272 include ./$(DEPDIR)/psImageConvolve.Plo 273 include ./$(DEPDIR)/psImageExtraction.Plo 274 include ./$(DEPDIR)/psImageFFT.Plo 275 include ./$(DEPDIR)/psImageIO.Plo 276 include ./$(DEPDIR)/psImageManip.Plo 277 include ./$(DEPDIR)/psImageStats.Plo 278 279 .c.o: 280 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 281 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 282 # source='$<' object='$@' libtool=no \ 283 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 284 # $(COMPILE) -c $< 285 286 .c.obj: 287 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 288 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 289 # source='$<' object='$@' libtool=no \ 290 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 291 # $(COMPILE) -c `$(CYGPATH_W) '$<'` 292 293 .c.lo: 294 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 295 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 296 # source='$<' object='$@' libtool=yes \ 297 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 298 # $(LTCOMPILE) -c -o $@ $< 299 300 mostlyclean-libtool: 301 -rm -f *.lo 302 303 clean-libtool: 304 -rm -rf .libs _libs 305 306 distclean-libtool: 307 -rm -f libtool 308 uninstall-info-am: 309 install-pslibincludeHEADERS: $(pslibinclude_HEADERS) 310 @$(NORMAL_INSTALL) 311 test -z "$(pslibincludedir)" || $(mkdir_p) "$(DESTDIR)$(pslibincludedir)" 312 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 313 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 314 f=$(am__strip_dir) \ 315 echo " $(pslibincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 316 $(pslibincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pslibincludedir)/$$f"; \ 317 done 318 319 uninstall-pslibincludeHEADERS: 320 @$(NORMAL_UNINSTALL) 321 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 322 f=$(am__strip_dir) \ 323 echo " rm -f '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 324 rm -f "$(DESTDIR)$(pslibincludedir)/$$f"; \ 325 done 326 327 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 328 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 329 unique=`for i in $$list; do \ 330 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 331 done | \ 332 $(AWK) ' { files[$$0] = 1; } \ 333 END { for (i in files) print i; }'`; \ 334 mkid -fID $$unique 335 tags: TAGS 336 337 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 338 $(TAGS_FILES) $(LISP) 339 tags=; \ 340 here=`pwd`; \ 341 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 342 unique=`for i in $$list; do \ 343 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 344 done | \ 345 $(AWK) ' { files[$$0] = 1; } \ 346 END { for (i in files) print i; }'`; \ 347 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 348 test -n "$$unique" || unique=$$empty_fix; \ 349 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 350 $$tags $$unique; \ 351 fi 352 ctags: CTAGS 353 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 354 $(TAGS_FILES) $(LISP) 355 tags=; \ 356 here=`pwd`; \ 357 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 358 unique=`for i in $$list; do \ 359 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 360 done | \ 361 $(AWK) ' { files[$$0] = 1; } \ 362 END { for (i in files) print i; }'`; \ 363 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 364 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 365 $$tags $$unique 366 367 GTAGS: 368 here=`$(am__cd) $(top_builddir) && pwd` \ 369 && cd $(top_srcdir) \ 370 && gtags -i $(GTAGS_ARGS) $$here 371 372 distclean-tags: 373 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 374 375 distdir: $(DISTFILES) 376 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 377 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 378 list='$(DISTFILES)'; for file in $$list; do \ 379 case $$file in \ 380 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 381 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 382 esac; \ 383 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 384 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 385 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 386 dir="/$$dir"; \ 387 $(mkdir_p) "$(distdir)$$dir"; \ 388 else \ 389 dir=''; \ 390 fi; \ 391 if test -d $$d/$$file; then \ 392 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 393 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 394 fi; \ 395 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 396 else \ 397 test -f $(distdir)/$$file \ 398 || cp -p $$d/$$file $(distdir)/$$file \ 399 || exit 1; \ 400 fi; \ 401 done 402 check-am: all-am 403 check: $(BUILT_SOURCES) 404 $(MAKE) $(AM_MAKEFLAGS) check-am 405 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 406 installdirs: 407 for dir in "$(DESTDIR)$(pslibincludedir)"; do \ 408 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 409 done 410 install: $(BUILT_SOURCES) 411 $(MAKE) $(AM_MAKEFLAGS) install-am 412 install-exec: install-exec-am 413 install-data: install-data-am 414 uninstall: uninstall-am 415 416 install-am: all-am 417 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 418 419 installcheck: installcheck-am 420 install-strip: 421 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 422 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 423 `test -z '$(STRIP)' || \ 424 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 425 mostlyclean-generic: 426 427 clean-generic: 428 429 distclean-generic: 430 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 431 432 maintainer-clean-generic: 433 @echo "This command is intended for maintainers to use" 434 @echo "it deletes files that may require special tools to rebuild." 435 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 436 clean: clean-am 437 438 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 439 mostlyclean-am 440 441 distclean: distclean-am 442 -rm -rf ./$(DEPDIR) 443 -rm -f Makefile 444 distclean-am: clean-am distclean-compile distclean-generic \ 445 distclean-libtool distclean-tags 446 447 dvi: dvi-am 448 449 dvi-am: 450 451 html: html-am 452 453 info: info-am 454 455 info-am: 456 457 install-data-am: install-pslibincludeHEADERS 458 459 install-exec-am: 460 461 install-info: install-info-am 462 463 install-man: 464 465 installcheck-am: 466 467 maintainer-clean: maintainer-clean-am 468 -rm -rf ./$(DEPDIR) 469 -rm -f Makefile 470 maintainer-clean-am: distclean-am maintainer-clean-generic 471 472 mostlyclean: mostlyclean-am 473 474 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 475 mostlyclean-libtool 476 477 pdf: pdf-am 478 479 pdf-am: 480 481 ps: ps-am 482 483 ps-am: 484 485 uninstall-am: uninstall-info-am uninstall-pslibincludeHEADERS 486 487 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 488 clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 489 distclean-compile distclean-generic distclean-libtool \ 490 distclean-tags distdir dvi dvi-am html html-am info info-am \ 491 install install-am install-data install-data-am install-exec \ 492 install-exec-am install-info install-info-am install-man \ 493 install-pslibincludeHEADERS install-strip installcheck \ 494 installcheck-am installdirs maintainer-clean \ 495 maintainer-clean-generic mostlyclean mostlyclean-compile \ 496 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 497 tags uninstall uninstall-am uninstall-info-am \ 498 uninstall-pslibincludeHEADERS 499 47 500 48 501 psImageErrors.h: psImageErrors.dat 49 perl ../parseErrorCodes.pl --data=$? $@ 50 51 # Rule to make static library 52 53 libpslib.a: $(OBJS) 54 # The ar option -r is to add/replace object and -s is to create 55 # a symbol table in the archive 56 $(AR) rcs ../$@ $(OBJS) 57 58 # Define PHONY target "install" which will install necessary files 59 60 install: $(TARGET_STATIC) 61 install $(HEADERS) $(includedir) 62 63 # Define PHONY target "distclean" which will cleanup the distribution 64 65 distclean: clean 66 $(RM) ../$(TARGET_STATIC) 67 68 # Define PHONY target "clean" which will cleanup the development area 69 70 clean: 71 @echo " Deleting intermediate files for 'collections'" 72 $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i) 73 74 cleandep: 75 $(RM) $(OBJS:.o=.d) 76 77 %.lint: %.c 78 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 79 80 %.i: %.c 81 $(CC) -E $(CFLAGS) -o $@ $< 82 83 makedir/%.o: %.c 84 $(CC) -c $(CFLAGS) -o $@ $< 85 86 makedir/%.d: %.c 87 $(CC) -MM $(CFLAGS) $< > $@.tmp 88 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@ 89 $(RM) -f $@.tmp 90 91 include $(OBJS:.o=.d) 502 perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@ 503 # Tell versions [3.59,3.63) of GNU make to not export all variables. 504 # Otherwise a system limit (for SysV at least) may be exceeded. 505 .NOEXPORT: -
trunk/psLib/src/image/psImage.c
r2970 r3115 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-13 03:26:23$11 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:11 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 568 568 psS32 lastX = input->numCols - 1; \ 569 569 psS32 lastY = input->numRows - 1; \ 570 ps##TYPE V00 ; \571 ps##TYPE V01 ; \572 ps##TYPE V10 ; \573 ps##TYPE V11 ; \570 ps##TYPE V00 = 0; \ 571 ps##TYPE V01 = 0; \ 572 ps##TYPE V10 = 0; \ 573 ps##TYPE V11 = 0; \ 574 574 psBool valid00 = false; \ 575 575 psBool valid01 = false; \ … … 611 611 /* OK, at least one pixel is not valid - need to do it piecemeal */ \ 612 612 \ 613 psF64 V0 ; \613 psF64 V0 = 0.0; \ 614 614 psBool valid0 = true; \ 615 615 if (valid00 && valid10) { \ … … 623 623 } \ 624 624 \ 625 psF64 V1 ; \625 psF64 V1 = 0.0; \ 626 626 psBool valid1 = true; \ 627 627 if (valid01 && valid11) { \ … … 662 662 psS32 lastX = input->numCols - 1; \ 663 663 psS32 lastY = input->numRows - 1; \ 664 ps##TYPE V00 ; \665 ps##TYPE V01 ; \666 ps##TYPE V10 ; \667 ps##TYPE V11 ; \664 ps##TYPE V00 = 0; \ 665 ps##TYPE V01 = 0; \ 666 ps##TYPE V10 = 0; \ 667 ps##TYPE V11 = 0; \ 668 668 psBool valid00 = false; \ 669 669 psBool valid01 = false; \ … … 705 705 /* OK, at least one pixel is not valid - need to do it piecemeal */ \ 706 706 \ 707 psC64 V0 ; \707 psC64 V0 = 0; \ 708 708 psBool valid0 = true; \ 709 709 if (valid00 && valid10) { \ … … 717 717 } \ 718 718 \ 719 psC64 V1 ; \719 psC64 V1 = 0; \ 720 720 psBool valid1 = true; \ 721 721 if (valid01 && valid11) { \ -
trunk/psLib/src/image/psImage.h
r2970 r3115 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 1-13 03:26:23$13 * @version $Revision: 1.46 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:11 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 157 157 */ 158 158 psImage* psImageCopy( 159 psImage* restrict output,///< if not NULL, a psImage that could be recycled.159 psImage* output, ///< if not NULL, a psImage that could be recycled. 160 160 const psImage* input, ///< the psImage to copy 161 161 psElemType type ///< the desired datatype of the returned copy … … 221 221 psC64 unexposedValue /**< return value if x,y location is not in image. */ \ 222 222 ); 223 223 #ifndef SWIG 224 224 p_psImagePixelInterpolateFcns(U8) 225 225 p_psImagePixelInterpolateFcns(U16) … … 234 234 p_psImagePixelInterpolateComplexFcns(C32) 235 235 p_psImagePixelInterpolateComplexFcns(C64) 236 #endif 236 237 237 238 /// @} -
trunk/psLib/src/image/psImageErrors.h
r2879 r3115 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 2$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 1-04 02:34:57$9 * @version $Revision: 1.13 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:11 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ 28 29 #define PS_ERRORNAME_DOMAIN "psLib.image."30 28 31 29 //~Start #define PS_ERRORTEXT_$1 "$2" -
trunk/psLib/src/image/psImageExtraction.h
r2204 r3115 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $13 * @date $Date: 200 4-10-27 00:57:31 $12 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-02-03 00:54:11 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 128 128 ///< coorsponding to the output vector's value of the same position in the 129 129 ///< vector. This vector maybe resized and retyped as appropriate. 130 const psImage* restrict input,///< the input image in which to perform the slice131 const psImage* restrict mask,///< the mask for the input image.132 psU32 maskVal, ///< the mask value to apply to the mask133 psS32 col0, ///< the leftmost column of the slice region134 psS32 row0, ///< the bottommost row of the slice region135 psS32 col1, ///< exclusive end column of the slice region136 psS32 row1, ///< exclusive end row of the slice region130 const psImage* input, ///< the input image in which to perform the slice 131 const psImage* mask, ///< the mask for the input image. 132 psU32 maskVal, ///< the mask value to apply to the mask 133 psS32 col0, ///< the leftmost column of the slice region 134 psS32 row0, ///< the bottommost row of the slice region 135 psS32 col1, ///< exclusive end column of the slice region 136 psS32 row1, ///< exclusive end row of the slice region 137 137 psImageCutDirection direction, ///< the slice dimension and direction 138 138 const psStats* stats ///< the statistic to perform in slice operation … … 160 160 psVector* cutRows, ///< if not NULL, the calculated row values along the slice (output) 161 161 const psImage* input, ///< the input image in which to perform the cut 162 const psImage* restrict mask,///< the mask for the input image.163 psU32 maskVal, ///< the mask value to apply to the mask162 const psImage* mask, ///< the mask for the input image. 163 psU32 maskVal, ///< the mask value to apply to the mask 164 164 float startCol, ///< the column of the start of the cut line 165 165 float startRow, ///< the row of the start of the cut line 166 166 float endCol, ///< the column of the end of the cut line 167 167 float endRow, ///< the row of the end of the cut line 168 psU32 nSamples, ///< the number of samples along the cut168 psU32 nSamples, ///< the number of samples along the cut 169 169 psImageInterpolateMode mode ///< the interpolation method to use 170 170 ); … … 186 186 psVector* out, ///< psVector to recycle, or NULL. 187 187 const psImage* input, ///< the input image in which to perform the cut 188 const psImage* restrict mask,///< the mask for the input image.189 psU32 maskVal, ///< the mask value to apply to the mask188 const psImage* mask, ///< the mask for the input image. 189 psU32 maskVal, ///< the mask value to apply to the mask 190 190 float centerCol, ///< the column of the center of the cut circle 191 191 float centerRow, ///< the row of the center of the cut circle -
trunk/psLib/src/image/psImageManip.h
r2860 r3115 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 1-03 21:58:53$13 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:11 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 101 101 psImage* out, ///< an psImage to recycle. If NULL, a new image is created 102 102 const psImage* in, ///< input image 103 const psImage* restrict mask,///< mask for input image. If NULL, no masking is done.103 const psImage* mask, ///< mask for input image. If NULL, no masking is done. 104 104 psMaskType maskVal, ///< the bits to check in mask. 105 105 psU32 scale, ///< the scale to rebin for each dimension -
trunk/psLib/src/image/psImageStats.c
r3027 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-17 23:25:10$11 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:11 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 245 245 for (x = 0; x < input->numRows; x++) { 246 246 for (y = 0; y < input->numCols; y++) { 247 double pixel ;247 double pixel = 0.0; 248 248 if (input->type.type == PS_TYPE_S8) { 249 249 pixel = (double) input->data.S8[x][y]; -
trunk/psLib/src/imageops/psImageStats.c
r3027 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.6 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-17 23:25:10$11 * @version $Revision: 1.64 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:11 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 245 245 for (x = 0; x < input->numRows; x++) { 246 246 for (y = 0; y < input->numCols; y++) { 247 double pixel ;247 double pixel = 0.0; 248 248 if (input->type.type == PS_TYPE_S8) { 249 249 pixel = (double) input->data.S8[x][y]; -
trunk/psLib/src/math/psMinimize.c
r3097 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.10 3$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-26 20:47:41$11 * @version $Revision: 1.104 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 96 96 XXX: do an F64 version? 97 97 *****************************************************************************/ 98 psF32 *CalculateSecondDerivs(const psVector* restrictx, ///< Ordinates (or NULL to just use the indices)99 const psVector* restricty) ///< Coordinates98 psF32 *CalculateSecondDerivs(const psVector* x, ///< Ordinates (or NULL to just use the indices) 99 const psVector* y) ///< Coordinates 100 100 { 101 101 psTrace(".psLib.dataManip.CalculateSecondDerivs", 4, … … 167 167 /* 168 168 psF32 p_psNRSpline1DEval(psSpline1D *spline, 169 const psVector* restrictx,170 const psVector* restricty,169 const psVector* x, 170 const psVector* y, 171 171 psF32 X) 172 172 { … … 250 250 XXX: Assumes mySpline->knots is psF32. Must add psU32 and psF64. 251 251 *****************************************************************************/ 252 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline, ///< The spline which will be generated.253 const psVector* restrictx, ///< Ordinates (or NULL to just use the indices)254 const psVector* restricty, ///< Coordinates255 const psVector* restrictyErr) ///< Errors in coordinates, or NULL252 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline, ///< The spline which will be generated. 253 const psVector* x, ///< Ordinates (or NULL to just use the indices) 254 const psVector* y, ///< Coordinates 255 const psVector* yErr) ///< Errors in coordinates, or NULL 256 256 { 257 257 PS_VECTOR_CHECK_NULL(y, NULL); … … 833 833 *****************************************************************************/ 834 834 psPolynomial1D *VectorFitPolynomial1DCheby(psPolynomial1D* myPoly, 835 const psVector* restrictx,836 const psVector* restricty,837 const psVector* restrictyErr)835 const psVector* x, 836 const psVector* y, 837 const psVector* yErr) 838 838 { 839 839 psS32 j; … … 911 911 *****************************************************************************/ 912 912 psPolynomial1D* VectorFitPolynomial1DOrd(psPolynomial1D* myPoly, 913 const psVector* restrictx,914 const psVector* restricty,915 const psVector* restrictyErr)913 const psVector* x, 914 const psVector* y, 915 const psVector* yErr) 916 916 { 917 917 psS32 polyOrder = myPoly->n; … … 1018 1018 *****************************************************************************/ 1019 1019 psPolynomial1D* psVectorFitPolynomial1D(psPolynomial1D* myPoly, 1020 const psVector* restrictx,1021 const psVector* restricty,1022 const psVector* restrictyErr)1020 const psVector* x, 1021 const psVector* y, 1022 const psVector* yErr) 1023 1023 { 1024 1024 PS_POLY_CHECK_NULL(myPoly, NULL); -
trunk/psLib/src/math/psMinimize.h
r2788 r3115 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $11 * @date $Date: 200 4-12-22 05:09:32$10 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2005-02-03 00:54:10 $ 12 12 * 13 13 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 65 65 psPolynomial1D* psVectorFitPolynomial1D( 66 66 psPolynomial1D* myPoly, ///< Polynomial to fit 67 const psVector* restrict x,///< Ordinates (or NULL to just use the indices)68 const psVector* restrict y,///< Coordinates69 const psVector* restrict yErr///< Errors in coordinates, or NULL67 const psVector* x, ///< Ordinates (or NULL to just use the indices) 68 const psVector* y, ///< Coordinates 69 const psVector* yErr ///< Errors in coordinates, or NULL 70 70 ); 71 71 72 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline, ///< The spline which will be generated.73 const psVector* restrictx, ///< Ordinates (or NULL to just use the indices)74 const psVector* restricty, ///< Coordinates75 const psVector* restrictyErr ///< Errors in coordinates, or NULL72 psSpline1D *psVectorFitSpline1D(psSpline1D *mySpline, ///< The spline which will be generated. 73 const psVector* x, ///< Ordinates (or NULL to just use the indices) 74 const psVector* y, ///< Coordinates 75 const psVector* yErr ///< Errors in coordinates, or NULL 76 76 ); 77 77 -
trunk/psLib/src/math/psPolynomial.c
r3097 r3115 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.8 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 1-26 20:47:41$9 * @version $Revision: 1.86 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:10 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1202 1202 PS_VECTOR_CHECK_TYPE(x, PS_TYPE_F32, NULL); 1203 1203 1204 psVector *tmp ;1205 psVector *myX ;1204 psVector *tmp = NULL; 1205 psVector *myX = NULL; 1206 1206 psS32 i; 1207 1207 … … 1244 1244 PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F32, NULL); 1245 1245 1246 psVector *tmp ;1247 psVector *myX ;1248 psVector *myY ;1246 psVector *tmp = NULL; 1247 psVector *myX = NULL; 1248 psVector *myY = NULL; 1249 1249 psS32 i; 1250 1250 psS32 vecLen=x->n; … … 1302 1302 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F32, NULL); 1303 1303 1304 psVector *tmp ;1305 psVector *myX ;1306 psVector *myY ;1307 psVector *myZ ;1304 psVector *tmp = NULL; 1305 psVector *myX = NULL; 1306 psVector *myY = NULL; 1307 psVector *myZ = NULL; 1308 1308 psS32 i; 1309 1309 psS32 vecLen=x->n; … … 1370 1370 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F32, NULL); 1371 1371 1372 psVector *tmp ;1373 psVector *myW ;1374 psVector *myX ;1375 psVector *myY ;1376 psVector *myZ ;1372 psVector *tmp = NULL; 1373 psVector *myW = NULL; 1374 psVector *myX = NULL; 1375 psVector *myY = NULL; 1376 psVector *myZ = NULL; 1377 1377 psS32 i; 1378 1378 psS32 vecLen=x->n; … … 1603 1603 PS_VECTOR_CHECK_TYPE(x, PS_TYPE_F64, NULL); 1604 1604 1605 psVector *tmp ;1606 psVector *myX ;1605 psVector *tmp = NULL; 1606 psVector *myX = NULL; 1607 1607 psS32 i; 1608 1608 … … 1648 1648 PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F64, NULL); 1649 1649 1650 psVector *tmp ;1651 psVector *myX ;1652 psVector *myY ;1650 psVector *tmp = NULL; 1651 psVector *myX = NULL; 1652 psVector *myY = NULL; 1653 1653 psS32 i; 1654 1654 psS32 vecLen=x->n; … … 1710 1710 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F64, NULL); 1711 1711 1712 psVector *tmp ;1713 psVector *myX ;1714 psVector *myY ;1715 psVector *myZ ;1712 psVector *tmp = NULL; 1713 psVector *myX = NULL; 1714 psVector *myY = NULL; 1715 psVector *myZ = NULL; 1716 1716 psS32 i; 1717 1717 psS32 vecLen=x->n; … … 1782 1782 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F64, NULL); 1783 1783 1784 psVector *tmp ;1785 psVector *myW ;1786 psVector *myX ;1787 psVector *myY ;1788 psVector *myZ ;1784 psVector *tmp = NULL; 1785 psVector *myW = NULL; 1786 psVector *myX = NULL; 1787 psVector *myY = NULL; 1788 psVector *myZ = NULL; 1789 1789 psS32 i; 1790 1790 psS32 vecLen=x->n; -
trunk/psLib/src/math/psPolynomial.h
r3096 r3115 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 1-26 20:41:04$14 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:10 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 429 429 430 430 psF32 p_psNRSpline1DEval(psSpline1D *spline, 431 const psVector* restrictx,432 const psVector* restricty,431 const psVector* x, 432 const psVector* y, 433 433 psF32 X); 434 434 -
trunk/psLib/src/math/psSpline.c
r3097 r3115 7 7 * polynomials. It also contains a Gaussian functions. 8 8 * 9 * @version $Revision: 1.8 5$ $Name: not supported by cvs2svn $10 * @date $Date: 2005-0 1-26 20:47:41$9 * @version $Revision: 1.86 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:10 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 1202 1202 PS_VECTOR_CHECK_TYPE(x, PS_TYPE_F32, NULL); 1203 1203 1204 psVector *tmp ;1205 psVector *myX ;1204 psVector *tmp = NULL; 1205 psVector *myX = NULL; 1206 1206 psS32 i; 1207 1207 … … 1244 1244 PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F32, NULL); 1245 1245 1246 psVector *tmp ;1247 psVector *myX ;1248 psVector *myY ;1246 psVector *tmp = NULL; 1247 psVector *myX = NULL; 1248 psVector *myY = NULL; 1249 1249 psS32 i; 1250 1250 psS32 vecLen=x->n; … … 1302 1302 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F32, NULL); 1303 1303 1304 psVector *tmp ;1305 psVector *myX ;1306 psVector *myY ;1307 psVector *myZ ;1304 psVector *tmp = NULL; 1305 psVector *myX = NULL; 1306 psVector *myY = NULL; 1307 psVector *myZ = NULL; 1308 1308 psS32 i; 1309 1309 psS32 vecLen=x->n; … … 1370 1370 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F32, NULL); 1371 1371 1372 psVector *tmp ;1373 psVector *myW ;1374 psVector *myX ;1375 psVector *myY ;1376 psVector *myZ ;1372 psVector *tmp = NULL; 1373 psVector *myW = NULL; 1374 psVector *myX = NULL; 1375 psVector *myY = NULL; 1376 psVector *myZ = NULL; 1377 1377 psS32 i; 1378 1378 psS32 vecLen=x->n; … … 1603 1603 PS_VECTOR_CHECK_TYPE(x, PS_TYPE_F64, NULL); 1604 1604 1605 psVector *tmp ;1606 psVector *myX ;1605 psVector *tmp = NULL; 1606 psVector *myX = NULL; 1607 1607 psS32 i; 1608 1608 … … 1648 1648 PS_VECTOR_CHECK_TYPE(y, PS_TYPE_F64, NULL); 1649 1649 1650 psVector *tmp ;1651 psVector *myX ;1652 psVector *myY ;1650 psVector *tmp = NULL; 1651 psVector *myX = NULL; 1652 psVector *myY = NULL; 1653 1653 psS32 i; 1654 1654 psS32 vecLen=x->n; … … 1710 1710 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F64, NULL); 1711 1711 1712 psVector *tmp ;1713 psVector *myX ;1714 psVector *myY ;1715 psVector *myZ ;1712 psVector *tmp = NULL; 1713 psVector *myX = NULL; 1714 psVector *myY = NULL; 1715 psVector *myZ = NULL; 1716 1716 psS32 i; 1717 1717 psS32 vecLen=x->n; … … 1782 1782 PS_VECTOR_CHECK_TYPE(z, PS_TYPE_F64, NULL); 1783 1783 1784 psVector *tmp ;1785 psVector *myW ;1786 psVector *myX ;1787 psVector *myY ;1788 psVector *myZ ;1784 psVector *tmp = NULL; 1785 psVector *myW = NULL; 1786 psVector *myX = NULL; 1787 psVector *myY = NULL; 1788 psVector *myZ = NULL; 1789 1789 psS32 i; 1790 1790 psS32 vecLen=x->n; -
trunk/psLib/src/math/psSpline.h
r3096 r3115 12 12 * @author GLG, MHPCC 13 13 * 14 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 1-26 20:41:04$14 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:10 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 429 429 430 430 psF32 p_psNRSpline1DEval(psSpline1D *spline, 431 const psVector* restrictx,432 const psVector* restricty,431 const psVector* x, 432 const psVector* y, 433 433 psF32 X); 434 434 -
trunk/psLib/src/math/psStats.c
r3095 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.11 1$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-26 20:24:17$11 * @version $Revision: 1.112 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 145 145 this routine sets stats->sampleMean to NAN. 146 146 *****************************************************************************/ 147 psS32 p_psVectorSampleMean(const psVector* restrictmyVector,148 const psVector* restricterrors,149 const psVector* restrictmaskVector,147 psS32 p_psVectorSampleMean(const psVector* myVector, 148 const psVector* errors, 149 const psVector* maskVector, 150 150 psU32 maskVal, 151 151 psStats* stats) … … 283 283 this routine sets stats->max to NAN. 284 284 *****************************************************************************/ 285 psS32 p_psVectorMax(const psVector* restrictmyVector,286 const psVector* restrictmaskVector,285 psS32 p_psVectorMax(const psVector* myVector, 286 const psVector* maskVector, 287 287 psU32 maskVal, 288 288 psStats* stats) … … 348 348 this routine sets stats->min to NAN. 349 349 *****************************************************************************/ 350 psS32 p_psVectorMin(const psVector* restrictmyVector,351 const psVector* restrictmaskVector,350 psS32 p_psVectorMin(const psVector* myVector, 351 const psVector* maskVector, 352 352 psU32 maskVal, 353 353 psStats* stats) … … 414 414 "false". 415 415 *****************************************************************************/ 416 bool p_psVectorCheckNonEmpty(const psVector* restrictmyVector,417 const psVector* restrictmaskVector,416 bool p_psVectorCheckNonEmpty(const psVector* myVector, 417 const psVector* maskVector, 418 418 psU32 maskVal, 419 419 psStats* stats) … … 462 462 range, if specified. 463 463 *****************************************************************************/ 464 psS32 p_psVectorNValues(const psVector* restrictmyVector,465 const psVector* restrictmaskVector,464 psS32 p_psVectorNValues(const psVector* myVector, 465 const psVector* maskVector, 466 466 psU32 maskVal, 467 467 psStats* stats) … … 511 511 XXX: Use static vectors for sort arrays. 512 512 *****************************************************************************/ 513 bool p_psVectorSampleMedian(const psVector* restrictmyVector,514 const psVector* restrictmaskVector,513 bool p_psVectorSampleMedian(const psVector* myVector, 514 const psVector* maskVector, 515 515 psU32 maskVal, 516 516 psStats* stats) … … 701 701 NULL 702 702 *****************************************************************************/ 703 bool p_psVectorSampleQuartiles(const psVector* restrictmyVector,704 const psVector* restrictmaskVector,703 bool p_psVectorSampleQuartiles(const psVector* myVector, 704 const psVector* maskVector, 705 705 psU32 maskVal, 706 706 psStats* stats) … … 787 787 788 788 *****************************************************************************/ 789 void p_psVectorSampleStdevOLD(const psVector* restrictmyVector,790 const psVector* restricterrors,791 const psVector* restrictmaskVector,789 void p_psVectorSampleStdevOLD(const psVector* myVector, 790 const psVector* errors, 791 const psVector* maskVector, 792 792 psU32 maskVal, 793 793 psStats* stats) … … 881 881 882 882 *****************************************************************************/ 883 void p_psVectorSampleStdev(const psVector* restrictmyVector,884 const psVector* restricterrors,885 const psVector* restrictmaskVector,883 void p_psVectorSampleStdev(const psVector* myVector, 884 const psVector* errors, 885 const psVector* maskVector, 886 886 psU32 maskVal, 887 887 psStats* stats) … … 896 896 // psF32 sum1; 897 897 // psF32 sum2; 898 psF32 errorDivisor ;898 psF32 errorDivisor = 0.0f; 899 899 900 900 // This procedure requires the mean. If it has not been already … … 1003 1003 -2: warning 1004 1004 *****************************************************************************/ 1005 psS32 p_psVectorClippedStats(const psVector* restrictmyVector,1006 const psVector* restricterrors,1007 const psVector* restrictmaskVector,1005 psS32 p_psVectorClippedStats(const psVector* myVector, 1006 const psVector* errors, 1007 const psVector* maskVector, 1008 1008 psU32 maskVal, 1009 1009 psStats* stats) … … 1331 1331 psPolynomial1D *myPoly = psPolynomial1DAlloc(2, PS_POLYNOMIAL_ORD); 1332 1332 1333 psF32 tmpFloat ;1333 psF32 tmpFloat = 0.0f; 1334 1334 1335 1335 if ((binNum > 0) && (binNum < (yVec->n - 2))) { … … 1425 1425 XXX: Check for errors in psLib routines that we call. 1426 1426 *****************************************************************************/ 1427 psS32 p_psVectorRobustStats(const psVector* restrictmyVector,1428 const psVector* restricterrors,1429 const psVector* restrictmaskVector,1427 psS32 p_psVectorRobustStats(const psVector* myVector, 1428 const psVector* errors, 1429 const psVector* maskVector, 1430 1430 psU32 maskVal, 1431 1431 psStats* stats) … … 1820 1820 The histogram structure 1821 1821 *****************************************************************************/ 1822 psHistogram* psHistogramAllocGeneric(const psVector* restrictbounds)1822 psHistogram* psHistogramAllocGeneric(const psVector* bounds) 1823 1823 { 1824 1824 PS_VECTOR_CHECK_NULL(bounds, NULL); … … 1890 1890 psF32 boxcarRight = boxcarCenter + (boxcarWidth / 2.0); 1891 1891 psS32 bin; 1892 psS32 boxcarLeftBinNum ;1893 psS32 boxcarRightBinNum ;1892 psS32 boxcarLeftBinNum = 0; 1893 psS32 boxcarRightBinNum = 0; 1894 1894 1895 1895 // Determine the left endpoint of the boxcar for the PDF. … … 1961 1961 *****************************************************************************/ 1962 1962 psHistogram* psVectorHistogram(psHistogram* out, 1963 const psVector* restrictin,1964 const psVector* restricterrors,1965 const psVector* restrictmask,1963 const psVector* in, 1964 const psVector* errors, 1965 const psVector* mask, 1966 1966 psU32 maskVal) 1967 1967 { -
trunk/psLib/src/math/psStats.h
r2788 r3115 10 10 * @author George Gusciora, MHPCC 11 11 * 12 * @version $Revision: 1.3 7$ $Name: not supported by cvs2svn $13 * @date $Date: 200 4-12-22 05:09:32$12 * @version $Revision: 1.38 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-02-03 00:54:10 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 143 143 */ 144 144 psHistogram* psHistogramAllocGeneric( 145 const psVector* restrict bounds///< Bounds for the bins145 const psVector* bounds ///< Bounds for the bins 146 146 ); 147 147 … … 156 156 psHistogram* psVectorHistogram( 157 157 psHistogram* out, ///< Histogram data 158 const psVector* restrict in,///< Vector to analyse159 const psVector* restrict errors,///< Errors160 const psVector* restrict mask,///< Mask dat for input vector161 psU32 maskVal ///< Mask value158 const psVector* in, ///< Vector to analyse 159 const psVector* errors, ///< Errors 160 const psVector* mask, ///< Mask dat for input vector 161 psU32 maskVal ///< Mask value 162 162 ); 163 163 -
trunk/psLib/src/mathtypes/psImage.c
r2970 r3115 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.5 7$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-13 03:26:23$11 * @version $Revision: 1.58 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:11 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 568 568 psS32 lastX = input->numCols - 1; \ 569 569 psS32 lastY = input->numRows - 1; \ 570 ps##TYPE V00 ; \571 ps##TYPE V01 ; \572 ps##TYPE V10 ; \573 ps##TYPE V11 ; \570 ps##TYPE V00 = 0; \ 571 ps##TYPE V01 = 0; \ 572 ps##TYPE V10 = 0; \ 573 ps##TYPE V11 = 0; \ 574 574 psBool valid00 = false; \ 575 575 psBool valid01 = false; \ … … 611 611 /* OK, at least one pixel is not valid - need to do it piecemeal */ \ 612 612 \ 613 psF64 V0 ; \613 psF64 V0 = 0.0; \ 614 614 psBool valid0 = true; \ 615 615 if (valid00 && valid10) { \ … … 623 623 } \ 624 624 \ 625 psF64 V1 ; \625 psF64 V1 = 0.0; \ 626 626 psBool valid1 = true; \ 627 627 if (valid01 && valid11) { \ … … 662 662 psS32 lastX = input->numCols - 1; \ 663 663 psS32 lastY = input->numRows - 1; \ 664 ps##TYPE V00 ; \665 ps##TYPE V01 ; \666 ps##TYPE V10 ; \667 ps##TYPE V11 ; \664 ps##TYPE V00 = 0; \ 665 ps##TYPE V01 = 0; \ 666 ps##TYPE V10 = 0; \ 667 ps##TYPE V11 = 0; \ 668 668 psBool valid00 = false; \ 669 669 psBool valid01 = false; \ … … 705 705 /* OK, at least one pixel is not valid - need to do it piecemeal */ \ 706 706 \ 707 psC64 V0 ; \707 psC64 V0 = 0; \ 708 708 psBool valid0 = true; \ 709 709 if (valid00 && valid10) { \ … … 717 717 } \ 718 718 \ 719 psC64 V1 ; \719 psC64 V1 = 0; \ 720 720 psBool valid1 = true; \ 721 721 if (valid01 && valid11) { \ -
trunk/psLib/src/mathtypes/psImage.h
r2970 r3115 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.4 5$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 1-13 03:26:23$13 * @version $Revision: 1.46 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:11 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 157 157 */ 158 158 psImage* psImageCopy( 159 psImage* restrict output,///< if not NULL, a psImage that could be recycled.159 psImage* output, ///< if not NULL, a psImage that could be recycled. 160 160 const psImage* input, ///< the psImage to copy 161 161 psElemType type ///< the desired datatype of the returned copy … … 221 221 psC64 unexposedValue /**< return value if x,y location is not in image. */ \ 222 222 ); 223 223 #ifndef SWIG 224 224 p_psImagePixelInterpolateFcns(U8) 225 225 p_psImagePixelInterpolateFcns(U16) … … 234 234 p_psImagePixelInterpolateComplexFcns(C32) 235 235 p_psImagePixelInterpolateComplexFcns(C64) 236 #endif 236 237 237 238 /// @} -
trunk/psLib/src/mathtypes/psVector.c
r2676 r3115 10 10 * @author Robert DeSonia, MHPCC 11 11 * 12 * @version $Revision: 1.3 2$ $Name: not supported by cvs2svn $13 * @date $Date: 200 4-12-09 21:30:43$12 * @version $Revision: 1.33 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-02-03 00:54:10 $ 14 14 * 15 15 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 28 28 #include "psCollectionsErrors.h" 29 29 30 static void vectorFree(psVector* restrictpsVec);31 32 33 static void vectorFree(psVector* restrictpsVec)30 static void vectorFree(psVector* psVec); 31 32 33 static void vectorFree(psVector* psVec) 34 34 { 35 35 if (psVec == NULL) { … … 64 64 } 65 65 66 psVector* psVectorRealloc(psVector* restrictin, psU32 nalloc)66 psVector* psVectorRealloc(psVector* in, psU32 nalloc) 67 67 { 68 68 psS32 elementSize = 0; … … 87 87 } 88 88 89 psVector* psVectorRecycle(psVector* restrictin, psU32 n, psElemType type)89 psVector* psVectorRecycle(psVector* in, psU32 n, psElemType type) 90 90 { 91 91 psS32 byteSize; … … 218 218 } 219 219 220 psVector* psVectorSort(psVector* restrict outVector, const psVector* restrictinVector)220 psVector* psVectorSort(psVector* outVector, const psVector* inVector) 221 221 { 222 222 psS32 N = 0; … … 302 302 } 303 303 304 psVector* psVectorSortIndex(psVector* restrict outVector, const psVector* restrictinVector)304 psVector* psVectorSortIndex(psVector* outVector, const psVector* inVector) 305 305 { 306 306 psS32 N = 0; -
trunk/psLib/src/mathtypes/psVector.h
r3025 r3115 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.2 6$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 1-17 20:58:21$13 * @version $Revision: 1.27 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:10 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 84 84 */ 85 85 psVector* psVectorRealloc( 86 psVector* restrict psVec,///< Vector to reallocate.87 psU32 nalloc ///< Total number of elements to make available.86 psVector* psVec, ///< Vector to reallocate. 87 psU32 nalloc ///< Total number of elements to make available. 88 88 ); 89 89 … … 98 98 */ 99 99 psVector* psVectorRecycle( 100 psVector* restrictpsVec,100 psVector* psVec, 101 101 ///< Vector to recycle. If NULL, a new vector is created. No effort 102 102 ///< taken to preserve the values. 103 103 104 psU32 nalloc, ///< Total number of elements to make available.104 psU32 nalloc, ///< Total number of elements to make available. 105 105 psElemType type ///< the datatype of the returned vector 106 106 ); … … 128 128 */ 129 129 psVector* psVectorSort( 130 psVector* restrict outVector,///< the output vector to recycle, or NULL if new vector desired.131 const psVector* restrict inVector///< the vector to sort.130 psVector* outVector, ///< the output vector to recycle, or NULL if new vector desired. 131 const psVector* inVector ///< the vector to sort. 132 132 ); 133 133 … … 140 140 */ 141 141 psVector* psVectorSortIndex( 142 psVector* restrict outVector,///< vector to recycle143 const psVector* restrict inVector///< vector to sort142 psVector* outVector, ///< vector to recycle 143 const psVector* inVector ///< vector to sort 144 144 ); 145 145 -
trunk/psLib/src/parseErrorCodes.pl
r1807 r3115 54 54 my @result = (); 55 55 56 die "Failed to open input file "56 die "Failed to open input file '$filename'" 57 57 if !open( INFILE, "<", $filename ); 58 58 -
trunk/psLib/src/pslib.h
r2962 r3115 9 9 * @author Eric Van Alst, MHPCC 10 10 * 11 * @version $Revision: 1. 29$ $Name: not supported by cvs2svn $12 * @date $Date: 2005-0 1-12 22:17:01$11 * @version $Revision: 1.30 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 24 24 /******************************************************************************/ 25 25 26 // System Utilities26 // // System Utilities 27 27 28 28 /// @defgroup SysUtils System Utilities … … 130 130 #include "psMatrixVectorArithmetic.h" 131 131 132 #include "psRandom.h" 133 132 134 /// @defgroup Transform Fourier Transform Operations 133 135 /// @ingroup DataManip -
trunk/psLib/src/sys/psConfigure.c
r2867 r3115 12 12 * @author Robert DeSonia, MHPCC 13 13 * 14 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 1-03 23:35:07$14 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:11 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include "psConfigure.h" 23 23 #include "psSysUtilsErrors.h" 24 25 26 #ifndef PS_LIB_VERSION 27 #define PS_LIB_VERSION "psLib version unknown" 28 #pragma warning PS_LIB_VERSION was not defined in the makefile. 29 #endif 24 #include "config.h" 30 25 31 26 char* psLibVersion(void) 32 27 { 33 // PS_LIB_VERSION comes from Makefile.Globals 34 return(psStringCopy(PS_LIB_VERSION)); 28 char version[80]; 29 snprintf(version,80,"%s-v%s",PACKAGE,VERSION); 30 31 return(psStringCopy(version)); 35 32 } 36 33 -
trunk/psLib/src/sys/psError.h
r2972 r3115 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 1-13 19:50:45$14 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:11 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 90 90 ); 91 91 92 #ifndef SWIG 92 93 /** Prints error stack to specified open file descriptor 93 94 * … … 103 104 va_list va ///< any parameters required in fmt 104 105 ); 106 #endif 105 107 106 108 /** Reports an error message to the logging facility -
trunk/psLib/src/sys/psLogMsg.h
r2204 r3115 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $14 * @date $Date: 200 4-10-27 00:57:31 $13 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:11 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 74 74 ); 75 75 76 #ifndef SWIG 76 77 /** This procedure is functionally equivalent to psLogMsg(), except that 77 78 * it takes a va_list as the message parameter, not a printf-style string. … … 84 85 va_list ap ///< varargs argument list 85 86 ); 87 #endif 86 88 87 89 ///< Status codes for log messages -
trunk/psLib/src/sys/psTrace.c
r2600 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-02 21:12:52$11 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:11 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 125 125 for (i = 0; i < currentNode->n; i++) { 126 126 if (NULL == currentNode->subcomp[i]) { 127 psLogMsg( PS_ERRORNAME_DOMAIN"p_psTraceReset", PS_LOG_WARN,127 psLogMsg("p_psTraceReset", PS_LOG_WARN, 128 128 PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT, 129 129 i, currentNode->name); … … 327 327 for (i = 0; i < currentNode->n; i++) { 328 328 if (NULL == currentNode->subcomp[i]) { 329 psLogMsg( PS_ERRORNAME_DOMAIN"p_psTraceReset", PS_LOG_WARN,329 psLogMsg("p_psTraceReset", PS_LOG_WARN, 330 330 PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT, 331 331 i, currentNode->name); -
trunk/psLib/src/sys/psType.h
r3025 r3115 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 1-17 20:58:21 $13 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:11 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 51 51 typedef float psF32; ///< 32-bit floating point 52 52 typedef double psF64; ///< 64-bit floating point 53 #ifdef SWIG 54 typedef struct 55 { 56 float re, im; 57 } 58 psC32; 59 typedef struct 60 { 61 double re,im; 62 } 63 psC64; 64 #else 53 65 typedef float _Complex psC32; ///< complex with 32-bit floating point Real and Imagary numbers 54 66 typedef double _Complex psC64; ///< complex with 64-bit floating point Real and Imagary numbers 67 #endif 55 68 typedef void* psPtr; ///< void pointer 56 69 typedef bool psBool; ///< boolean value -
trunk/psLib/src/sysUtils/Makefile
r2869 r3115 1 ############################################################################### 2 ## 3 ## Makefile: sysUtils 4 ## 5 ## $Revision: 1.24 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2005-01-03 23:41:36 $ 7 ## 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii 9 ############################################################################### 10 11 # Define variable prefix to the top level project - psLib 12 # This is necessary for definition is Makefile.Globals uses prefix 13 14 ifndef prefix 15 export prefix=$(shell cd ../..;pwd) 16 endif 17 18 # Define the two targets to be built 19 20 TARGET_STATIC = libpslib.a 21 22 # Include the make global definitions for the project 23 24 include ../Makefile.Globals 25 26 # Set CFLAGS used by the implicit rule to compile .c 27 28 CFLAGS := $(CFLAGS_RELOC) -DPS_LIB_VERSION="\"$(PS_LIB_VERSION)\"" -I../collections -I../dataManip -I../sysUtils -I../include -I../astronomy -I../image -I.. 29 30 # Define the source objects 31 32 SRC_OBJS = psMemory.o \ 33 psError.o \ 34 psTrace.o \ 35 psLogMsg.o \ 36 psAbort.o \ 37 psString.o \ 38 psConfigure.o \ 39 psErrorCodes.o 40 41 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 42 43 HEADERS = $(SRC_OBJS:.o=.h) psType.h 44 45 # Define PHONY target "all" which will make all the necessary items 46 47 all: $(TARGET_STATIC) 48 49 psErrorCodes.h: ../psErrorCodes.dat 50 perl ../parseErrorCodes.pl --data=$? $@ 51 52 psErrorCodes.c: ../psErrorCodes.dat 53 perl ../parseErrorCodes.pl --data=$? $@ 1 # Makefile.in generated by automake 1.9.1 from Makefile.am. 2 # src/sysUtils/Makefile. Generated from Makefile.in by configure. 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004 Free Software Foundation, Inc. 6 # This Makefile.in is free software; the Free Software Foundation 7 # gives unlimited permission to copy and/or distribute it, 8 # with or without modifications, as long as this notice is preserved. 9 10 # This program is distributed in the hope that it will be useful, 11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13 # PARTICULAR PURPOSE. 14 15 16 17 18 SOURCES = $(libpslibsysUtils_la_SOURCES) 19 20 srcdir = . 21 top_srcdir = ../.. 22 23 pkgdatadir = $(datadir)/pslib 24 pkglibdir = $(libdir)/pslib 25 pkgincludedir = $(includedir)/pslib 26 top_builddir = ../.. 27 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd 28 INSTALL = /usr/bin/install -c 29 install_sh_DATA = $(install_sh) -c -m 644 30 install_sh_PROGRAM = $(install_sh) -c 31 install_sh_SCRIPT = $(install_sh) -c 32 INSTALL_HEADER = $(INSTALL_DATA) 33 transform = $(program_transform_name) 34 NORMAL_INSTALL = : 35 PRE_INSTALL = : 36 POST_INSTALL = : 37 NORMAL_UNINSTALL = : 38 PRE_UNINSTALL = : 39 POST_UNINSTALL = : 40 build_triplet = x86_64-unknown-linux-gnu 41 host_triplet = x86_64-unknown-linux-gnu 42 subdir = src/sysUtils 43 DIST_COMMON = README $(pslibinclude_HEADERS) $(srcdir)/Makefile.am \ 44 $(srcdir)/Makefile.in 45 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 46 am__aclocal_m4_deps = $(top_srcdir)/configure.in 47 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 48 $(ACLOCAL_M4) 49 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs 50 CONFIG_HEADER = $(top_builddir)/src/config.h 51 CONFIG_CLEAN_FILES = 52 LTLIBRARIES = $(noinst_LTLIBRARIES) 53 libpslibsysUtils_la_LIBADD = 54 am_libpslibsysUtils_la_OBJECTS = psMemory.lo psError.lo psTrace.lo \ 55 psLogMsg.lo psAbort.lo psString.lo psConfigure.lo \ 56 psErrorCodes.lo 57 libpslibsysUtils_la_OBJECTS = $(am_libpslibsysUtils_la_OBJECTS) 58 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/src 59 depcomp = $(SHELL) $(top_srcdir)/depcomp 60 am__depfiles_maybe = depfiles 61 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 62 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 63 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(CC) $(DEFS) \ 64 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ 65 $(AM_CFLAGS) $(CFLAGS) 66 CCLD = $(CC) 67 LINK = $(LIBTOOL) --mode=link --tag=CC $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ 68 $(AM_LDFLAGS) $(LDFLAGS) -o $@ 69 SOURCES = $(libpslibsysUtils_la_SOURCES) 70 DIST_SOURCES = $(libpslibsysUtils_la_SOURCES) 71 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; 72 am__vpath_adj = case $$p in \ 73 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ 74 *) f=$$p;; \ 75 esac; 76 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`; 77 am__installdirs = "$(DESTDIR)$(pslibincludedir)" 78 pslibincludeHEADERS_INSTALL = $(INSTALL_HEADER) 79 HEADERS = $(pslibinclude_HEADERS) 80 ETAGS = etags 81 CTAGS = ctags 82 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 83 ACLOCAL = ${SHELL} /home/desonia/panstarrs/psLib/missing --run aclocal-1.9 84 AMDEP_FALSE = # 85 AMDEP_TRUE = 86 AMTAR = ${SHELL} /home/desonia/panstarrs/psLib/missing --run tar 87 AR = ar 88 AUTOCONF = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoconf 89 AUTOHEADER = ${SHELL} /home/desonia/panstarrs/psLib/missing --run autoheader 90 AUTOMAKE = ${SHELL} /home/desonia/panstarrs/psLib/missing --run automake-1.9 91 AWK = gawk 92 CC = gcc 93 CCDEPMODE = depmode=gcc3 94 CFLAGS = -g -O2 -g2 -Wall -std=c99 -D_GNU_SOURCE -I/usr/include -I/usr/include/libxml2 95 CONFIG_FILE = /home/desonia/panstarrs/psLib/config/psTime.config 96 CPP = gcc -E 97 CPPFLAGS = 98 CXX = g++ 99 CXXCPP = g++ -E 100 CXXDEPMODE = depmode=gcc3 101 CXXFLAGS = -g -O2 102 CYGPATH_W = echo 103 DEFS = -DHAVE_CONFIG_H 104 DEPDIR = .deps 105 ECHO = echo 106 ECHO_C = 107 ECHO_N = -n 108 ECHO_T = 109 EGREP = grep -E 110 EXEEXT = 111 F77 = g77 112 FFLAGS = -fno-second-underscore -O -fno-f2c 113 GSL_CONFIG = /usr/bin/gsl-config 114 INSTALL_DATA = ${INSTALL} -m 644 115 INSTALL_PROGRAM = ${INSTALL} 116 INSTALL_SCRIPT = ${INSTALL} 117 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s 118 LDFLAGS = 119 LIBOBJS = 120 LIBS = 121 LIBTOOL = $(SHELL) $(top_builddir)/libtool 122 LN_S = ln -s 123 LTLIBOBJS = 124 MAKEINFO = ${SHELL} /home/desonia/panstarrs/psLib/missing --run makeinfo 125 OBJEXT = o 126 PACKAGE = pslib 127 PACKAGE_BUGREPORT = 128 PACKAGE_NAME = 129 PACKAGE_STRING = 130 PACKAGE_TARNAME = 131 PACKAGE_VERSION = 132 PATH_SEPARATOR = : 133 PERL = /usr/bin/perl 134 PSLIB_CFLAGS = -I${prefix}/include 135 PSLIB_LIBS = -L${exec_prefix}/lib -lpslib -lcfitsio -lfftw3f -L/usr/lib64 -lgsl -lgslcblas -lm -lxml2 -lz -lpthread -lm 136 RANLIB = ranlib 137 SET_MAKE = 138 SHELL = /bin/sh 139 STRIP = strip 140 SWIG = /usr/bin/swig 141 VERSION = 1.5 142 XML_CONFIG = /usr/bin/xml2-config 143 ac_ct_AR = ar 144 ac_ct_CC = gcc 145 ac_ct_CXX = g++ 146 ac_ct_F77 = g77 147 ac_ct_RANLIB = ranlib 148 ac_ct_STRIP = strip 149 am__fastdepCC_FALSE = # 150 am__fastdepCC_TRUE = 151 am__fastdepCXX_FALSE = # 152 am__fastdepCXX_TRUE = 153 am__include = include 154 am__leading_dot = . 155 am__quote = 156 am__tar = ${AMTAR} chof - "$$tardir" 157 am__untar = ${AMTAR} xf - 158 bindir = ${exec_prefix}/bin 159 build = x86_64-unknown-linux-gnu 160 build_alias = 161 build_cpu = x86_64 162 build_os = linux-gnu 163 build_vendor = unknown 164 datadir = ${prefix}/share 165 exec_prefix = ${prefix} 166 host = x86_64-unknown-linux-gnu 167 host_alias = 168 host_cpu = x86_64 169 host_os = linux-gnu 170 host_vendor = unknown 171 includedir = ${prefix}/include 172 infodir = ${prefix}/info 173 install_sh = /home/desonia/panstarrs/psLib/install-sh 174 libdir = ${exec_prefix}/lib 175 libexecdir = ${exec_prefix}/libexec 176 localstatedir = ${prefix}/var 177 mandir = ${prefix}/man 178 mkdir_p = mkdir -p -- 179 oldincludedir = /usr/include 180 prefix = /home/desonia/panstarrs/psLib 181 program_transform_name = s,x,x, 182 sbindir = ${exec_prefix}/sbin 183 sharedstatedir = ${prefix}/com 184 sysconfdir = ${prefix}/etc 185 target_alias = 186 187 #Makefile for sysUtils functions of psLib 188 # 189 INCLUDES = \ 190 -I$(top_srcdir)/src/astronomy \ 191 -I$(top_srcdir)/src/collections \ 192 -I$(top_srcdir)/src/dataManip \ 193 -I$(top_srcdir)/src/fileUtils \ 194 -I$(top_srcdir)/src/image \ 195 $(all_includes) 196 197 noinst_LTLIBRARIES = libpslibsysUtils.la 198 libpslibsysUtils_la_SOURCES = \ 199 psMemory.c \ 200 psError.c \ 201 psTrace.c \ 202 psLogMsg.c \ 203 psAbort.c \ 204 psString.c \ 205 psConfigure.c \ 206 psErrorCodes.c 207 208 BUILT_SOURCES = psSysUtilsErrors.h 209 EXTRA_DIST = psSysUtilsErrors.dat psSysUtilsErrors.h 210 pslibincludedir = $(includedir)/pslib 211 pslibinclude_HEADERS = \ 212 psType.h \ 213 psMemory.h \ 214 psError.h \ 215 psTrace.h \ 216 psLogMsg.h \ 217 psAbort.h \ 218 psString.h \ 219 psConfigure.h \ 220 psErrorCodes.h 221 222 all: $(BUILT_SOURCES) 223 $(MAKE) $(AM_MAKEFLAGS) all-am 224 225 .SUFFIXES: 226 .SUFFIXES: .c .lo .o .obj 227 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) 228 @for dep in $?; do \ 229 case '$(am__configure_deps)' in \ 230 *$$dep*) \ 231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \ 232 && exit 0; \ 233 exit 1;; \ 234 esac; \ 235 done; \ 236 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/sysUtils/Makefile'; \ 237 cd $(top_srcdir) && \ 238 $(AUTOMAKE) --gnu src/sysUtils/Makefile 239 .PRECIOUS: Makefile 240 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 241 @case '$?' in \ 242 *config.status*) \ 243 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 244 *) \ 245 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 246 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 247 esac; 248 249 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 250 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 251 252 $(top_srcdir)/configure: $(am__configure_deps) 253 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 254 $(ACLOCAL_M4): $(am__aclocal_m4_deps) 255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh 256 257 clean-noinstLTLIBRARIES: 258 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES) 259 @list='$(noinst_LTLIBRARIES)'; for p in $$list; do \ 260 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ 261 test "$$dir" != "$$p" || dir=.; \ 262 echo "rm -f \"$${dir}/so_locations\""; \ 263 rm -f "$${dir}/so_locations"; \ 264 done 265 libpslibsysUtils.la: $(libpslibsysUtils_la_OBJECTS) $(libpslibsysUtils_la_DEPENDENCIES) 266 $(LINK) $(libpslibsysUtils_la_LDFLAGS) $(libpslibsysUtils_la_OBJECTS) $(libpslibsysUtils_la_LIBADD) $(LIBS) 267 268 mostlyclean-compile: 269 -rm -f *.$(OBJEXT) 270 271 distclean-compile: 272 -rm -f *.tab.c 273 274 include ./$(DEPDIR)/psAbort.Plo 275 include ./$(DEPDIR)/psConfigure.Plo 276 include ./$(DEPDIR)/psError.Plo 277 include ./$(DEPDIR)/psErrorCodes.Plo 278 include ./$(DEPDIR)/psLogMsg.Plo 279 include ./$(DEPDIR)/psMemory.Plo 280 include ./$(DEPDIR)/psString.Plo 281 include ./$(DEPDIR)/psTrace.Plo 282 283 .c.o: 284 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 285 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 286 # source='$<' object='$@' libtool=no \ 287 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 288 # $(COMPILE) -c $< 289 290 .c.obj: 291 if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ 292 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 293 # source='$<' object='$@' libtool=no \ 294 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 295 # $(COMPILE) -c `$(CYGPATH_W) '$<'` 296 297 .c.lo: 298 if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ 299 then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi 300 # source='$<' object='$@' libtool=yes \ 301 # DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) \ 302 # $(LTCOMPILE) -c -o $@ $< 303 304 mostlyclean-libtool: 305 -rm -f *.lo 306 307 clean-libtool: 308 -rm -rf .libs _libs 309 310 distclean-libtool: 311 -rm -f libtool 312 uninstall-info-am: 313 install-pslibincludeHEADERS: $(pslibinclude_HEADERS) 314 @$(NORMAL_INSTALL) 315 test -z "$(pslibincludedir)" || $(mkdir_p) "$(DESTDIR)$(pslibincludedir)" 316 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 317 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ 318 f=$(am__strip_dir) \ 319 echo " $(pslibincludeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 320 $(pslibincludeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pslibincludedir)/$$f"; \ 321 done 322 323 uninstall-pslibincludeHEADERS: 324 @$(NORMAL_UNINSTALL) 325 @list='$(pslibinclude_HEADERS)'; for p in $$list; do \ 326 f=$(am__strip_dir) \ 327 echo " rm -f '$(DESTDIR)$(pslibincludedir)/$$f'"; \ 328 rm -f "$(DESTDIR)$(pslibincludedir)/$$f"; \ 329 done 330 331 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 332 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 333 unique=`for i in $$list; do \ 334 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 335 done | \ 336 $(AWK) ' { files[$$0] = 1; } \ 337 END { for (i in files) print i; }'`; \ 338 mkid -fID $$unique 339 tags: TAGS 340 341 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 342 $(TAGS_FILES) $(LISP) 343 tags=; \ 344 here=`pwd`; \ 345 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 346 unique=`for i in $$list; do \ 347 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 348 done | \ 349 $(AWK) ' { files[$$0] = 1; } \ 350 END { for (i in files) print i; }'`; \ 351 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ 352 test -n "$$unique" || unique=$$empty_fix; \ 353 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 354 $$tags $$unique; \ 355 fi 356 ctags: CTAGS 357 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 358 $(TAGS_FILES) $(LISP) 359 tags=; \ 360 here=`pwd`; \ 361 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 362 unique=`for i in $$list; do \ 363 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 364 done | \ 365 $(AWK) ' { files[$$0] = 1; } \ 366 END { for (i in files) print i; }'`; \ 367 test -z "$(CTAGS_ARGS)$$tags$$unique" \ 368 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 369 $$tags $$unique 370 371 GTAGS: 372 here=`$(am__cd) $(top_builddir) && pwd` \ 373 && cd $(top_srcdir) \ 374 && gtags -i $(GTAGS_ARGS) $$here 375 376 distclean-tags: 377 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 378 379 distdir: $(DISTFILES) 380 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ 381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ 382 list='$(DISTFILES)'; for file in $$list; do \ 383 case $$file in \ 384 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ 385 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ 386 esac; \ 387 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ 388 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 389 if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 390 dir="/$$dir"; \ 391 $(mkdir_p) "$(distdir)$$dir"; \ 392 else \ 393 dir=''; \ 394 fi; \ 395 if test -d $$d/$$file; then \ 396 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ 397 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ 398 fi; \ 399 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ 400 else \ 401 test -f $(distdir)/$$file \ 402 || cp -p $$d/$$file $(distdir)/$$file \ 403 || exit 1; \ 404 fi; \ 405 done 406 check-am: all-am 407 check: $(BUILT_SOURCES) 408 $(MAKE) $(AM_MAKEFLAGS) check-am 409 all-am: Makefile $(LTLIBRARIES) $(HEADERS) 410 installdirs: 411 for dir in "$(DESTDIR)$(pslibincludedir)"; do \ 412 test -z "$$dir" || $(mkdir_p) "$$dir"; \ 413 done 414 install: $(BUILT_SOURCES) 415 $(MAKE) $(AM_MAKEFLAGS) install-am 416 install-exec: install-exec-am 417 install-data: install-data-am 418 uninstall: uninstall-am 419 420 install-am: all-am 421 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 422 423 installcheck: installcheck-am 424 install-strip: 425 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 426 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ 427 `test -z '$(STRIP)' || \ 428 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 429 mostlyclean-generic: 430 431 clean-generic: 432 433 distclean-generic: 434 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) 435 436 maintainer-clean-generic: 437 @echo "This command is intended for maintainers to use" 438 @echo "it deletes files that may require special tools to rebuild." 439 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) 440 clean: clean-am 441 442 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \ 443 mostlyclean-am 444 445 distclean: distclean-am 446 -rm -rf ./$(DEPDIR) 447 -rm -f Makefile 448 distclean-am: clean-am distclean-compile distclean-generic \ 449 distclean-libtool distclean-tags 450 451 dvi: dvi-am 452 453 dvi-am: 454 455 html: html-am 456 457 info: info-am 458 459 info-am: 460 461 install-data-am: install-pslibincludeHEADERS 462 463 install-exec-am: 464 465 install-info: install-info-am 466 467 install-man: 468 469 installcheck-am: 470 471 maintainer-clean: maintainer-clean-am 472 -rm -rf ./$(DEPDIR) 473 -rm -f Makefile 474 maintainer-clean-am: distclean-am maintainer-clean-generic 475 476 mostlyclean: mostlyclean-am 477 478 mostlyclean-am: mostlyclean-compile mostlyclean-generic \ 479 mostlyclean-libtool 480 481 pdf: pdf-am 482 483 pdf-am: 484 485 ps: ps-am 486 487 ps-am: 488 489 uninstall-am: uninstall-info-am uninstall-pslibincludeHEADERS 490 491 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ 492 clean-libtool clean-noinstLTLIBRARIES ctags distclean \ 493 distclean-compile distclean-generic distclean-libtool \ 494 distclean-tags distdir dvi dvi-am html html-am info info-am \ 495 install install-am install-data install-data-am install-exec \ 496 install-exec-am install-info install-info-am install-man \ 497 install-pslibincludeHEADERS install-strip installcheck \ 498 installcheck-am installdirs maintainer-clean \ 499 maintainer-clean-generic mostlyclean mostlyclean-compile \ 500 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 501 tags uninstall uninstall-am uninstall-info-am \ 502 uninstall-pslibincludeHEADERS 503 54 504 55 505 psSysUtilsErrors.h: psSysUtilsErrors.dat 56 perl ../parseErrorCodes.pl --data=$? $@ 57 58 59 # Rule to make static library 60 61 libpslib.a: $(OBJS) 62 # The ar option -r is to add/replace object and -s is to create 63 # a symbol table in the archive 64 $(AR) rcs ../$@ $(OBJS) 65 66 # Define PHONY target "install" which will install necessary files 67 68 install: $(TARGET_STATIC) 69 install $(HEADERS) $(includedir) 70 71 # Define PHONY target "distclean" which will cleanup the distribution 72 73 distclean: clean 74 $(RM) ../$(TARGET_STATIC) 75 76 # Define PHONY target "clean" which will cleanup the development area 77 78 clean: 79 @echo " Deleting intermediate files for 'sysUtils'" 80 $(RM) $(OBJS) *.lint 81 82 cleandep: 83 $(RM) $(OBJS:.o=.d) 84 85 %.lint: %.c 86 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 87 88 makedir/%.o: %.c 89 $(CC) -c $(CFLAGS) -o $@ $< 90 91 makedir/%.d: %.c 92 $(CC) -MM $(CFLAGS) $< > $@.tmp 93 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@ 94 $(RM) -f $@.tmp 95 96 include $(OBJS:.o=.d) 506 perl $(top_srcdir)/src/parseErrorCodes.pl --data=$? $@ 507 # Tell versions [3.59,3.63) of GNU make to not export all variables. 508 # Otherwise a system limit (for SysV at least) may be exceeded. 509 .NOEXPORT: -
trunk/psLib/src/sysUtils/psConfigure.c
r2867 r3115 12 12 * @author Robert DeSonia, MHPCC 13 13 * 14 * @version $Revision: 1. 5$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 1-03 23:35:07$14 * @version $Revision: 1.6 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:11 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 22 22 #include "psConfigure.h" 23 23 #include "psSysUtilsErrors.h" 24 25 26 #ifndef PS_LIB_VERSION 27 #define PS_LIB_VERSION "psLib version unknown" 28 #pragma warning PS_LIB_VERSION was not defined in the makefile. 29 #endif 24 #include "config.h" 30 25 31 26 char* psLibVersion(void) 32 27 { 33 // PS_LIB_VERSION comes from Makefile.Globals 34 return(psStringCopy(PS_LIB_VERSION)); 28 char version[80]; 29 snprintf(version,80,"%s-v%s",PACKAGE,VERSION); 30 31 return(psStringCopy(version)); 35 32 } 36 33 -
trunk/psLib/src/sysUtils/psError.h
r2972 r3115 12 12 * @author Eric Van Alst, MHPCC 13 13 * 14 * @version $Revision: 1.1 6$ $Name: not supported by cvs2svn $15 * @date $Date: 2005-0 1-13 19:50:45$14 * @version $Revision: 1.17 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:11 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 90 90 ); 91 91 92 #ifndef SWIG 92 93 /** Prints error stack to specified open file descriptor 93 94 * … … 103 104 va_list va ///< any parameters required in fmt 104 105 ); 106 #endif 105 107 106 108 /** Reports an error message to the logging facility -
trunk/psLib/src/sysUtils/psLogMsg.h
r2204 r3115 11 11 * @author George Gusciora, MHPCC 12 12 * 13 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $14 * @date $Date: 200 4-10-27 00:57:31 $13 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:11 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 74 74 ); 75 75 76 #ifndef SWIG 76 77 /** This procedure is functionally equivalent to psLogMsg(), except that 77 78 * it takes a va_list as the message parameter, not a printf-style string. … … 84 85 va_list ap ///< varargs argument list 85 86 ); 87 #endif 86 88 87 89 ///< Status codes for log messages -
trunk/psLib/src/sysUtils/psSysUtilsErrors.h
r2600 r3115 7 7 * @author Robert DeSonia, MHPCC 8 8 * 9 * @version $Revision: 1.1 3$ $Name: not supported by cvs2svn $10 * @date $Date: 200 4-12-02 21:12:52$9 * @version $Revision: 1.14 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:11 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 26 26 * DO NOT EDIT THE LINES BETWEEN //~Start and //~End! ANY CHANGES WILL BE OVERWRITTEN. 27 27 */ 28 29 #define PS_ERRORNAME_DOMAIN "psLib.sysUtils."30 28 31 29 //~Start #define PS_ERRORTEXT_$1 "$2" -
trunk/psLib/src/sysUtils/psTrace.c
r2600 r3115 9 9 * @author GLG, MHPCC 10 10 * 11 * @version $Revision: 1.4 0$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-02 21:12:52$11 * @version $Revision: 1.41 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:11 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 125 125 for (i = 0; i < currentNode->n; i++) { 126 126 if (NULL == currentNode->subcomp[i]) { 127 psLogMsg( PS_ERRORNAME_DOMAIN"p_psTraceReset", PS_LOG_WARN,127 psLogMsg("p_psTraceReset", PS_LOG_WARN, 128 128 PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT, 129 129 i, currentNode->name); … … 327 327 for (i = 0; i < currentNode->n; i++) { 328 328 if (NULL == currentNode->subcomp[i]) { 329 psLogMsg( PS_ERRORNAME_DOMAIN"p_psTraceReset", PS_LOG_WARN,329 psLogMsg("p_psTraceReset", PS_LOG_WARN, 330 330 PS_ERRORTEXT_psTrace_NULL_SUBCOMPONENT, 331 331 i, currentNode->name); -
trunk/psLib/src/sysUtils/psType.h
r3025 r3115 11 11 * @author Ross Harman, MHPCC 12 12 * 13 * @version $Revision: 1.2 7$ $Name: not supported by cvs2svn $14 * @date $Date: 2005-0 1-17 20:58:21 $13 * @version $Revision: 1.28 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:11 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 51 51 typedef float psF32; ///< 32-bit floating point 52 52 typedef double psF64; ///< 64-bit floating point 53 #ifdef SWIG 54 typedef struct 55 { 56 float re, im; 57 } 58 psC32; 59 typedef struct 60 { 61 double re,im; 62 } 63 psC64; 64 #else 53 65 typedef float _Complex psC32; ///< complex with 32-bit floating point Real and Imagary numbers 54 66 typedef double _Complex psC64; ///< complex with 64-bit floating point Real and Imagary numbers 67 #endif 55 68 typedef void* psPtr; ///< void pointer 56 69 typedef bool psBool; ///< boolean value -
trunk/psLib/src/types/psArray.c
r2855 r3115 9 9 * @author Ross Harman, MHPCC 10 10 * 11 * @version $Revision: 1.2 2$ $Name: not supported by cvs2svn $12 * @date $Date: 200 4-12-30 20:18:36$11 * @version $Revision: 1.23 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2005-02-03 00:54:10 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 33 33 FUNCTION IMPLEMENTATION - LOCAL 34 34 *****************************************************************************/ 35 static void arrayFree(psArray* restrictpsArr);35 static void arrayFree(psArray* psArr); 36 36 37 static void arrayFree(psArray* restrictpsArr)37 static void arrayFree(psArray* psArr) 38 38 { 39 39 if (psArr == NULL) { … … 66 66 } 67 67 68 psArray* psArrayRealloc(psArray* restrictin, psU32 nalloc)68 psArray* psArrayRealloc(psArray* in, psU32 nalloc) 69 69 { 70 70 if (in == NULL) { … … 134 134 } 135 135 136 void psArrayElementFree(psArray* restrictpsArr)136 void psArrayElementFree(psArray* psArr) 137 137 { 138 138 -
trunk/psLib/src/types/psArray.h
r2793 r3115 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1. 19$ $Name: not supported by cvs2svn $15 * @date $Date: 200 4-12-23 01:14:52$14 * @version $Revision: 1.20 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:10 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 55 55 */ 56 56 psArray* psArrayAlloc( 57 psU32 nalloc ///< Total number of elements to make available.57 psU32 nalloc ///< Total number of elements to make available. 58 58 ); 59 59 … … 67 67 */ 68 68 psArray* psArrayRealloc( 69 psArray* restrict psArr,///< array to reallocate.69 psArray* psArr, ///< array to reallocate. 70 70 psU32 nalloc ///< Total number of elements to make available. 71 71 ); … … 104 104 */ 105 105 void psArrayElementFree( 106 psArray* restrict psArr///< Void pointer array to destroy.106 psArray* psArr ///< Void pointer array to destroy. 107 107 ); 108 108 -
trunk/psLib/src/types/psBitSet.c
r2273 r3115 11 11 * @author Robert DeSonia, MHPCC 12 12 * 13 * @version $Revision: 1.2 0$ $Name: not supported by cvs2svn $14 * @date $Date: 200 4-11-04 01:04:57$13 * @version $Revision: 1.21 $ $Name: not supported by cvs2svn $ 14 * @date $Date: 2005-02-03 00:54:10 $ 15 15 * 16 16 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 38 38 }; 39 39 40 static void bitSetFree(psBitSet* restrictinBitSet);40 static void bitSetFree(psBitSet* inBitSet); 41 41 42 42 /** Private function to create a mask. … … 58 58 } 59 59 60 static void bitSetFree(psBitSet* restrictinBitSet)60 static void bitSetFree(psBitSet* inBitSet) 61 61 { 62 62 if (inBitSet == NULL) { … … 161 161 162 162 psBitSet* psBitSetOp(psBitSet* outBitSet, 163 const psBitSet* restrictinBitSet1,163 const psBitSet* inBitSet1, 164 164 char *operator, 165 const psBitSet* restrictinBitSet2)165 const psBitSet* inBitSet2) 166 166 { 167 167 psS32 i = 0; … … 264 264 break; 265 265 default: 266 psAbort( PS_ERRORNAME_DOMAIN"psBitSetOp",266 psAbort("psBitSetOp", 267 267 "Unexpected error - operator parsed successfully but not valid?"); 268 268 } … … 272 272 273 273 psBitSet* psBitSetNot(psBitSet* outBitSet, 274 const psBitSet* restrictinBitSet)274 const psBitSet* inBitSet) 275 275 { 276 276 if (inBitSet == NULL) { … … 291 291 } 292 292 293 char *psBitSetToString(const psBitSet* restrictinBitSet)293 char *psBitSetToString(const psBitSet* inBitSet) 294 294 { 295 295 psS32 i = 0; -
trunk/psLib/src/types/psBitSet.h
r2204 r3115 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.1 5$ $Name: not supported by cvs2svn $15 * @date $Date: 200 4-10-27 00:57:31$14 * @version $Revision: 1.16 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2005-02-03 00:54:10 $ 16 16 * 17 17 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 56 56 /*@null@*/ 57 57 psBitSet* psBitSetAlloc( 58 psS32 n ///< Number of bits in psBitSet array58 psS32 n ///< Number of bits in psBitSet array 59 59 ); 60 60 … … 69 69 psBitSet* psBitSetSet( 70 70 /* @returned@ */ 71 psBitSet* restrict inMask,///< Pointer to psBitSet to be set.72 psS32 bit ///< Bit to be set.71 psBitSet* inMask, ///< Pointer to psBitSet to be set. 72 psS32 bit ///< Bit to be set. 73 73 ); 74 74 … … 83 83 psBitSet* psBitSetClear( 84 84 /* @returned@ */ 85 psBitSet* restrict inMask,///< Pointer to psBitSet to be cleared.86 psS32 bit ///< Bit to be cleared.85 psBitSet* inMask, ///< Pointer to psBitSet to be cleared. 86 psS32 bit ///< Bit to be cleared. 87 87 ); 88 88 … … 98 98 99 99 psBool psBitSetTest( 100 const psBitSet* restrict inMask,///< Pointer psBitSet to be tested.101 psS32 bit ///< Bit to be tested.100 const psBitSet* inMask, ///< Pointer psBitSet to be tested. 101 psS32 bit ///< Bit to be tested. 102 102 ); 103 103 … … 111 111 psBitSet* psBitSetOp( 112 112 /* @returned@ */ 113 psBitSet* restrict outMask,///< Resulting psBitSet from binary operation114 const psBitSet* restrict inMask1,///< First psBitSet on which to operate113 psBitSet* outMask, ///< Resulting psBitSet from binary operation 114 const psBitSet* inMask1, ///< First psBitSet on which to operate 115 115 char *operator, ///< Bit operation 116 const psBitSet* restrict inMask2///< First psBitSet on which to operate116 const psBitSet* inMask2 ///< First psBitSet on which to operate 117 117 ); 118 118 … … 126 126 psBitSet* psBitSetNot( 127 127 psBitSet* outBitSet, ///< Resulting psBitSet from operation 128 const psBitSet* restrict inBitSet///< Input psBitSet128 const psBitSet* inBitSet ///< Input psBitSet 129 129 ); 130 130 … … 138 138 139 139 char *psBitSetToString( 140 const psBitSet* restrict inMask///< psBitSet to convert */140 const psBitSet* inMask ///< psBitSet to convert */ 141 141 ); 142 142 -
trunk/psLib/src/types/psLookupTable.c
r2725 r3115 7 7 * @author Ross Harman, MHPCC 8 8 * 9 * @version $Revision: 1. 6$ $Name: not supported by cvs2svn $10 * @date $Date: 200 4-12-16 18:53:02$9 * @version $Revision: 1.7 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2005-02-03 00:54:11 $ 11 11 * 12 12 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 455 455 psU64 failedLines = 0; 456 456 FILE *fp = NULL; 457 psElemType elemType ;457 psElemType elemType = PS_TYPE_PTR; 458 458 psVector *indexVec = NULL; 459 459 psVector *valuesVec = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.
