mirror of
https://github.com/linux-msm/rmtfs.git
synced 2024-11-23 12:14:12 +08:00
db86a3b1a5
Utilize the QMI encoder/decoder functions being part of libqrtr instead of rolling our own. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
22 lines
351 B
Makefile
22 lines
351 B
Makefile
OUT := rmtfs
|
|
|
|
CFLAGS := -Wall -g -I../qrtr/lib -O2
|
|
LDFLAGS := -L../qrtr -lqrtr -ludev
|
|
prefix := /usr/local
|
|
|
|
SRCS := qmi_rmtfs.c rmtfs.c sharedmem.c storage.c util.c
|
|
OBJS := $(SRCS:.c=.o)
|
|
|
|
$(OUT): $(OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
%.c: %.qmi
|
|
qmic < $<
|
|
|
|
install: $(OUT)
|
|
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJS)
|
|
|