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