IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 11, 2004, 9:18:41 AM (22 years ago)
Author:
desonia
Message:

moved the .d files into a build directory.

File:
1 edited

Legend:

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

    r987 r1001  
    33##  Makefile:   test/sysUtils
    44##
    5 ##  $Revision: 1.10 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-06-10 20:52:14 $
     5##  $Revision: 1.11 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-06-11 19:18:41 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4242 tst_psImageIO
    4343
    44 OBJS = $(addsuffix .o,$(TARGET))
     44DEPENDENCIES = $(addprefix builddir/,$(addsuffix .d,$(TARGET)))
     45OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
    4546
    46 all: $(TARGET)
     47all: builddir $(TARGET)
    4748
    48 include $(OBJS:.o=.d)
     49builddir:
     50        mkdir builddir
     51
     52include $(DEPENDENCIES)
    4953
    5054clean:
    5155        @echo "    Deleting executable and binary files for 'test/sysUtils'"
    52         $(RM) $(TARGET) *.o *.lint
     56        $(RM) $(TARGET) $(OBJS) *.lint
    5357
    54 %.o : %.c
     58builddir/%.o : %.c
    5559        $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<
    5660
    57 %   : %.o
     61%   : builddir/%.o
    5862        $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest -lgsl -lgslcblas $(LDFLAGS)
    5963
     
    6468        splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
    6569
    66 %.d: %.c
     70builddir/%.d: %.c
    6771        $(CC) -MM $(CFLAGS) -I$(PSLIB_INCL_DIR) $< > $@.tmp
    68         sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@
     72        sed 's|\($*\)\.o[ :]*|builddir\/\1.o $@ : |g' $@.tmp > $@
    6973        $(RM) -f $@.tmp
    7074
Note: See TracChangeset for help on using the changeset viewer.