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

37 lines
893 B
Makefile
Raw Normal View History

ifndef QPACKAGE_ROOT
$(error "QPACKAGE_ROOT is not defined. Please source quantum_package.rc")
endif
include Makefile.config
2015-01-11 20:28:33 +01:00
ALL_MODULES=$(shell cat NEEDED_MODULES)
EZFIO_DIR=$(QPACKAGE_ROOT)/EZFIO
EZFIO=$(EZFIO_DIR)/lib/libezfio_irp.a
2015-03-26 01:33:32 +01:00
.PHONY: $(ALL_MODULES) ezfio
2014-10-10 00:26:49 +02:00
2015-03-26 01:33:32 +01:00
default: ezfio
$(QPACKAGE_ROOT)/scripts/module/build_modules.sh $(ALL_MODULES)
veryclean:
$(QPACKAGE_ROOT)/scripts/module/clean_modules.sh $(ALL_MODULES)
2015-03-26 01:33:32 +01:00
$(ALL_MODULES): ezfio
$(QPACKAGE_ROOT)/scripts/module/build_modules.sh $@
# Define the EZFIO rules
2015-03-27 13:32:43 +01:00
$(EZFIO): $(wildcard $(QPACKAGE_ROOT)/src/*/*.ezfio_config) $(wildcard $(QPACKAGE_ROOT)/src/*/EZFIO.cfg)
$(QPACKAGE_ROOT)/scripts/ezfio_interface/prepare_ezfio.sh
cd $(EZFIO_DIR);\
export FC="$(FC)" ; export FCFLAGS="$(FCFLAGS)" ; export IRPF90="$(IRPF90)" ;\
$(MAKE) ;\
$(MAKE) Python
2015-03-26 01:33:32 +01:00
ezfio: $(EZFIO)
# Frequent typos
clena: clean
veryclena: veryclean
2015-01-11 20:28:33 +01:00