IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 29, 2004, 11:43:11 AM (22 years ago)
Author:
desonia
Message:

tweaked Makefile to push auxillary files (*.d *.o) used during making
to a subdirectory, which reduces the chaff in the directory.

File:
1 edited

Legend:

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

    r1266 r1338  
    33##  Makefile:   collections
    44##
    5 ##  $Revision: 1.1 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-07-22 20:47:55 $
     5##  $Revision: 1.2 $  $Name: not supported by cvs2svn $
     6##  $Date: 2004-07-29 21:43:11 $
    77##
    88##  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    3636           psImageStats.o
    3737
     38OBJS = $(addprefix makedir/,$(SRC_OBJS))
     39
    3840# Define PHONY target "all" which will make all the necessary items
    3941
     
    4244# Rule to make static library
    4345
    44 libpslib.a: $(SRC_OBJS)
     46libpslib.a: $(OBJS)
    4547# The ar option -r is to add/replace object and -s is to create
    4648# a symbol table in the archive
    47         $(AR) rcs ../$@ $(SRC_OBJS)
     49        $(AR) rcs ../$@ $(OBJS)
    4850
    4951# Define PHONY target "install" which will install necessary files
     
    6163clean:
    6264        @echo "    Deleting intermediate files for 'collections'"
    63         $(RM) $(SRC_OBJS) *.lint $(SRC_OBJS:.o=.i)
     65        $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i)
     66
     67cleandep:
     68        $(RM) $(OBJS:.o=.d)
    6469
    6570%.lint: %.c
     
    6974        $(CC) -E $(CFLAGS) -o $@ $<
    7075
    71 %.o: %.i
     76makedir/%.o: %.c
    7277        $(CC) -c $(CFLAGS) -o $@ $<
    7378
    74 %.d: %.c
     79makedir/%.d: %.c
    7580        $(CC) -MM $(CFLAGS) $< > $@.tmp
    76         sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@
     81        sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@
    7782        $(RM) -f $@.tmp
    7883
    79 include $(SRC_OBJS:.o=.d)
     84include $(OBJS:.o=.d)
Note: See TracChangeset for help on using the changeset viewer.