mirror of
https://github.com/linux-msm/rmtfs.git
synced 2025-12-24 22:19:15 +01:00
While convenient it's easy to mess things up with the qrtr project in the include and library path. Drop these and rely on the installed version of the include and library files. Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
22 lines
330 B
Makefile
22 lines
330 B
Makefile
OUT := rmtfs
|
|
|
|
CFLAGS := -Wall -g -O2
|
|
LDFLAGS := -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 -k < $<
|
|
|
|
install: $(OUT)
|
|
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJS)
|
|
|