Made Makefiles not override $CC and $CXX variables (needed for cross-compiling)
parent
1bdd32e4ae
commit
c5f716d03d
|
@ -4,9 +4,9 @@
|
||||||
|
|
||||||
all: libCppUnitLite.a
|
all: libCppUnitLite.a
|
||||||
|
|
||||||
CC=gcc
|
CC ?= gcc
|
||||||
CXX=gcc
|
CXX ?= g++
|
||||||
CPP=gcc
|
CPP ?= cpp
|
||||||
CXXFLAGS += -O2
|
CXXFLAGS += -O2
|
||||||
|
|
||||||
sources = $(shell ls *.cpp)
|
sources = $(shell ls *.cpp)
|
||||||
|
@ -32,4 +32,4 @@ install: all
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
|
|
||||||
check: all
|
check: all
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
all: libcolamd.a
|
all: libcolamd.a
|
||||||
|
|
||||||
CC=gcc
|
CC ?= gcc
|
||||||
CXX=gcc
|
CXX ?= g++
|
||||||
CXXFLAGS += -O2
|
CXXFLAGS += -O2
|
||||||
CXXFLAGS += -fPIC
|
CXXFLAGS += -fPIC
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ include ./UFconfig.mk
|
||||||
CXXFLAGS += -O2
|
CXXFLAGS += -O2
|
||||||
CXXFLAGS += -fPIC -I./
|
CXXFLAGS += -fPIC -I./
|
||||||
|
|
||||||
CXX = g++
|
CXX ?= g++
|
||||||
|
|
||||||
all: demo
|
all: demo
|
||||||
|
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
# C compiler and compiler flags: These will normally not give you optimal
|
# C compiler and compiler flags: These will normally not give you optimal
|
||||||
# performance. You should select the optimization parameters that are best
|
# performance. You should select the optimization parameters that are best
|
||||||
# for your system. On Linux, use "CFLAGS = -O3 -fexceptions" for example.
|
# for your system. On Linux, use "CFLAGS = -O3 -fexceptions" for example.
|
||||||
CC = cc
|
CC ?= cc
|
||||||
# CFLAGS = -O (for example; see below for details)
|
# CFLAGS = -O (for example; see below for details)
|
||||||
|
|
||||||
# C++ compiler (also uses CFLAGS)
|
# C++ compiler (also uses CFLAGS)
|
||||||
|
|
Loading…
Reference in New Issue