--- ./Makefile.in.orig 2008-11-02 20:13:46.000000000 +0000 +++ ./Makefile.in 2008-11-02 21:20:42.000000000 +0000 @@ -28,6 +28,11 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ +bindir = @bindir@ +includedir = @includedir@ +mandir = @mandir@ +datadir = @datadir@ +libdir = @libdir@ # The following definition can be set to non-null for special systems # like AFS with replication. It allows the pathnames used for installation @@ -37,19 +42,19 @@ INSTALL_ROOT = # Directory in which to install the .a or .so binary for the FUNTOOLS library: -LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib +LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir) # Directory in which to install the program wish: -BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin +BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir) # Directory in which to install the funtools.h include file: -INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include +INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools # Top-level directory for manual entries: -MAN_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/man +MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir) # Top-level directory for share entries: -MAN_SHARE_DIR = $(INSTALL_ROOT)$(prefix)/share/funtools +MAN_SHARE_DIR = $(INSTALL_ROOT)$(datadir)/funtools # util files are in the util subdirectory UTIL_INC = -I./util @@ -60,7 +65,7 @@ # FITSY_LIBS = -L./fitsy -lfitsy # wcs files are in the wcs subdirectory -WCS_INC = -I./wcs +WCS_INC = -I/usr/include/wcs # WCS_LIBS = -L./wcs -lwcs # filter files are in the filter subdirectory @@ -225,7 +230,7 @@ echo $(PROGS) | ./mkfunmainlib > funmainlib.c; shlib: sublib $(LIBOBJS) - @(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \ + @(rm -rf $(PACKAGE)tmp; mkdir -p $(PACKAGE)tmp; \ (cd $(PACKAGE)tmp && ar x ../$(LIB)); \ CC='$(CC)' CXX=$(CXX) \ ./mklib -o $(PACKAGE) $(PACKAGE)tmp/*.o; \ @@ -237,7 +242,7 @@ $(RANLIB) lib$(PACKAGE)MainLib.a) shmainlib: mainlib - @(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \ + @(rm -rf $(PACKAGE)tmp; mkdir -p $(PACKAGE)tmp; \ (cd $(PACKAGE)tmp && ar x ../lib$(PACKAGE)MainLib.a); \ CC='$(CC)' CXX='$(CXX)' \ ./mklib -o $(PACKAGE)MainLib -L. -lfuntools $(PACKAGE)tmp/*.o;\ @@ -248,7 +253,7 @@ $(RANLIB) libtclfun.a) shtclfun: tclfun - @(rm -rf $(PACKAGE)tmp; mkdir $(PACKAGE)tmp; \ + @(rm -rf $(PACKAGE)tmp; mkdir -p $(PACKAGE)tmp; \ (cd $(PACKAGE)tmp && ar x ../$(LIB) && ar x ../libtclfun.a); \ CC='$(CC)' CXX='$(CXX)' \ ./mklib -o tclfun $(PACKAGE)tmp/*.o; \ @@ -422,7 +427,7 @@ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ - mkdir $$i; \ + mkdir -p $$i; \ chmod 755 $$i; \ else true; \ fi; \ @@ -462,7 +467,7 @@ install-man: @if [ ! -d $(MAN_INSTALL_DIR) ] ; then \ echo "Making directory $(MAN_INSTALL_DIR)"; \ - mkdir $(MAN_INSTALL_DIR); \ + mkdir -p $(MAN_INSTALL_DIR); \ chmod 755 $(MAN_INSTALL_DIR); \ else true; \ fi; @@ -473,7 +478,7 @@ M="$(MAN_INSTALL_DIR)/man$$E"; \ if [ ! -d $$M ] ; then \ echo "Making directory $$M"; \ - mkdir $$M; \ + mkdir -p $$M; \ chmod 755 $$M; \ else true; \ fi; \ --- ./filter/Makefile.in.orig 2008-11-02 20:43:46.000000000 +0000 +++ ./filter/Makefile.in 2008-11-03 10:54:33.000000000 +0000 @@ -29,6 +29,9 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ +bindir = @bindir@ +includedir = @includedir@ +libdir = @libdir@ # The following definition can be set to non-null for special systems # like AFS with replication. It allows the pathnames used for installation @@ -38,13 +41,13 @@ INSTALL_ROOT = # Directory in which to install the .a, .so, and .o files: -LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib +LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir) # Directory in which to install the programs: -BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin +BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir) # Directory in which to install the include files: -INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include +INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools/filter # util files are in the util directory at same level UTIL_INC = -I../util @@ -55,7 +58,7 @@ #FITSY_LIBS = -L../fitsy # wcs files are in the wcs subdirectory -WCS_INC = -I../wcs +WCS_INC = -I/usr/include/wcs #WCS_LIBS = -L../wcs -lwcs # extra includes for compiling @@ -161,7 +164,7 @@ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ - mkdir $$i; \ + mkdir -p $$i; \ chmod 755 $$i; \ else true; \ fi; \ @@ -211,7 +214,7 @@ .c.o: $(CC) -c $(CC_SWITCHES) $< -filtprog_c.o: filtprog_c.c regions_h.h xalloc_c.h \ +filtprog_c.o: filtprog_c.c regions_h.h xalloc_c.h swap_c.h \ events_c.h image_c.h evregions_c.h imregions_c.h filter.h $(CC) -c $(CC_SWITCHES) -DOBJPATH="$(OBJPATH)" \ -DFILTER_CC="$(FILTER_CC)" -DFILTER_CFLAGS="$(FILTER_CFLAGS)" \ @@ -226,6 +229,10 @@ $(RM) xalloc_c.h ./inc.sed XALLOC_C < ../util/xalloc.c > xalloc_c.h +swap_c.h: swap.c inc.sed + $(RM) swap_c.h + ./inc.sed SWAP_C < swap.c > swap_c.h + events_c.h: evfilter.c inc.sed $(RM) events_c.h ./inc.sed EVENTS_C < evfilter.c > events_c.h @@ -250,7 +257,7 @@ $(RM) imregions_c.h ./inc.sed IMREGIONS_C < imregions.c > imregions_c.h -headers: regions_h.h xalloc_c.h \ +headers: regions_h.h xalloc_c.h swap_c.h \ events_c.h image_c.h evregions_c.h imregions_c.h # remake the parser --- ./fitsy/Makefile.in.orig 2008-11-02 20:50:20.000000000 +0000 +++ ./fitsy/Makefile.in 2008-11-02 21:21:32.000000000 +0000 @@ -28,6 +28,11 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ +bindir = @bindir@ +includedir = @includedir@ +mandir = @mandir@ +datadir = @datadir@ +libdir = @libdir@ # The following definition can be set to non-null for special systems # like AFS with replication. It allows the pathnames used for installation @@ -37,13 +42,13 @@ INSTALL_ROOT = # Directory in which to install the .a, .so, and .o files: -LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib +LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir) # Directory in which to install the programs: -BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin +BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir) # Directory in which to install the include files: -INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include +INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools/fitsy # There are just too many different versions of "install" around; # better to use the install-sh script that comes with the distribution, @@ -186,7 +191,7 @@ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ - mkdir $$i; \ + mkdir -p $$i; \ chmod 755 $$i; \ else true; \ fi; \ @@ -200,6 +205,8 @@ fi; @echo "Installing fitsy.h" @$(INSTALL_DATA) fitsy.h $(INCLUDE_INSTALL_DIR)/fitsy.h + @echo "Installing xfile.h" + @$(INSTALL_DATA) xfile.h $(INCLUDE_INSTALL_DIR)/xfile.h # @for i in $(PROGS) ; \ # do \ # if [ -f $$i ] ; then \ --- ./util/Makefile.in.orig 2008-11-02 20:55:57.000000000 +0000 +++ ./util/Makefile.in 2008-11-02 21:22:30.000000000 +0000 @@ -29,6 +29,11 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ +bindir = @bindir@ +includedir = @includedir@ +mandir = @mandir@ +datadir = @datadir@ +libdir = @libdir@ # The following definition can be set to non-null for special systems # like AFS with replication. It allows the pathnames used for installation @@ -38,13 +43,13 @@ INSTALL_ROOT = # Directory in which to install the .a, .so, and .o files: -LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib +LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir) # Directory in which to install the programs: -BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin +BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir) # Directory in which to install the include files: -INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include +INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)/funtools/util # extra includes for compiling INCLUDES = @@ -127,7 +132,7 @@ # the actual library we are building (if this is a subpackage) LIB = @LIB@ -TESTPROGS = tparse +TESTPROGS = tparse tlaunch tlaunch2 PROGS = gcat @@ -189,12 +194,24 @@ $(CC) $(LDFLAGS) tparse.o parse.o -o tparse $(LIB) $(LIBS) \ $(EXTRA_LIBS) +tlaunch.o: tlaunch.c + +tlaunch: tlaunch.o launch.o $(LIB) + $(CC) $(LDFLAGS) tlaunch.o launch.o -o tlaunch $(LIB) $(LIBS) \ + $(EXTRA_LIBS) + +tlaunch2.o: tlaunch2.c + +tlaunch2: tlaunch2.o + $(CC) $(LDFLAGS) tlaunch2.o -o tlaunch2 + + install-binaries: $(LIB) $(PROGS) @for i in $(LIB_INSTALL_DIR) $(INCLUDE_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \ do \ if [ ! -d $$i ] ; then \ echo "Making directory $$i"; \ - mkdir $$i; \ + mkdir -p $$i; \ chmod 755 $$i; \ else true; \ fi; \ @@ -254,4 +271,11 @@ configure: configure.in autoconf configure.in +pure: tlaunch.pure + +tlaunch.pure: tlaunch.o launch.o $(LIB) + purift $(CC) $(LDFLAGS) tlaunch.o launch.o -o tlaunch \ + $(LIB) $(LIBS) $(EXTRA_LIBS) + + # DO NOT DELETE THIS LINE -- make depend depends on it. --- ./gnu/Makefile.in.orig 2008-11-02 20:53:04.000000000 +0000 +++ ./gnu/Makefile.in 2008-11-02 20:55:46.000000000 +0000 @@ -21,6 +21,11 @@ prefix = @prefix@ exec_prefix = @exec_prefix@ +bindir = @bindir@ +includedir = @includedir@ +mandir = @mandir@ +datadir = @datadir@ +libdir = @libdir@ # The following definition can be set to non-null for special systems # like AFS with replication. It allows the pathnames used for installation @@ -53,13 +58,13 @@ EXTRA_OBJS = @EXTRA_OBJS@ # Directory in which to install the .a, .so, and .o files: -LIB_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/lib +LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir) # Directory in which to install the programs: -BIN_INSTALL_DIR = $(INSTALL_ROOT)$(exec_prefix)/bin +BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir) # Directory in which to install the include files: -INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/include +INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir) # There are just too many different versions of "install" around; # better to use the install-sh script that comes with the distribution, @@ -95,14 +100,14 @@ OBJS = sort.o -PROGS = _sort +PROGS = _funsort TESTPROGS = sorttest all: $(PROGS) -_sort: $(OBJS) - $(CC) $(LDFLAGS) $(OBJS) -o _sort +_funsort: $(OBJS) + $(CC) $(LDFLAGS) $(OBJS) -o _funsort sorttest: sorttest.o $(CC) $(LDFLAGS) sorttest.o -o sorttest -L.. -lfuntools @@ -141,10 +146,10 @@ done; -pure: _sort.pure +pure: _funsort.pure -_sort.pure: $(FUNLIB) sort.o - purify $(CC) $(LDFLAGS) sort.o -o _sort.pure \ +_funsort.pure: $(FUNLIB) sort.o + purify $(CC) $(LDFLAGS) sort.o -o _funsort.pure \ $(FUNLIB) $(LIBS) # DO NOT DELETE THIS LINE -- make depend depends on it.