23 lines
317 B
Makefile
Executable File
23 lines
317 B
Makefile
Executable File
include Makefile.o.dep
|
|
|
|
|
|
all: $(o)
|
|
|
|
|
|
.SUFFIXES: .cpp .o
|
|
|
|
.cpp.o:
|
|
$(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:
|
|
rm -f *.o
|
|
|
|
include Makefile.dep
|