small changes in Makefile
git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@241 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
o = ezc.o
|
include Makefile.o.dep
|
||||||
|
|
||||||
|
|
||||||
all: ezc.a
|
all: ezc.a
|
||||||
|
|
||||||
@@ -9,12 +10,14 @@ ezc.a: $(o)
|
|||||||
.SUFFIXES: .cpp .o
|
.SUFFIXES: .cpp .o
|
||||||
|
|
||||||
.cpp.o:
|
.cpp.o:
|
||||||
$(CC) -c $(CFLAGS) $<
|
$(CXX) -c $(CXXFLAGS) $<
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
depend:
|
depend:
|
||||||
makedepend -Y. -f- *.cpp > Makefile.dep
|
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:
|
clean:
|
||||||
|
1
src/Makefile.o.dep
Executable file
1
src/Makefile.o.dep
Executable file
@@ -0,0 +1 @@
|
|||||||
|
o = ezc.o
|
Reference in New Issue
Block a user