Changeset 1338 for trunk/psLib/src/collections/Makefile
- Timestamp:
- Jul 29, 2004, 11:43:11 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/collections/Makefile (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/collections/Makefile
r1264 r1338 3 3 ## Makefile: collections 4 4 ## 5 ## $Revision: 1.2 6$ $Name: not supported by cvs2svn $6 ## $Date: 2004-07-2 2 20:42:54$5 ## $Revision: 1.27 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-07-29 21:43:11 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 37 37 psArray.o 38 38 39 OBJS = $(addprefix makedir/,$(SRC_OBJS)) 40 39 41 # Define PHONY target "all" which will make all the necessary items 40 42 … … 43 45 # Rule to make static library 44 46 45 libpslib.a: $( SRC_OBJS)47 libpslib.a: $(OBJS) 46 48 # The ar option -r is to add/replace object and -s is to create 47 49 # a symbol table in the archive 48 $(AR) rcs ../$@ $( SRC_OBJS)50 $(AR) rcs ../$@ $(OBJS) 49 51 50 52 # Define PHONY target "install" which will install necessary files … … 62 64 clean: 63 65 @echo " Deleting intermediate files for 'collections'" 64 $(RM) $(SRC_OBJS) *.lint $(SRC_OBJS:.o=.i) 66 $(RM) $(OBJS) *.lint $(SRC_OBJS:.o=.i) 67 68 cleandep: 69 $(RM) $(OBJS:.o=.d) 65 70 66 71 %.lint: %.c … … 70 75 $(CC) -E $(CFLAGS) -o $@ $< 71 76 72 %.o: %.i 77 makedir/%.o: %.c 73 78 $(CC) -c $(CFLAGS) -o $@ $< 74 79 75 %.d: %.c80 makedir/%.d: %.c 76 81 $(CC) -MM $(CFLAGS) $< > $@.tmp 77 sed 's /\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@82 sed 's|\($*\)\.o[ :]*|\1.o $@ : |g' $@.tmp > $@ 78 83 $(RM) -f $@.tmp 79 84 80 include $( SRC_OBJS:.o=.d)85 include $(OBJS:.o=.d)
Note:
See TracChangeset
for help on using the changeset viewer.
