From 210cf79cdddda090c5ed45e29b32efee73c50494 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 28 Apr 2023 08:55:15 +0200 Subject: simplify makefile for SMAUG benchmarks --- .gitignore | 35 +------------------------------- CMakeLists.txt | 6 ------ Makefile | 13 ++---------- mbw.spec | 63 ---------------------------------------------------------- 4 files changed, 3 insertions(+), 114 deletions(-) delete mode 100644 CMakeLists.txt delete mode 100644 mbw.spec diff --git a/.gitignore b/.gitignore index d924fe3..3ab07f2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,34 +1 @@ -build/ - -# Prerequisites -*.d - -# Compiled Object files -*.slo -*.lo -*.o -*.obj - -# Precompiled Headers -*.gch -*.pch - -# Compiled Dynamic libraries -*.so -*.dylib -*.dll - -# Fortran module files -*.mod -*.smod - -# Compiled Static libraries -*.lai -*.la -*.a -*.lib - -# Executables -*.exe -*.out -*.app \ No newline at end of file +mbw diff --git a/CMakeLists.txt b/CMakeLists.txt deleted file mode 100644 index 3b2cb3e..0000000 --- a/CMakeLists.txt +++ /dev/null @@ -1,6 +0,0 @@ -cmake_minimum_required(VERSION 3.10) - -project(mbw VERSION 1.5 LANGUAGES C) - -add_executable(mbw mbw.c) -install(TARGETS mbw DESTINATION bin) diff --git a/Makefile b/Makefile index 20e2773..c6d7215 100644 --- a/Makefile +++ b/Makefile @@ -1,15 +1,6 @@ -#CFLAGS=-O2 -Wall -g -NAME=mbw -TARFILE=${NAME}.tar.gz - mbw: mbw.c + gcc -Wall -Wextra -pedantic -O2 -o mbw mbw.c +.PHONY: clean clean: rm -f mbw - rm -f ${NAME}.tar.gz - -${TARFILE}: clean - tar cCzf .. ${NAME}.tar.gz --exclude-vcs ${NAME} || true - -rpm: ${TARFILE} - rpmbuild -ta ${NAME}.tar.gz diff --git a/mbw.spec b/mbw.spec deleted file mode 100644 index f105bdf..0000000 --- a/mbw.spec +++ /dev/null @@ -1,63 +0,0 @@ -Summary: Memory bandwidth benchmark -Name: mbw -Version: 2.0 -Release: 1%{?dist} -License: GPL-3.0-or-later -Buildroot: %{_tmppath}/%{name}-buildroot -Group: System Environment/Base -Source: %{name}.tar.gz -Packager: andras.horvath@gmail.com - -%description -Test memory copy bandwidth (single thread). Switch off swap or make sure array size does not exceed available free RAM. - -%prep -%setup -n %{name} - -%build -make - -%install -mkdir -p %{buildroot}/usr/bin -mkdir -p %{buildroot}%{_mandir}/man1 -install mbw %{buildroot}/usr/bin/mbw -install mbw.1 %{buildroot}%{_mandir}/man1/mbw.1 - -%clean -rm -rf %{buildroot} - -%files -%defattr(-,root,root) -%attr(755,-,-) /usr/bin/mbw -%doc -%attr(644,-,-) %{_mandir}/man1/mbw.1.gz - -%changelog -* Mon Apr 17 2023 Andras Horvath 2.0-1 -- Migrated to GPLv3 license -- Small build fixes and cleanups - -* Tue Apr 26 2022 Andras Horvath 1.5-1 -- New platform support (Mac) - -* Fri May 04 2018 Andras Horvath 1.4-2 -- Explicitly specify licence version - -* Fri Jan 17 2014 Andras Horvath 1.4-1 -- Fix labeling of the displayed results - -* Thu Oct 03 2013 James Slocum 1.3-1 -- Fix MCBLOCK test: copy from the full source buffer, not just its first $blocksize. -- Fix MCBLOCK test: fixed segfault caused by for() going out of bounds - -* Sun Mar 11 2012 Andras Horvath 1.2-1 -- Fix MCBLOCK test: actually copy to the full buffer, not just its first $blocksize. - -* Fri Jul 07 2006 Andras Horvath 1.1-1 -- separate array initialization from work -> faster execution -- getopt() options parsing: suppress average, specific tests only, no. runs -- added quiet mode -- added a new test: memcpy() with given block size - -* Wed Apr 26 2006 Andras Horvath 1.0-1 -- initial release -- cgit v1.2.3