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