mirror of
https://github.com/linux-msm/qmic.git
synced 2024-11-23 17:54:01 +08:00
4ad63502c5
This helps with cross compilation where toolchains specify certain flags via environment e.g. CFLAGS/LDFLAGS Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
19 lines
276 B
Makefile
19 lines
276 B
Makefile
OUT := qmic
|
|
|
|
CFLAGS ?= -Wall -g -O2
|
|
LDFLAGS ?=
|
|
prefix ?= /usr/local
|
|
|
|
SRCS := accessor.c kernel.c parser.c qmic.c
|
|
OBJS := $(SRCS:.c=.o)
|
|
|
|
$(OUT): $(OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
install: $(OUT)
|
|
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJS)
|
|
|