Commit a8f7b58b by Francois Gygi

Update Makefiles for .C to .cpp rename

parent 51e5bf59
......@@ -64,8 +64,6 @@ CXXFLAGS += -DTARGET='"$(TARGET)"'
CXXFLAGS += -DVERSION='"$(VERSION)"'
$(EXEC): $(OBJECTS)
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
lib: $(OBJECTS)
ar cr libqb.a $^
testLineMinimizer: testLineMinimizer.o LineMinimizer.o
$(LD) $(DFLAGS) -o $@ $^ $(LDFLAGS)
testCGOptimizer: testCGOptimizer.o CGOptimizer.o LineMinimizer.o
......@@ -176,21 +174,10 @@ CXXFLAGS += -DVERSION='"$(VERSION)"'
clean :
rm -f *.o
rm -f $(EXEC) $(TESTEXECS)
rm -rf ti_files
rm -f libqb.a
#------------------------------------------------------------------------------
ctags :
ctags -o tags *.[Ch]
#------------------------------------------------------------------------------
html :
enscript -Ecpp --color -Whtml --toc -pqbsrc.html *.h *.C
#------------------------------------------------------------------------------
ps :
enscript -Ecpp --toc -2rGj -pqb.ps *.h *.C Makefile *.mk
#------------------------------------------------------------------------------
tar :
tar czf qbsrc.tgz *.[Ch] Makefile *.mk notes
#------------------------------------------------------------------------------
# DO NOT DELETE
AlphaPBE0.o: Sample.h AtomSet.h Context.h blacs.h Atom.h D3vector.h
......
......@@ -15,7 +15,7 @@
EXEC=dynmat
LDFLAGS=-llapack
CXXFLAGS=-g
$(EXEC): dynmat.C
$(EXEC): dynmat.cpp
$(CXX) -o $@ $^ $(LDFLAGS)
#------------------------------------------------------------------------------
# Cleanup object files
......
twin: twin.C
twin: twin.cpp
g++ -o $@ $^
qbd: qbd.C
qbd: qbd.cpp
g++ -o $@ $^
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment