10
0
mirror of https://github.com/LCPQ/quantum_package synced 2024-11-07 22:53:57 +01:00
quantum_package/src/Makefile

28 lines
686 B
Makefile
Raw Normal View History

default: all
SRC=
OBJ=
2015-01-11 20:28:33 +01:00
ALL_MODULES=$(shell cat NEEDED_MODULES)
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)
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
2015-01-11 20:28:33 +01:00
$(ALL_MODULES): FORCE
2015-01-11 21:40:04 +01:00
cd $@ ; make -j $$(cat /proc/cpuinfo | grep MHz | wc -l)
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:
2015-01-19 10:38:07 +01:00
veryclean: all_clean