2022-06-26 06:22:27 +02:00
|
|
|
sourcefiles:=$(shell find . -name "*.cpp")
|
|
|
|
objfiles:=$(patsubst %.cpp,%.o,$(sourcefiles))
|
2010-07-27 22:41:56 +02:00
|
|
|
|
2016-03-17 14:46:20 +01:00
|
|
|
|
|
|
|
|
2010-07-27 22:41:56 +02:00
|
|
|
name = stats.so
|
|
|
|
|
|
|
|
|
2011-06-06 22:35:56 +02:00
|
|
|
all: $(name)
|
2010-07-27 22:41:56 +02:00
|
|
|
|
2022-06-26 06:22:27 +02:00
|
|
|
|
|
|
|
$(name): $(objfiles)
|
|
|
|
$(CXX) -shared -Wl,-soname,$(name) -o $(name) $(CXXFLAGS) $(LDFLAGS) $(objfiles)
|
2010-07-27 22:41:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2011-06-06 22:35:56 +02:00
|
|
|
%.o: %.cpp
|
2022-06-26 06:22:27 +02:00
|
|
|
$(CXX) -c $(CXXFLAGS) -o $@ $<
|
|
|
|
|
2010-07-27 22:41:56 +02:00
|
|
|
|
2022-06-26 06:22:27 +02:00
|
|
|
clean:
|
|
|
|
rm -f $(objfiles)
|
|
|
|
rm -f $(name)
|
2010-07-27 22:41:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
depend:
|
2022-06-26 06:22:27 +02:00
|
|
|
makedepend -Y. $(WINIX_PLUGINS_MAKEDEPEND_INCLUDES) $(WINIX_NEEDED_MACROS) -f- $(sourcefiles) > Makefile.dep
|
2010-07-27 22:41:56 +02:00
|
|
|
|
2021-05-27 12:04:41 +02:00
|
|
|
|
2022-06-26 06:22:27 +02:00
|
|
|
-include Makefile.dep
|
|
|
|
|