Browse Source

small changes in Makefile

git-svn-id: svn://ttmath.org/publicrep/ezc/trunk@241 e52654a7-88a9-db11-a3e9-0013d4bc506e
master
Tomasz Sowa 12 years ago
parent
commit
9b4586d7be
  1. 7
      src/Makefile
  2. 1
      src/Makefile.o.dep

7
src/Makefile

@ -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

@ -0,0 +1 @@
o = ezc.o
Loading…
Cancel
Save