diff --git a/Documentation/Makefile b/Documentation/Makefile index 25f879de95cf..58ef2a6b33ca 100644 --- a/Documentation/Makefile +++ b/Documentation/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../Makefile.quiet .PHONY: default clean builder-image cmdref epub latex html run-server stop-server diff --git a/Makefile b/Makefile index a8fe73a9884b..8533a4c96a0c 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include Makefile.defs SUBDIRS_CILIUM_CONTAINER := proxylib envoy plugins/cilium-cni bpf cilium daemon cilium-health bugtool diff --git a/Makefile.defs b/Makefile.defs index 3a75e48d7b01..a28cc924c76d 100644 --- a/Makefile.defs +++ b/Makefile.defs @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + SHELL := /bin/bash .SHELLFLAGS := -eu -o pipefail -c diff --git a/Makefile.quiet b/Makefile.quiet index e606d68a235c..215069eb3334 100644 --- a/Makefile.quiet +++ b/Makefile.quiet @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + ifeq ($(ROOT_DIR),) ROOT_DIR ?= $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST)))) RELATIVE_DIR ?= $(shell echo $(realpath .) | sed "s;$(ROOT_DIR)[/]*;;") diff --git a/api/v1/Makefile b/api/v1/Makefile index 0c69aba61044..916042c9a181 100644 --- a/api/v1/Makefile +++ b/api/v1/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + PROTOC ?= protoc HUBBLE_PROTO_SOURCES := \ diff --git a/bpf/Makefile b/bpf/Makefile index 1d57dd08e638..341053cc7695 100644 --- a/bpf/Makefile +++ b/bpf/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../Makefile.defs .PHONY: all subdirs check preprocess assembly install clean diff --git a/bpf/Makefile.bpf b/bpf/Makefile.bpf index 1412030b2b17..c3e446e83230 100644 --- a/bpf/Makefile.bpf +++ b/bpf/Makefile.bpf @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + FLAGS := -I$(ROOT_DIR)/bpf/include -I$(ROOT_DIR)/bpf -D__NR_CPUS__=$(shell nproc) -O2 -g CLANG_FLAGS := ${FLAGS} -target bpf -emit-llvm diff --git a/bpf/sockops/Makefile b/bpf/sockops/Makefile index 19d9ad40e404..0e8c1eb004cb 100644 --- a/bpf/sockops/Makefile +++ b/bpf/sockops/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../../Makefile.defs .PHONY: all assembly check preprocess clean diff --git a/contrib/codegen/Makefile b/contrib/codegen/Makefile index cca0cc9eab19..edcf6d957670 100644 --- a/contrib/codegen/Makefile +++ b/contrib/codegen/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + CFLAGS=-O2 -Wall all: hexgen diff --git a/contrib/packaging/deb/Makefile b/contrib/packaging/deb/Makefile index b0b5020f0a69..d0e68d85280c 100644 --- a/contrib/packaging/deb/Makefile +++ b/contrib/packaging/deb/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2019 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../../../Makefile.defs BUILDDIR := "$(CURDIR)/cilium-$(VERSION)" @@ -5,7 +19,6 @@ BASEDIR := "$(CURDIR)/../../../" BRANCH := $(shell git rev-parse --abbrev-ref HEAD) build: clean - mkdir -p output (cd $(BASEDIR) && git bundle create $(CURDIR)/version_$(VERSION) $(BRANCH) --tags) (cd $(CURDIR) && git clone $(CURDIR)/version_$(VERSION) cilium -b $(BRANCH)) diff --git a/contrib/packaging/rpm/Makefile b/contrib/packaging/rpm/Makefile index 7cae4143d816..6d36bd70ff03 100644 --- a/contrib/packaging/rpm/Makefile +++ b/contrib/packaging/rpm/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../../../Makefile.defs VERSION := $(shell git tag -l --sort=-v:refname | sed 's/v\([^-].*\)/\1/g' | head -1) diff --git a/examples/kubernetes/addons/prometheus/templates/Makefile b/examples/kubernetes/addons/prometheus/templates/Makefile index c3f243e219d1..2efd5911d3e5 100644 --- a/examples/kubernetes/addons/prometheus/templates/Makefile +++ b/examples/kubernetes/addons/prometheus/templates/Makefile @@ -1,5 +1,18 @@ -include ../../../../../Makefile.defs +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +include ../../../../../Makefile.defs DESTINATION= "../monitoring-example.yaml" diff --git a/examples/kubernetes/connectivity-check/Makefile b/examples/kubernetes/connectivity-check/Makefile index a1f8ed28d2ee..46f4cba2ebb6 100644 --- a/examples/kubernetes/connectivity-check/Makefile +++ b/examples/kubernetes/connectivity-check/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2020 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + OUT := connectivity-check.yaml SRC := $(wildcard *.yaml) SRC := $(filter-out $(OUT), $(SRC)) diff --git a/install/kubernetes/Makefile b/install/kubernetes/Makefile index 05ff959dc98b..90efa6b8defa 100644 --- a/install/kubernetes/Makefile +++ b/install/kubernetes/Makefile @@ -1,5 +1,18 @@ +# Copyright 2017-2019 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../../Makefile.defs -include $(ROOT_DIR)/Makefile.quiet MANAGED_ETCD_VERSION := "v2.0.7" diff --git a/test/Makefile b/test/Makefile index d3d9423d9f00..8ad70ed79de7 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2019 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../Makefile.defs provision = true diff --git a/test/bpf/Makefile b/test/bpf/Makefile index b92ff59d1aa7..e1fef40d6c2a 100644 --- a/test/bpf/Makefile +++ b/test/bpf/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2019 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../../Makefile.defs FLAGS := -I../../bpf/ -I../../bpf/include -I. -D__NR_CPUS__=$(shell nproc) -O2 diff --git a/test/startup-script/Makefile b/test/startup-script/Makefile index ac81e6eb1d2c..2f3fffa909b2 100644 --- a/test/startup-script/Makefile +++ b/test/startup-script/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2019 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + TAG=v1 IMAGE=docker.io/cilium/startup-script diff --git a/tests/Makefile b/tests/Makefile index f50e9f49f224..dbe5c88fb176 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,5 +1,18 @@ -include ../Makefile.defs +# Copyright 2017-2019 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +include ../Makefile.defs runtime-tests: ./run-tests diff --git a/tests/k8s/Makefile b/tests/k8s/Makefile index 64aff3b5a46b..64f9e5a21a2d 100644 --- a/tests/k8s/Makefile +++ b/tests/k8s/Makefile @@ -1,3 +1,17 @@ +# Copyright 2017-2019 Authors of Cilium +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + include ../../Makefile.defs k8s-multi-node-tests: