Define CC = $(CROSS_COMPILE)gcc in makefile and add EXTRA_CFLAGS, EXTRA_LDFLAGS

Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>
master
Delio Brignoli 2012-07-24 12:30:06 +02:00 committed by Richard Cochran
parent 480a16596f
commit 3a64baee50
1 changed files with 3 additions and 4 deletions

View File

@ -18,11 +18,10 @@
KBUILD_OUTPUT ?= /lib/modules/$(shell uname -r)/build KBUILD_OUTPUT ?= /lib/modules/$(shell uname -r)/build
DEBUG = DEBUG =
CC = gcc CC = $(CROSS_COMPILE)gcc
INC = -I$(KBUILD_OUTPUT)/usr/include INC = -I$(KBUILD_OUTPUT)/usr/include
CFLAGS = -Wall $(INC) $(DEBUG) CFLAGS = -Wall $(INC) $(DEBUG) $(EXTRA_CFLAGS)
LDFLAGS = LDLIBS = -lm -lrt $(EXTRA_LDFLAGS)
LDLIBS = -lm -lrt
PRG = ptp4l phc2sys hwstamp_ctl PRG = ptp4l phc2sys hwstamp_ctl
OBJ = bmc.o clock.o config.o fsm.o ptp4l.o mave.o msg.o phc.o pi.o port.o \ OBJ = bmc.o clock.o config.o fsm.o ptp4l.o mave.o msg.o phc.o pi.o port.o \
print.o raw.o servo.o sk.o tmtab.o transport.o udp.o udp6.o util.o print.o raw.o servo.o sk.o tmtab.o transport.o udp.o udp6.o util.o