2014-04-01 18:37:27 +02:00
|
|
|
default: all
|
|
|
|
|
2014-04-03 11:19:41 +02:00
|
|
|
SRC=
|
|
|
|
OBJ=
|
2014-04-01 18:37:27 +02:00
|
|
|
|
2015-01-11 20:28:33 +01:00
|
|
|
ALL_MODULES=$(shell cat NEEDED_MODULES)
|
2014-04-01 18:37:27 +02:00
|
|
|
|
2015-01-11 20:28:33 +01:00
|
|
|
.PHONY: executables all all_clean $(ALL_MODULES)
|
2014-10-10 00:26:49 +02:00
|
|
|
|
2015-01-11 20:28:33 +01:00
|
|
|
all: $(ALL_MODULES)
|
2014-04-03 11:19:41 +02:00
|
|
|
|
2014-04-01 18:37:27 +02:00
|
|
|
all_clean:
|
2015-01-11 20:28:33 +01:00
|
|
|
@for i in $(ALL_MODULES) ; do cd $$i ; make veryclean ; make clean_links ; cd .. ; done
|
2014-04-03 11:19:41 +02:00
|
|
|
|
2015-01-11 20:28:33 +01:00
|
|
|
$(ALL_MODULES): FORCE
|
|
|
|
cd $@ ; $(MAKE)
|
2014-04-03 11:19:41 +02:00
|
|
|
|
2015-01-11 20:28:33 +01:00
|
|
|
executables: $(ALL_MODULES)
|
2014-10-10 00:26:49 +02:00
|
|
|
rm -f executables ; \
|
2015-01-09 23:52:44 +01:00
|
|
|
for EXE in $$(find $(QPACKAGE_ROOT)/src -perm /u+x -type f | grep -e "$(QPACKAGE_ROOT)/src/[^/]*/[^/]*$$" |sort ) ; \
|
2014-10-10 00:26:49 +02:00
|
|
|
do printf "%-30s %s\n" $$(basename $$EXE) $$EXE | sed "s|$(QPACKAGE_ROOT)|\$$QPACKAGE_ROOT|g" >> executables ;\
|
|
|
|
done
|
|
|
|
|
2015-01-11 20:28:33 +01:00
|
|
|
# Dummy rule to enable to force recompilation
|
|
|
|
FORCE:
|
|
|
|
|