Merge pull request #33 from petterreinholdtsen/build-install

Allow CFLAGS additions and install in DESTDIR
pull/42/head
Xael South 2022-05-07 16:23:43 +00:00 zatwierdzone przez GitHub
commit 264456747c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -5,7 +5,7 @@ STRIP=strip
OUTDIR?=build
OUTFILE="$(OUTDIR)/rtl_wmbus"
CFLAGS?=-Iinclude -std=gnu99
CFLAGS+=-Iinclude -std=gnu99
CFLAGS_WARNINGS?=-Wall -W -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wno-float-equal -Winline -Wmain -Wmissing-noreturn -Wno-missing-prototypes -Wparentheses -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-prototypes -Wswitch -Wunreachable-code -Wno-unused -Wuninitialized
LIB?=-lm
SRC=rtl_wmbus.c
@ -62,7 +62,8 @@ pi1:
rebuild: clean all
install: release
cp -f $(OUTFILE) /usr/bin
install -d $(DESTDIR)/usr/bin
install $(OUTFILE) $(DESTDIR)/usr/bin
clean:
$(RM) -rf "$(OUTDIR)"