Commit ac16d04f authored by Federico Vaga's avatar Federico Vaga Committed by Alessandro Rubini

Makefile: use EXTRACFLAGS in order to use user's flags

The main reason to introduce this EXTRACFLAGS variable is to allow people
to cross compile on x86 architectures over 32bits and 64bits

    make EXTRACFLAGS="-m32"
    make EXTRACFLAGS="-m64"
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
Acked-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 05fabf80
......@@ -24,7 +24,7 @@ CFLAGS += -I../include/linux # for <sdb.h>
CFLAGS += -ffunction-sections -fdata-sections
CFLAGS += -Wno-pointer-sign
CFLAGS += $(ENDIAN) $(LINUXINCLUDE)
CFLAGS += $(EXTRACFLAGS)
LIB = libsdbfs.a
OBJS = glue.o access.o
......
CFLAGS = -Wall -ggdb -O2 -I../kernel/include
CFLAGS = -Wall -ggdb -O2 -I../kernel/include $(EXTRACFLAGS)
all: fru-dump fmc-mem
......
......@@ -2,7 +2,7 @@ OBJ=ipmi.o
OUT=libipmi.a
OUT_SO=libipmi.so
CFLAGS+=-fPIC -shared -Wall -Wextra -ggdb
CFLAGS+=-fPIC -shared -Wall -Wextra -ggdb $(EXTRACFLAGS)
all: $(OUT) $(OUT_SO)
......
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