IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 1178


Ignore:
Timestamp:
Jul 1, 2004, 12:38:28 PM (22 years ago)
Author:
gusciora
Message:

I'm reverting, again, to a Makefile which does not rebuild every test
program whenever psLib is recompiled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/dataManip/Makefile

    r1159 r1178  
    33##  Makefile:   test/sysUtils
    44##
    5 ##  $Revision: 1.26 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-06-30 22:30:16 $
     5##  $Revision: 1.27 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-07-01 22:38:28 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    99##
    1010###############################################################################
    11 
    12 ifndef prefix
    13     export prefix=$(shell cd ../..;pwd)
    14 endif
    1511
    1612include ../../src/Makefile.Globals
     
    2723 tst_psMatrix06 \
    2824 tst_psMatrix07 \
    29  tst_psMatrixVectorArithmetic01 \
    30  tst_psMatrixVectorArithmetic02 \
    31  tst_psMatrixVectorArithmetic03 \
    3225 tst_psStats00 \
    3326 tst_psStats01 \
     
    4437 tst_psFunc00 \
    4538 tst_psFunc01 \
     39 tst_psMinimize00 \
     40 tst_psMinimize01 \
    4641 tst_psImageStats00 \
    4742 tst_psImageStats01 \
    48  tst_psImageStats02 \
    49  tst_psImageStats03 \
    50  tst_psImageIO \
    51  tst_psVectorFFT \
    52  tst_psImageFFT
    53 # tst_psMinimize00
     43 tst_psImageStats02
    5444
    55 DEPENDENCIES = $(addprefix builddir/,$(addsuffix .d,$(TARGET)))
    56 OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
     45all: $(TARGET)
    5746
    58 all: builddir $(TARGET)
    59 
    60 builddir:
    61         mkdir builddir
    62 
    63 include $(DEPENDENCIES)
     47tst_psMatrix01:         tst_psMatrix01.o
     48tst_psMatrix02:         tst_psMatrix02.o
     49tst_psMatrix03:         tst_psMatrix03.o
     50tst_psMatrix04:         tst_psMatrix04.o
     51tst_psMatrix05:         tst_psMatrix05.o
     52tst_psMatrix06:         tst_psMatrix06.o
     53tst_psMatrix07:         tst_psMatrix07.o
     54tst_psStats00:          tst_psStats00.o
     55tst_psStats01:          tst_psStats01.o
     56tst_psStats02:          tst_psStats02.o
     57tst_psStats03:          tst_psStats03.o
     58tst_psStats04:          tst_psStats04.o
     59tst_psStats05:          tst_psStats05.o
     60tst_psStats06:          tst_psStats06.o
     61tst_psStats07:          tst_psStats07.o
     62tst_psStats08:          tst_psStats08.o
     63tst_psStats09:          tst_psStats09.o
     64tst_psHist00:           tst_psHist00.o
     65tst_psHist01:           tst_psHist01.o
     66tst_psHist02:           tst_psHist02.o
     67tst_psFunc00:           tst_psFunc00.o
     68tst_psFunc01:           tst_psFunc01.o
     69tst_psFunc02:           tst_psFunc02.o
     70tst_psFunc03:           tst_psFunc03.o
     71tst_psMinimize00:       tst_psMinimize00.o
     72tst_psMinimize01:       tst_psMinimize01.o
     73tst_psImageStats00:     tst_psImageStats00.o
     74tst_psImageStats01:     tst_psImageStats01.o
     75tst_psImageStats02:     tst_psImageStats02.o
     76tst_psImageStats03:     tst_psImageStats03.o
    6477
    6578clean:
    66         @echo "    Deleting executable and binary files for 'test/dataManip'"
    67         $(RM) $(OBJS) *.lint tmpImages/*.fits
     79        @echo "    Deleting executable and binary files for 'test/sysUtils'"
     80        $(RM) $(TARGET) *.o *.lint
    6881
    69 builddir/%.o : %.c
     82%.o : %.c
    7083        $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<
    7184
    72 %   : builddir/%.o
    73         $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest $(LDFLAGS)
     85%   : %.o
     86        $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest -lgsl -lgslcblas $(LDFLAGS)
    7487
    75 distclean: clean
     88## NOTE: The distclean target does not remove the .o files.  The Makefiles must
     89## be repaired.
     90distclean:
    7691        $(RM) $(TARGET)
    7792
     
    7994        splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
    8095
    81 cleandependencies:
    82         $(RM) $(DEPENDENCIES)
    8396
    84 builddir/%.d: %.c
    85         $(CC) -MM $(CFLAGS) -I$(PSLIB_INCL_DIR) $< | sed 's|\(.*\.o\)|builddir/\1|' > $@
    86 
    87 install: $(testbindir) $(testbindir)/verified $(TARGET)
    88         install $(TARGET) $(testbindir)
    89         install verified/*.stderr verified/*.stdout $(testbindir)/verified
    90 
    91 $(testbindir):
    92         mkdir -p $(testbindir)
    93 
    94 $(testbindir)/verified:
    95         mkdir -p $(testbindir)/verified
    96 
    97 
Note: See TracChangeset for help on using the changeset viewer.