IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

moved object/dependency files into subdirectory.

File:
1 edited

Legend:

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

    r987 r1003  
    33##  Makefile:   test/sysUtils
    44##
    5 ##  $Revision: 1.13 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-06-10 20:52:14 $
     5##  $Revision: 1.14 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-06-11 19:37:23 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3737         tst_psTrace04
    3838
    39 OBJS = $(addsuffix .o,$(TARGET))
     39DEPENDENCIES = $(addprefix builddir/,$(addsuffix .d,$(TARGET)))
     40OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET)))
    4041
    41 all: $(TARGET)
     42all: builddir $(TARGET)
    4243
    43 include $(OBJS:.o=.d)
     44builddir:
     45        mkdir builddir
     46
     47include $(DEPENDENCIES)
    4448
    4549clean:
    4650        @echo "    Deleting executable and binary files for 'test/sysUtils'"
    47         $(RM) $(TARGET) *.o *.lint
     51        $(RM) $(OBJS) *.lint
    4852
    49 %.o : %.c
     53distclean: clean
     54        $(RM) $(TARGET)
     55
     56builddir/%.o : %.c
    5057        $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $<
    5158
    52 %   : %.o
     59%   : builddir/%.o
    5360        $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest $(LDFLAGS)
    5461
     
    5663        splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
    5764
    58 distclean:
    59         $(RM) $(TARGET)
    60 
    61 %.d: %.c
     65builddir/%.d: %.c
    6266        $(CC) -MM $(CFLAGS) -I$(PSLIB_INCL_DIR) $< > $@.tmp
    63         sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@
     67        sed 's|\($*\)\.o[ :]*|builddir\/\1.o $@ : |g' $@.tmp > $@
    6468        $(RM) -f $@.tmp
    65 
Note: See TracChangeset for help on using the changeset viewer.