small changes in Makefile

git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@241 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
Tomasz Sowa 2009-11-13 21:10:06 +00:00
parent 141e1f67b3
commit 9b4586d7be
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,5 @@
o = ezc.o
include Makefile.o.dep
all: ezc.a
@ -9,12 +10,14 @@ ezc.a: $(o)
.SUFFIXES: .cpp .o
.cpp.o:
$(CC) -c $(CFLAGS) $<
$(CXX) -c $(CXXFLAGS) $<
depend:
makedepend -Y. -f- *.cpp > Makefile.dep
echo -n "o = " > Makefile.o.dep
ls -1 *.cpp | xargs -I foo echo -n foo " " | sed -E "s/([^\.]*)\.cpp[ ]/\1\.o/g" >> Makefile.o.dep
clean:

1
src/Makefile.o.dep Executable file
View File

@ -0,0 +1 @@
o = ezc.o