From e8e7cf2abe04d5691eb8e31cd18589ec9eb78635 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 1 Jan 2025 18:17:28 +1030 Subject: Update year range in copyright notice of binutils files --- .../examples/mxv-pthreads/experiments/profile.sh | 2 +- gprofng/examples/mxv-pthreads/src/Makefile | 140 ++++++++++----------- gprofng/examples/mxv-pthreads/src/main.c | 2 +- gprofng/examples/mxv-pthreads/src/manage_data.c | 2 +- gprofng/examples/mxv-pthreads/src/mxv.c | 2 +- gprofng/examples/mxv-pthreads/src/mydefs.h | 2 +- gprofng/examples/mxv-pthreads/src/workload.c | 2 +- 7 files changed, 76 insertions(+), 76 deletions(-) (limited to 'gprofng/examples/mxv-pthreads') diff --git a/gprofng/examples/mxv-pthreads/experiments/profile.sh b/gprofng/examples/mxv-pthreads/experiments/profile.sh index f8812a2..2369b41 100755 --- a/gprofng/examples/mxv-pthreads/experiments/profile.sh +++ b/gprofng/examples/mxv-pthreads/experiments/profile.sh @@ -1,5 +1,5 @@ # -# Copyright (C) 2021-2023 Free Software Foundation, Inc. +# Copyright (C) 2021-2025 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/gprofng/examples/mxv-pthreads/src/Makefile b/gprofng/examples/mxv-pthreads/src/Makefile index ef1c55a..24b9c8e 100644 --- a/gprofng/examples/mxv-pthreads/src/Makefile +++ b/gprofng/examples/mxv-pthreads/src/Makefile @@ -1,70 +1,70 @@ -# -# Copyright (C) 2021-2023 Free Software Foundation, Inc. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; see the file COPYING3. If not see -# . - -CC = gcc -WARNINGS = -Wall -Werror=undef -Wstrict-prototypes -OPT = -g -O -CFLAGS = $(OPT) $(WARNINGS) -LDFLAGS = -LIBS = -lm -lpthread -OBJDIR = ../objects -BINDIR = ../bindir -EXPDIR = ../experiments - -EXE = mxv-pthreads -OBJECTS = $(OBJDIR)/main.o $(OBJDIR)/manage_data.o $(OBJDIR)/workload.o $(OBJDIR)/mxv.o - -default: $(BINDIR)/$(EXE) - -$(BINDIR)/$(EXE): $(OBJECTS) - @mkdir -p $(BINDIR) - $(CC) -o $(BINDIR)/$(EXE) $(LDFLAGS) $(OBJECTS) $(LIBS) - ldd $(BINDIR)/$(EXE) - -$(OBJDIR)/main.o: main.c - @mkdir -p $(OBJDIR) - $(CC) -o $(OBJDIR)/main.o -c $(CFLAGS) main.c -$(OBJDIR)/manage_data.o: manage_data.c - @mkdir -p $(OBJDIR) - $(CC) -o $(OBJDIR)/manage_data.o -c $(CFLAGS) manage_data.c -$(OBJDIR)/workload.o: workload.c - @mkdir -p $(OBJDIR) - $(CC) -o $(OBJDIR)/workload.o -c $(CFLAGS) workload.c -$(OBJDIR)/mxv.o: mxv.c - @mkdir -p $(OBJDIR) - $(CC) -o $(OBJDIR)/mxv.o -c $(CFLAGS) mxv.c - -$(OBJECTS): mydefs.h - -.c.o: - $(CC) -c -o $@ $(CFLAGS) $< - -check: - @echo "Running $(EXE) in $(EXPDIR)" - @./$(EXPDIR)/$(EXE) -m 1000 -n 1500 -t 2 - -install: $(BINDIR)/$(EXE) - @/bin/cp $(BINDIR)/$(EXE) $(EXPDIR) - @echo "Installed $(EXE) in $(EXPDIR)" - -clean: - @/bin/rm -f $(BINDIR)/$(EXE) - @/bin/rm -f $(OBJECTS) - -veryclean: - @make clean - @/bin/rm -f $(EXPDIR)/$(EXE) +# +# Copyright (C) 2021-2025 Free Software Foundation, Inc. +# +# This file is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING3. If not see +# . + +CC = gcc +WARNINGS = -Wall -Werror=undef -Wstrict-prototypes +OPT = -g -O +CFLAGS = $(OPT) $(WARNINGS) +LDFLAGS = +LIBS = -lm -lpthread +OBJDIR = ../objects +BINDIR = ../bindir +EXPDIR = ../experiments + +EXE = mxv-pthreads +OBJECTS = $(OBJDIR)/main.o $(OBJDIR)/manage_data.o $(OBJDIR)/workload.o $(OBJDIR)/mxv.o + +default: $(BINDIR)/$(EXE) + +$(BINDIR)/$(EXE): $(OBJECTS) + @mkdir -p $(BINDIR) + $(CC) -o $(BINDIR)/$(EXE) $(LDFLAGS) $(OBJECTS) $(LIBS) + ldd $(BINDIR)/$(EXE) + +$(OBJDIR)/main.o: main.c + @mkdir -p $(OBJDIR) + $(CC) -o $(OBJDIR)/main.o -c $(CFLAGS) main.c +$(OBJDIR)/manage_data.o: manage_data.c + @mkdir -p $(OBJDIR) + $(CC) -o $(OBJDIR)/manage_data.o -c $(CFLAGS) manage_data.c +$(OBJDIR)/workload.o: workload.c + @mkdir -p $(OBJDIR) + $(CC) -o $(OBJDIR)/workload.o -c $(CFLAGS) workload.c +$(OBJDIR)/mxv.o: mxv.c + @mkdir -p $(OBJDIR) + $(CC) -o $(OBJDIR)/mxv.o -c $(CFLAGS) mxv.c + +$(OBJECTS): mydefs.h + +.c.o: + $(CC) -c -o $@ $(CFLAGS) $< + +check: + @echo "Running $(EXE) in $(EXPDIR)" + @./$(EXPDIR)/$(EXE) -m 1000 -n 1500 -t 2 + +install: $(BINDIR)/$(EXE) + @/bin/cp $(BINDIR)/$(EXE) $(EXPDIR) + @echo "Installed $(EXE) in $(EXPDIR)" + +clean: + @/bin/rm -f $(BINDIR)/$(EXE) + @/bin/rm -f $(OBJECTS) + +veryclean: + @make clean + @/bin/rm -f $(EXPDIR)/$(EXE) diff --git a/gprofng/examples/mxv-pthreads/src/main.c b/gprofng/examples/mxv-pthreads/src/main.c index 8596763..dc883fa 100644 --- a/gprofng/examples/mxv-pthreads/src/main.c +++ b/gprofng/examples/mxv-pthreads/src/main.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2021-2023 Free Software Foundation, Inc. +/* Copyright (C) 2021-2025 Free Software Foundation, Inc. Contributed by Oracle. This file is part of GNU Binutils. diff --git a/gprofng/examples/mxv-pthreads/src/manage_data.c b/gprofng/examples/mxv-pthreads/src/manage_data.c index 9db4496..332894d 100644 --- a/gprofng/examples/mxv-pthreads/src/manage_data.c +++ b/gprofng/examples/mxv-pthreads/src/manage_data.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2021-2023 Free Software Foundation, Inc. +/* Copyright (C) 2021-2025 Free Software Foundation, Inc. Contributed by Oracle. This file is part of GNU Binutils. diff --git a/gprofng/examples/mxv-pthreads/src/mxv.c b/gprofng/examples/mxv-pthreads/src/mxv.c index 1ccbbda..11e3d16 100644 --- a/gprofng/examples/mxv-pthreads/src/mxv.c +++ b/gprofng/examples/mxv-pthreads/src/mxv.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2021-2023 Free Software Foundation, Inc. +/* Copyright (C) 2021-2025 Free Software Foundation, Inc. Contributed by Oracle. This file is part of GNU Binutils. diff --git a/gprofng/examples/mxv-pthreads/src/mydefs.h b/gprofng/examples/mxv-pthreads/src/mydefs.h index 1f7e00a..63b9dc4 100644 --- a/gprofng/examples/mxv-pthreads/src/mydefs.h +++ b/gprofng/examples/mxv-pthreads/src/mydefs.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2021-2023 Free Software Foundation, Inc. +/* Copyright (C) 2021-2025 Free Software Foundation, Inc. Contributed by Oracle. This file is part of GNU Binutils. diff --git a/gprofng/examples/mxv-pthreads/src/workload.c b/gprofng/examples/mxv-pthreads/src/workload.c index fca0e81..5c11982 100644 --- a/gprofng/examples/mxv-pthreads/src/workload.c +++ b/gprofng/examples/mxv-pthreads/src/workload.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2021-2023 Free Software Foundation, Inc. +/* Copyright (C) 2021-2025 Free Software Foundation, Inc. Contributed by Oracle. This file is part of GNU Binutils. -- cgit v1.1