File: makefile_flags.patch

package info (click to toggle)
ampr-ripd 2.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 184 kB
  • sloc: ansic: 1,789; makefile: 25; sh: 2
file content (21 lines) | stat: -rw-r--r-- 481 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
Description: Adds compiler flags to Makefile
Author: Ana Custura <ana@netstat.org.uk>
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
@@ -23,11 +23,10 @@
 # Full debug
 #DOPT = -D HAVE_DEBUG
 
-COPT = -Wall -O2
-LOPT =
-
+CFLAGS ?= -Wall -O2
+LDFLAGS ?=
 ampr-ripd:	ampr-ripd.c
-	$(CC) $(COPT) $(DOPT) $(LOPT) -o ampr-ripd ampr-ripd.c
+	$(CC) $(CFLAGS) $(DOPT) $(LDFLAGS) $(CPPFLAGS) -o ampr-ripd ampr-ripd.c
 
 all:	ampr-ripd