From 2e9c1e9858742f20de966fdce3e002839e0c1656 Mon Sep 17 00:00:00 2001 From: Bernardo Carvalho Date: Mon, 15 Apr 2024 16:37:29 +0100 Subject: [PATCH] Added Makefiles Signed-off-by: Bernardo Carvalho --- Makefile.inc | 48 ++++++++++++++++++++++++++++++++++++++++++++++ Makefile.x86-linux | 30 +++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 Makefile.inc create mode 100644 Makefile.x86-linux diff --git a/Makefile.inc b/Makefile.inc new file mode 100644 index 0000000..3a81416 --- /dev/null +++ b/Makefile.inc @@ -0,0 +1,48 @@ +############################################################# +# +# Copyright 2015 F4E | European Joint Undertaking for ITER +# and the Development of Fusion Energy ('Fusion for Energy') +# +# Licensed under the EUPL, Version 1.1 or - as soon they +# will be approved by the European Commission - subsequent +# versions of the EUPL (the "Licence"); +# You may not use this work except in compliance with the +# Licence. +# You may obtain a copy of the Licence at: +# +# http://ec.europa.eu/idabc/eupl +# +# Unless required by applicable law or agreed to in +# writing, software distributed under the Licence is +# distributed on an "AS IS" basis, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either +# express or implied. +# See the Licence for the specific language governing +# permissions and limitations under the Licence. +# +# +############################################################# +SPB = DataSources/AtcaIop.x + +# GAMs/OPCUATestGAM.x \ +# Other/OPCUAClientEx.x +#DataSources/MDSStream.x + +MAKEDEFAULTDIR=$(MARTe2_DIR)/MakeDefaults + +ROOT_DIR=. +include $(MAKEDEFAULTDIR)/MakeStdLibDefs.$(TARGET) + +all: $(OBJS) $(SUBPROJ) check-env + echo $(OBJS) + +include $(MAKEDEFAULTDIR)/MakeStdLibRules.$(TARGET) + +check-env: +ifndef MARTe2_DIR + $(error MARTe2_DIR is undefined) +endif +ifndef MARTe2_Components_DIR + $(error MARTe2_Components_DIR is undefined) +endif + diff --git a/Makefile.x86-linux b/Makefile.x86-linux new file mode 100644 index 0000000..f6288f3 --- /dev/null +++ b/Makefile.x86-linux @@ -0,0 +1,30 @@ +############################################################# +# +# Copyright 2015 F4E | European Joint Undertaking for ITER +# and the Development of Fusion Energy ('Fusion for Energy') +# +# Licensed under the EUPL, Version 1.1 or - as soon they +# will be approved by the European Commission - subsequent +# versions of the EUPL (the "Licence"); +# You may not use this work except in compliance with the +# Licence. +# You may obtain a copy of the Licence at: +# +# http://ec.europa.eu/idabc/eupl +# +# Unless required by applicable law or agreed to in +# writing, software distributed under the Licence is +# distributed on an "AS IS" basis, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either +# express or implied. +# See the Licence for the specific language governing +# permissions and limitations under the Licence. +# +############################################################# + +# Note that this should in the future be replaced by Makefile.x86-linux or removed (and define the TARGET as an environment variable) + +export TARGET=x86-linux + +include Makefile.inc +