Allow for overriding the CXX and CC executables

This commit is contained in:
David Chavez 2022-05-30 16:49:11 +02:00
commit 44eb8d4a88
6 changed files with 8 additions and 8 deletions

View file

@ -1,6 +1,6 @@
# Only used for standalone compilation, usually inherits these from the main makefile # Only used for standalone compilation, usually inherits these from the main makefile
CXX := g++-12 CXX ?= g++
AR := ar AR := ar
FORMAT := clang-format-11 FORMAT := clang-format-11

View file

@ -9,7 +9,7 @@ LLD ?= 0
WERROR ?= 0 WERROR ?= 0
UNAME := $(shell uname) UNAME := $(shell uname)
CXX := g++-12 CXX ?= g++
INC := -I ZAPD -I lib/elfio -I lib/libgfxd -I lib/tinyxml2 -I ZAPDUtils INC := -I ZAPD -I lib/elfio -I lib/libgfxd -I lib/tinyxml2 -I ZAPDUtils
CXXFLAGS := -fpic -std=c++17 -Wall -Wextra -fno-omit-frame-pointer CXXFLAGS := -fpic -std=c++17 -Wall -Wextra -fno-omit-frame-pointer

View file

@ -1,5 +1,5 @@
# Only used for standalone compilation, usually inherits these from the main makefile # Only used for standalone compilation, usually inherits these from the main makefile
CXX := g++-12 CXX ?= g++
CXXFLAGS ?= -Wall -Wextra -O2 -g -std=c++17 CXXFLAGS ?= -Wall -Wextra -O2 -g -std=c++17
SRC_DIRS := $(shell find . -type d -not -path "*build*") SRC_DIRS := $(shell find . -type d -not -path "*build*")

View file

@ -1,4 +1,4 @@
CC := gcc-12 CC ?= gcc
CFLAGS = -Wall -O2 -g CFLAGS = -Wall -O2 -g
UC_OBJ = uc_f3d.o uc_f3db.o uc_f3dex.o uc_f3dexb.o uc_f3dex2.o UC_OBJ = uc_f3d.o uc_f3db.o uc_f3dex.o uc_f3dexb.o uc_f3dex2.o
OBJ = gfxd.o $(UC_OBJ) OBJ = gfxd.o $(UC_OBJ)

View file

@ -1,7 +1,7 @@
# Only used for standalone compilation, usually inherits these from the main makefile # Only used for standalone compilation, usually inherits these from the main makefile
CXX := g++-12 CXX ?= g++
CC := gcc-12 CC ?= gcc
AR := ar AR := ar
FORMAT := clang-format-11 FORMAT := clang-format-11
UNAME := $(shell uname) UNAME := $(shell uname)

View file

@ -1,5 +1,5 @@
CXX := g++-12 CXX ?= g++
CC := gcc-12 CC ?= gcc
LD := lld LD := lld
AR := ar AR := ar
FORMAT := clang-format-11 FORMAT := clang-format-11