2009-04-21 22:50:55 +02:00
|
|
|
include Makefile.o.dep
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
|
2009-04-21 22:50:55 +02:00
|
|
|
all: $(o)
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
.SUFFIXES: .cpp .o
|
|
|
|
|
|
|
|
.cpp.o:
|
2009-04-21 22:50:55 +02:00
|
|
|
$(CXX) -c $(CXXFLAGS) $<
|
|
|
|
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
depend:
|
2009-01-14 21:11:12 +01:00
|
|
|
makedepend $(DEPMACROS) -Y. -f- *.cpp > Makefile.dep
|
2009-04-21 22:50:55 +02: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:05:03 +01:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.o
|
|
|
|
|
|
|
|
include Makefile.dep
|