mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-23 06:30:38 +01:00
$(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:
parent
54d5790167
commit
316435bb78
19 changed files with 681 additions and 673 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue