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