From 80af0e00576ea31e8afc2ecf1d5bf8cc204fa42a Mon Sep 17 00:00:00 2001 From: Damian Wrobel Date: Fri, 28 Feb 2020 17:19:19 +0100 Subject: [PATCH] Allow to redefine CFLAGS* and OUTPUT directory Signed-off-by: Damian Wrobel --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b226f04..2d2d103 100644 --- a/Makefile +++ b/Makefile @@ -3,11 +3,11 @@ MKDIR=mkdir CC=gcc STRIP=strip -OUTDIR=build +OUTDIR?=build OUTFILE="$(OUTDIR)/rtl_wmbus" -CFLAGS=-Iinclude -std=gnu99 -CFLAGS_WARNINGS=-Wall -W -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Winline -Wmain -Wmissing-noreturn -Wmissing-prototypes -Wparentheses -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-prototypes -Wswitch -Wunreachable-code -Wunused -Wuninitialized -LIB=-lm +CFLAGS?=-Iinclude -std=gnu99 +CFLAGS_WARNINGS?=-Wall -W -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wchar-subscripts -Wcomment -Wfloat-equal -Winline -Wmain -Wmissing-noreturn -Wmissing-prototypes -Wparentheses -Wpointer-arith -Wredundant-decls -Wreturn-type -Wshadow -Wsign-compare -Wstrict-prototypes -Wswitch -Wunreachable-code -Wunused -Wuninitialized +LIB?=-lm SRC=rtl_wmbus.c all: $(OUTDIR) release