28 lines
444 B
Makefile
28 lines
444 B
Makefile
|
include Makefile.o.dep
|
||
|
|
||
|
name = stats.so
|
||
|
|
||
|
|
||
|
all: $(o)
|
||
|
$(CXX) -shared -Wl,-soname,$(name).so -o $(name) $(CXXFLAGS) *.o
|
||
|
|
||
|
|
||
|
|
||
|
.SUFFIXES: .cpp .o
|
||
|
|
||
|
.cpp.o:
|
||
|
$(CXX) -c $(CXXFLAGS) $<
|
||
|
|
||
|
|
||
|
|
||
|
depend:
|
||
|
makedepend -Y. -I../.. -I../../../ezc/src -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
|
||
|
rm -f $(name)
|
||
|
|
||
|
include Makefile.dep
|