Fixed an error in the depends rule.

This commit is contained in:
Harry Moffat 2009-03-17 01:26:12 +00:00
parent e9a4dce8ad
commit 156bb4ca2c
2 changed files with 12 additions and 1 deletions

View file

@ -9,3 +9,5 @@ gri30.xml
isentropic
output_0.txt
output_1.txt
*.d
.depends

View file

@ -1,5 +1,8 @@
#!/bin/sh
.SUFFIXES :
.SUFFIXES : .cpp .d .o .h .f
# the object files to be linked together.
OBJS = demo_ftnlib.o isentropic.o ctlib.o
@ -49,6 +52,10 @@ LCXX_FLAGS = -L$(CANTERA_LIBDIR) @LOCAL_LIB_DIRS@ @CXXFLAGS@
.@F77_EXT@.@OBJ_EXT@:
$(FORT) -c $< $(FORT_FLAGS)
.f.d:
@echo "$*.o: $*.f" | cat > $*.d
PROGRAM = $(PROG_NAME)$(EXE_EXT)
DEPENDS = $(OBJS:.o=.d)
@ -89,7 +96,9 @@ install:
clean:
$(RM) $(OBJS) isentropic ctlib
$(RM) $(OBJS) isentropic ctlib *.d .depends \
diff* output_0.txt output_1.txt gri30.xml ct2ctml.log \
isentropic.dsp
depends:
$(MAKE) .depends