tunctl: Make cflags weak in makefile

ensures it used flags from OE env

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2026-01-27 19:12:14 -08:00 committed by Khem Raj
parent 73d3cb2e36
commit 4938f15e42
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -4,11 +4,18 @@ Upstream-Status: Inactive-Upstream [last change: 2013-03-22]
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
diff --git a/Makefile b/Makefile
index a0aa7f6..d6ce2c7 100644
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,7 @@ MAN_DIR ?= /usr/share/man/man$(MANS)
@@ -6,7 +6,7 @@ MAN = $(PACKAGE).$(MANS)
DIST = Makefile $(PACKAGE).spec $(PACKAGE).c $(PACKAGE).sgml ChangeLog
-CFLAGS = -g -Wall
+CFLAGS ?= -g -Wall
BIN_DIR ?= /usr/sbin
MAN_DIR ?= /usr/share/man/man$(MANS)
@@ -14,12 +14,12 @@ MAN_DIR ?= /usr/share/man/man$(MANS)
all : $(BIN) $(MAN)
$(BIN) : $(BIN).c
@ -17,3 +24,9 @@ index a0aa7f6..d6ce2c7 100644
$(MAN) : $(PACKAGE).sgml
docbook2man $(PACKAGE).sgml
-clean :
+clean :
rm -f $(BIN) $(OBJS) $(MAN) *~ manpage.*
install : $(BIN) $(MAN)