IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

moved object/dependency files to subdirectory.

File:
1 edited

Legend:

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

    r987 r1004  
    33##  Makefile:   test/collections
    44##
    5 ##  $Revision: 1.12 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-06-10 20:52:14 $
     5##  $Revision: 1.13 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-06-11 19:38:58 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3232         tst_psList
    3333
    34 OBJS = $(addsuffix .o,$(TARGET))
     34DEPENDENCIES = $(addprefix builddir/,$(addsuffix .d,$(TARGET)))
     35OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
    3536
    36 all: $(TARGET)
     37all: builddir $(TARGET)
    3738
    38 include $(OBJS:.o=.d)
     39builddir:
     40        mkdir builddir
     41
     42include $(DEPENDENCIES)
    3943
    4044clean:
    4145        @echo "    Deleting executable and binary files for 'test/collections'"
    42         $(RM) $(TARGET) *.o *.lint *.i
     46        $(RM) $(OBJS) *.lint builddir/*.i
    4347
    44 %.o : %.i
     48distclean: clean
     49        $(RM) $(TARGET)
     50
     51builddir/%.o : builddir/%.i
    4552        $(CC) $(CFLAGS) -I$(PSLIB_INCL_DIR) -c -o $@ $<
    4653
    47 %.o : %.c
     54builddir/%.o : %.c
    4855        $(CC) $(CFLAGS) -I$(PSLIB_INCL_DIR) -c -o $@ $<
    4956
    50 %   : %.o
     57%   : builddir/%.o
    5158        $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest $(LDFLAGS)
    5259
     
    5461        splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
    5562
    56 %.i: %.c
     63builddir/%.i: %.c
    5764        $(CC) -E $(CFLAGS) $(CPPFLAGS) -I$(PSLIB_INCL_DIR) -o $@ $<
    5865
    59 %.d: %.c
     66builddir/%.d: %.c
    6067        $(CC) -MM $(CFLAGS) -I$(PSLIB_INCL_DIR) $< > $@.tmp
    61         sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@
     68        sed 's|\($*\)\.o[ :]*|builddir\/\1.o $@ : |g' $@.tmp > $@
    6269        $(RM) -f $@.tmp
    6370
Note: See TracChangeset for help on using the changeset viewer.