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
|
|
|
|
|
|
|
|
2011-06-06 22:35:56 +02:00
|
|
|
%.o: %.cpp
|
2013-10-15 23:57:51 +02:00
|
|
|
$(CXX) -c $(CXXFLAGS) $(CXXWINIXINCLUDEFLAGS) $<
|
2009-04-21 22:50:55 +02:00
|
|
|
|
2008-12-30 02:05:03 +01:00
|
|
|
|
|
|
|
depend:
|
2013-10-15 23:57:51 +02:00
|
|
|
makedepend -Y. $(CXXWINIXINCLUDEFLAGS) -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
|