From 86e57fd55457aaed729a7bd599addc4d63954187 Mon Sep 17 00:00:00 2001 From: Jan Eitzinger Date: Mon, 18 Jan 2021 07:53:38 +0100 Subject: [PATCH] Add info target --- Makefile | 4 ++++ include_CLANG.mk | 4 +++- include_GCC.mk | 1 + include_ICC.mk | 3 ++- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0d7e294..d79d6cd 100644 --- a/Makefile +++ b/Makefile @@ -53,6 +53,10 @@ ${TARGET}: $(BUILD_DIR) $(OBJ) asm: $(BUILD_DIR) $(ASM) +info: + @echo $(CFLAGS) + $(Q)$(CC) $(VERSION) + $(BUILD_DIR)/%.o: %.c @echo "===> COMPILE $@" $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ diff --git a/include_CLANG.mk b/include_CLANG.mk index 30945f6..40fc261 100644 --- a/include_CLANG.mk +++ b/include_CLANG.mk @@ -6,7 +6,9 @@ ifeq ($(ENABLE_OPENMP),true) OPENMP = -fopenmp endif -CFLAGS = -Ofast -ffreestanding -std=c99 $(OPENMP) +VERSION = --version +CFLAGS = -Ofast -std=c99 $(OPENMP) +#CFLAGS = -Ofast -fnt-store=aggressive -std=c99 $(OPENMP) #AMD CLANG LFLAGS = $(OPENMP) DEFINES = -D_GNU_SOURCE INCLUDES = diff --git a/include_GCC.mk b/include_GCC.mk index 4ce8210..427e798 100644 --- a/include_GCC.mk +++ b/include_GCC.mk @@ -6,6 +6,7 @@ ifeq ($(ENABLE_OPENMP),true) OPENMP = -fopenmp endif +VERSION = --version CFLAGS = -Ofast -ffreestanding -std=c99 $(OPENMP) LFLAGS = $(OPENMP) DEFINES = -D_GNU_SOURCE diff --git a/include_ICC.mk b/include_ICC.mk index bc19bc8..e172b15 100644 --- a/include_ICC.mk +++ b/include_ICC.mk @@ -6,7 +6,8 @@ ifeq ($(ENABLE_OPENMP),true) OPENMP = -qopenmp endif -CFLAGS = -Ofast -xHost -qopt-streaming-stores=always -std=c99 -ffreestanding $(OPENMP) +VERSION = --version +CFLAGS = -fast -xHost -qopt-streaming-stores=always -std=c99 -ffreestanding $(OPENMP) LFLAGS = $(OPENMP) DEFINES = -D_GNU_SOURCE INCLUDES =