mirror of
https://github.com/linux-msm/qmic.git
synced 2026-02-25 13:11:34 -08:00
GNU coding standards notably specifies: * install files with the $(DESTDIR) to the target system image * install files with the $(prefix), not $(PREFIX) * the default value of $(prefix) should be /usr/local as per https://www.gnu.org/prep/standards/html_node/Directory-Variables.html. Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
19 lines
274 B
Makefile
19 lines
274 B
Makefile
OUT := qmic
|
|
|
|
CFLAGS := -Wall -g -O2
|
|
LDFLAGS :=
|
|
prefix := /usr/local
|
|
|
|
SRCS := qmic.c qmi_message.c qmi_struct.c
|
|
OBJS := $(SRCS:.c=.o)
|
|
|
|
$(OUT): $(OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^
|
|
|
|
install: $(OUT)
|
|
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJS)
|
|
|