Commit faf82f7f authored by Peter Pentchev's avatar Peter Pentchev

Let the user override some build tool names.

parent 536f4dac
Changelog for libdebug.
0.5.2 not yet ;)
- let some build tool names (CC, AR, ARFLAGS, INSTALL) be
overridden by environment variables
0.5.1 2016/04/18
- drop the sizeof(char) use in allocations; I don't think that
......
......@@ -2,6 +2,7 @@
# -*- sh -*-
# Copyright (c) 2002-2004 Abraham vd Merwe <abz@blio.com>
# Copyright (c) 2017 Peter Pentchev <roam@ringlet.net>
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
......@@ -59,15 +60,17 @@ else # ifndef CROSS
CFLAGS += -mapcs-32 -march=armv4 -mtune=strongarm1100 -mshort-load-bytes
endif # ifndef CROSS
CC = $(CROSS)$(COLOR)gcc
_CC = $(CROSS)$(COLOR)gcc
ifeq ($(shell which $(CC)),)
CC = $(CROSS)gcc
endif # ifeq ($(shell which $(CC)),)
ifeq ($(shell which $(_CC)),)
_CC = $(CROSS)gcc
endif # ifeq ($(shell which $(_CC)),)
ifeq ($(shell which $(CC)),)
CC = gcc
endif # ifeq ($(shell which $(CC)),)
ifeq ($(shell which $(_CC)),)
_CC = gcc
endif # ifeq ($(shell which $(_CC)),)
CC ?= $(_CC)
ifeq ($(DEBUG),"yes")
CFLAGS += -ggdb
......@@ -86,8 +89,8 @@ ifneq ($(shell echo $(LIB) | grep -e '\.so'),)
CFLAGS += -fPIC
endif # ifeq ($(suffix $(LIB)),.so)
INSTALL = install
INSTALL ?= install
AR = $(CROSS)ar
ARFLAGS = crv
AR ?= $(CROSS)ar
ARFLAGS ?= crv
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment