Add info target

This commit is contained in:
Jan Eitzinger
2021-01-18 07:53:38 +01:00
parent 89b2ecdb75
commit 86e57fd554
4 changed files with 10 additions and 2 deletions

View File

@@ -53,6 +53,10 @@ ${TARGET}: $(BUILD_DIR) $(OBJ)
asm: $(BUILD_DIR) $(ASM) asm: $(BUILD_DIR) $(ASM)
info:
@echo $(CFLAGS)
$(Q)$(CC) $(VERSION)
$(BUILD_DIR)/%.o: %.c $(BUILD_DIR)/%.o: %.c
@echo "===> COMPILE $@" @echo "===> COMPILE $@"
$(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@ $(CC) -c $(CPPFLAGS) $(CFLAGS) $< -o $@

View File

@@ -6,7 +6,9 @@ ifeq ($(ENABLE_OPENMP),true)
OPENMP = -fopenmp OPENMP = -fopenmp
endif 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) LFLAGS = $(OPENMP)
DEFINES = -D_GNU_SOURCE DEFINES = -D_GNU_SOURCE
INCLUDES = INCLUDES =

View File

@@ -6,6 +6,7 @@ ifeq ($(ENABLE_OPENMP),true)
OPENMP = -fopenmp OPENMP = -fopenmp
endif endif
VERSION = --version
CFLAGS = -Ofast -ffreestanding -std=c99 $(OPENMP) CFLAGS = -Ofast -ffreestanding -std=c99 $(OPENMP)
LFLAGS = $(OPENMP) LFLAGS = $(OPENMP)
DEFINES = -D_GNU_SOURCE DEFINES = -D_GNU_SOURCE

View File

@@ -6,7 +6,8 @@ ifeq ($(ENABLE_OPENMP),true)
OPENMP = -qopenmp OPENMP = -qopenmp
endif 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) LFLAGS = $(OPENMP)
DEFINES = -D_GNU_SOURCE DEFINES = -D_GNU_SOURCE
INCLUDES = INCLUDES =