IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 13, 2004, 2:59:11 PM (22 years ago)
Author:
desonia
Message:

added automagic determination of code dependencies.

File:
1 edited

Legend:

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

    r596 r675  
    33##  Makefile:   sysUtils
    44##
    5 ##  $Revision: 1.9 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-05-06 23:24:03 $
     5##  $Revision: 1.10 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-05-14 00:59:11 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    4141# Define PHONY target "all" which will make all the necessary items
    4242
    43 all: $(TARGET_STATIC) 
     43all: $(TARGET_STATIC)
    4444
    4545# Rule to make static library
     
    6464clean:
    6565        @echo "    Deleting intermediate files for 'sysUtils'"
    66         $(RM) $(SRC_OBJS) *.lint
     66        $(RM) $(SRC_OBJS) *.lint $(SRC_OBJS:.o=.d)
    6767
    6868%.lint: %.c
    69         splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
     69        splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@
     70
     71%.d: %.c
     72        @set -e; rm -f $@; \
     73        $(CC) -M $(CFLAGS) $< > $@.$$$$; \
     74        sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
     75        rm -f $@.$$$$
     76
     77include $(SRC_OBJS:.o=.d)
Note: See TracChangeset for help on using the changeset viewer.