IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 25, 2004, 5:05:13 PM (22 years ago)
Author:
desonia
Message:

Relaxed the dependency file generation to avoid remakes when psLib changes.

File:
1 edited

Legend:

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

    r1107 r1109  
    33##  Makefile:   test/sysUtils
    44##
    5 ##  $Revision: 1.20 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-06-26 01:12:22 $
     5##  $Revision: 1.21 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-06-26 03:04:44 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
    99##
    1010###############################################################################
     11
     12ifndef prefix
     13    export prefix=$(shell cd ../..;pwd)
     14endif
    1115
    1216include ../../src/Makefile.Globals
     
    3741 tst_psFunc00 \
    3842 tst_psFunc01 \
    39  tst_psMinimize00 \
    4043 tst_psImageStats00 \
    4144 tst_psImageStats01 \
    42  tst_psImageStats02
     45 tst_psImageStats02 \
     46 tst_psImageStats03 \
     47 tst_psMinimize00 \
     48 tst_psImageIO \
     49 tst_psVectorFFT \
     50 tst_psImageFFT
    4351
    44 all: $(TARGET)
     52DEPENDENCIES = $(addprefix builddir/,$(addsuffix .d,$(TARGET)))
     53OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
    4554
    46 tst_psMatrix01:         tst_psMatrix01.o
    47 tst_psMatrix02:         tst_psMatrix02.o
    48 tst_psMatrix03:         tst_psMatrix03.o
    49 tst_psMatrix04:         tst_psMatrix04.o
    50 tst_psMatrix05:         tst_psMatrix05.o
    51 tst_psMatrix06:         tst_psMatrix06.o
    52 tst_psMatrix07:         tst_psMatrix07.o
    53 tst_psStats00:          tst_psStats00.o
    54 tst_psStats01:          tst_psStats01.o
    55 tst_psStats02:          tst_psStats02.o
    56 tst_psStats03:          tst_psStats03.o
    57 tst_psStats04:          tst_psStats04.o
    58 tst_psStats05:          tst_psStats05.o
    59 tst_psStats06:          tst_psStats06.o
    60 tst_psStats07:          tst_psStats07.o
    61 tst_psStats08:          tst_psStats08.o
    62 tst_psStats09:          tst_psStats09.o
    63 tst_psHist00:           tst_psHist00.o
    64 tst_psHist01:           tst_psHist01.o
    65 tst_psHist02:           tst_psHist02.o
    66 tst_psFunc00:           tst_psFunc00.o
    67 tst_psFunc01:           tst_psFunc01.o
    68 tst_psFunc02:           tst_psFunc02.o
    69 tst_psFunc03:           tst_psFunc03.o
    70 tst_psMinimize00:       tst_psMinimize00.o
    71 tst_psImageStats00:     tst_psImageStats00.o
    72 tst_psImageStats01:     tst_psImageStats01.o
    73 tst_psImageStats02:     tst_psImageStats02.o
    74 tst_psImageStats03:     tst_psImageStats03.o
     55all: builddir $(TARGET)
     56
     57builddir:
     58        mkdir builddir
     59
     60include $(DEPENDENCIES)
    7561
    7662clean:
    77         @echo "    Deleting executable and binary files for 'test/sysUtils'"
    78         $(RM) $(TARGET) *.o *.lint
     63        @echo "    Deleting executable and binary files for 'test/dataManip'"
     64        $(RM) $(OBJS) *.lint tmpImages/*.fits
    7965
    80 %.o : %.c
     66builddir/%.o : %.c
    8167        $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<
    8268
    83 %   : %.o
    84         $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest -lgsl -lgslcblas $(LDFLAGS)
     69%   : builddir/%.o
     70        $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest $(LDFLAGS)
    8571
    86 ## NOTE: The distclean target does not remove the .o files.  The Makefiles must
    87 ## be repaired.
    88 distclean:
     72distclean: clean
    8973        $(RM) $(TARGET)
    9074
     
    9276        splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
    9377
     78cleandependencies:
     79        $(RM) $(DEPENDENCIES)
     80       
     81builddir/%.d: %.c
     82        $(CC) -MM $(CFLAGS) -I$(PSLIB_INCL_DIR) $< | sed 's|\(.*\.o\)|builddir/\1|' > $@
    9483
     84install: $(testbindir) $(testbindir)/verified $(TARGET)
     85        install $(TARGET) $(testbindir)
     86        install verified/*.stderr verified/*.stdout $(testbindir)/verified
     87
     88$(testbindir):
     89        mkdir -p $(testbindir)
     90
     91$(testbindir)/verified:
     92        mkdir -p $(testbindir)/verified
     93
     94
Note: See TracChangeset for help on using the changeset viewer.