$(MODDIR)/make/defs.mk: Split off defs-cpp.mk with C++ definitions

C++ definitions are numerous, and they shouldn't pollute variable space and
performance outside of directories containing C++ files. This commit pushes
them into a defs-cpp.mk file.

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-02-27 20:46:54 +00:00
commit 316435bb78
19 changed files with 681 additions and 673 deletions

View file

@ -40,7 +40,7 @@ $(WINLIB): $(REQUIRED_H)
make -C $(MODDIR)/$$mod clean ;\
mkdir -p $(DISTDIR)/src/$(PROJECT)/mod/$$mod ;\
echo `ls $(MODDIR)/$$mod/*.h`; \
modfiles="`find $(MODDIR)/$$mod -name *.h -o -name *.c -o -name *.cpp -maxdepth 1`"; \
modfiles="`find $(MODDIR)/$$mod -maxdepth 1 -name *.h -o -name *.c -o -name *.cpp`"; \
echo "++++ $$modfiles"; \
if [ -n "$$modfiles" ]; then cp $$modfiles $(DISTDIR)/src/$(PROJECT)/mod/$$mod/; fi\
done ;\
@ -48,7 +48,7 @@ $(WINLIB): $(REQUIRED_H)
mod=shared_`basename $$dir` ;\
make -C $$dir clean ;\
mkdir -p $(DISTDIR)/src/$(PROJECT)/mod/$$mod ;\
modfiles="`find $$dir -name '*.h' -o -name '*.c' -o -name '*.cpp' -o -name '*.sh' -maxdepth 1`"; \
modfiles="`find $$dir -maxdepth 1 -name '*.h' -o -name '*.c' -o -name '*.cpp' -o -name '*.sh'`"; \
echo "++++ $$modfiles"; \
if [ -n "$$modfiles" ]; then cp $$modfiles $(DISTDIR)/src/$(PROJECT)/mod/$$mod/; fi ;\
if [ -f "$$dir/Makefile" ]; then \