Files
qmic/Makefile
Nicolas Dechesne d42cf61564 Makefile: implement GNU Coding Standard for Makefiles
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>
2016-06-05 22:00:13 +02:00

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)