Changeset 1003 for trunk/psLib/test/sysUtils/Makefile
- Timestamp:
- Jun 11, 2004, 9:37:23 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/test/sysUtils/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/test/sysUtils/Makefile
r987 r1003 3 3 ## Makefile: test/sysUtils 4 4 ## 5 ## $Revision: 1.1 3$ $Name: not supported by cvs2svn $6 ## $Date: 2004-06-1 0 20:52:14$5 ## $Revision: 1.14 $ $Name: not supported by cvs2svn $ 6 ## $Date: 2004-06-11 19:37:23 $ 7 7 ## 8 8 ## Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 37 37 tst_psTrace04 38 38 39 OBJS = $(addsuffix .o,$(TARGET)) 39 DEPENDENCIES = $(addprefix builddir/,$(addsuffix .d,$(TARGET))) 40 OBJS = $(addprefix builddir/,$(addsuffix .o,$(TARGET))) 40 41 41 all: $(TARGET)42 all: builddir $(TARGET) 42 43 43 include $(OBJS:.o=.d) 44 builddir: 45 mkdir builddir 46 47 include $(DEPENDENCIES) 44 48 45 49 clean: 46 50 @echo " Deleting executable and binary files for 'test/sysUtils'" 47 $(RM) $( TARGET) *.o*.lint51 $(RM) $(OBJS) *.lint 48 52 49 %.o : %.c 53 distclean: clean 54 $(RM) $(TARGET) 55 56 builddir/%.o : %.c 50 57 $(CC) $(CFLAGS) $(CPPFLAGS) -I.. -I$(PSLIB_INCL_DIR) -c -o $@ $< 51 58 52 % : %.o59 % : builddir/%.o 53 60 $(CC) -o $@ $< -L$(PSLIB_LIB_DIR) -lpslib -lpstest $(LDFLAGS) 54 61 … … 56 63 splint +posixlib -exportlocal -realcompare $(INCLUDE_GLOBAL) $? > $@; cat $@ 57 64 58 distclean: 59 $(RM) $(TARGET) 60 61 %.d: %.c 65 builddir/%.d: %.c 62 66 $(CC) -MM $(CFLAGS) -I$(PSLIB_INCL_DIR) $< > $@.tmp 63 sed 's /\($*\)\.o[ :]*/\1.o $@ : /g' $@.tmp > $@67 sed 's|\($*\)\.o[ :]*|builddir\/\1.o $@ : |g' $@.tmp > $@ 64 68 $(RM) -f $@.tmp 65
Note:
See TracChangeset
for help on using the changeset viewer.
