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/collections/Makefile

    r1264 r1338  
    33##  Makefile:   collections
    44##
    5 ##  $Revision: 1.26 $  $Name: not supported by cvs2svn $
    6 ##  $Date: 2004-07-22 20:42:54 $
     5##  $Revision: 1.27 $  $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
     
    3737           psArray.o
    3838
     39OBJS = $(addprefix makedir/,$(SRC_OBJS))
     40
    3941# Define PHONY target "all" which will make all the necessary items
    4042
     
    4345# Rule to make static library
    4446
    45 libpslib.a: $(SRC_OBJS)
     47libpslib.a: $(OBJS)
    4648# The ar option -r is to add/replace object and -s is to create
    4749# a symbol table in the archive
    48         $(AR) rcs ../$@ $(SRC_OBJS)
     50        $(AR) rcs ../$@ $(OBJS)
    4951
    5052# Define PHONY target "install" which will install necessary files
     
    6264clean:
    6365        @echo "    Deleting intermediate files for 'collections'"
    64         $(RM) $(SRC_OBJS) *.lint $(SRC_OBJS:.o=.i)
     66        $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i)
     67
     68cleandep:
     69        $(RM) $(OBJS:.o=.d)
    6570
    6671%.lint: %.c
     
    7075        $(CC) -E $(CFLAGS) -o $@ $<
    7176
    72 %.o: %.i
     77makedir/%.o: %.c
    7378        $(CC) -c $(CFLAGS) -o $@ $<
    7479
    75 %.d: %.c
     80makedir/%.d: %.c
    7681        $(CC) -MM $(CFLAGS) $< > $@.tmp
    77         sed 's/\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@
     82        sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@
    7883        $(RM) -f $@.tmp
    7984
    80 include $(SRC_OBJS:.o=.d)
     85include $(OBJS:.o=.d)
Note: See TracChangeset for help on using the changeset viewer.