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