1
0
mirror of https://github.com/UzixLS/picocom.git synced 2025-07-19 07:21:18 +03:00

Makefile: use environment set variables

Allow extending the toolchain related variables from the environment. This is
particularly useful when cross compiling, since it allows adding target
specific parameters.

Leave LD alone since it is used to link the final picocom binary. The default
ld linker can't do that without explicitly specifying the C library.
This commit is contained in:
Baruch Siach
2017-05-30 10:37:04 +03:00
parent deffd18c24
commit fef9ede422

View File

@ -1,13 +1,13 @@
VERSION = 2.3a
#CC = gcc
CPPFLAGS = -DVERSION_STR=\"$(VERSION)\"
CFLAGS = -Wall -g
#CC ?= gcc
CPPFLAGS += -DVERSION_STR=\"$(VERSION)\"
CFLAGS += -Wall -g
LD = $(CC)
LDFLAGS = -g
LDLIBS =
LDFLAGS ?= -g
LDLIBS ?=
all: picocom
OBJS =