mirror of
https://github.com/linux-msm/rmtfs.git
synced 2024-11-23 12:14:12 +08:00
5eb67a1fb5
The caller might have specified CFLAGS or LDFLAGS. Let's respect those. Signed-off-by: Brian Norris <computersforpeace@gmail.com>
22 lines
329 B
Makefile
22 lines
329 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)
|
|
|