File: 0001-use-cppflags

package info (click to toggle)
bgpq3 0.1.36.1-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 544 kB
  • sloc: ansic: 5,411; sh: 153; makefile: 71
file content (34 lines) | stat: -rw-r--r-- 884 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Apollon Oikonomopoulos <apoikos@debian.org>
Date: Mon, 9 Jan 2023 21:34:07 +0200
Subject: Use CPPFLAGS and drop extra CFLAGS from build

Forwarded: no
Last-Update: 2023-01-09
---
 Makefile.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile.in b/Makefile.in
index b32a562..6fcfa5e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,5 +1,5 @@
 CC=@CC@
-CFLAGS=@CFLAGS@ @DEFS@ -g -Wall -I.
+CFLAGS=@CFLAGS@ @DEFS@ -I.
 LDADD=@LDFLAGS@ @LIBS@
 INSTALL=@INSTALL@
 
@@ -20,10 +20,10 @@ SRCS=bgpq3.c sx_report.c bgpq_expander.c sx_slentry.c bgpq3_printer.c \
 all: bgpq3
 
 bgpq3: ${OBJECTS}
-	${CC} ${CFLAGS} -o bgpq3 ${OBJECTS} ${LDADD}
+	${CC} ${CFLAGS} $(CPPFLAGS) -o bgpq3 ${OBJECTS} ${LDADD}
 
 .c.o: 
-	${CC} ${CFLAGS} -c $<
+	${CC} ${CFLAGS} $(CPPFLAGS) -c $<
 
 clean: 
 	rm -rf Makefile autom4te.cache bgpq3 config.h config.log config.status