2009-11-13 22:10:06 +01:00
|
|
|
include Makefile.o.dep
|
|
|
|
|
2008-12-30 02:21:30 +01:00
|
|
|
|
|
|
|
all: ezc.a
|
|
|
|
|
|
|
|
ezc.a: $(o)
|
|
|
|
ar rcs ezc.a $(o)
|
|
|
|
|
|
|
|
|
|
|
|
.SUFFIXES: .cpp .o
|
|
|
|
|
|
|
|
.cpp.o:
|
2009-11-13 22:10:06 +01:00
|
|
|
$(CXX) -c $(CXXFLAGS) $<
|
2008-12-30 02:21:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
depend:
|
2010-02-15 01:19:31 +01:00
|
|
|
makedepend $(CXXFLAGS) -Y. -f- *.cpp > Makefile.dep
|
2009-11-13 22:10:06 +01:00
|
|
|
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
|
2008-12-30 02:21:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
rm -f *.a
|
|
|
|
|
|
|
|
|
|
|
|
include Makefile.dep
|