mirror of
https://github.com/linux-msm/qdl.git
synced 2026-02-25 13:12:25 -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. Suggested-by: Kirill Kapranov <kkapra@codeaurora.org> Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
18 lines
333 B
Makefile
18 lines
333 B
Makefile
OUT := qdl
|
|
|
|
CFLAGS := -O2 -Wall -g `xml2-config --cflags`
|
|
LDFLAGS := `xml2-config --libs`
|
|
prefix := /usr/local
|
|
|
|
SRCS := firehose.c qdl.c sahara.c util.c patch.c program.c
|
|
OBJS := $(SRCS:.c=.o)
|
|
|
|
$(OUT): $(OBJS)
|
|
$(CC) -o $@ $^ $(LDFLAGS)
|
|
|
|
clean:
|
|
rm -f $(OUT) $(OBJS)
|
|
|
|
install: $(OUT)
|
|
install -D -m 755 $< $(DESTDIR)$(prefix)/bin/$<
|