File: adding-support-for-build-flags

package info (click to toggle)
braillefont 1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 144 kB
  • sloc: ansic: 204; makefile: 28; perl: 20; sh: 13
file content (24 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Description: Adding support for build flags
 Changing Makefile to support CPPFLAGS, CFLAGS and LDFLAGS
Forwarded: not-needed
Last-Update: 2020-12-03
---

--- braillefont-1.0.orig/Makefile
+++ braillefont-1.0/Makefile
@@ -2,11 +2,13 @@ all: braillefont
 clean:
 	rm -f braillefont braillefont.o 6x8font.h
 
+CFLAGS := -std=c99 -Wall $(CFLAGS)
+
 braillefont:	braillefont.o
-	$(CC) -std=c99 -Wall $^ -o $@
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $^ -o $@
 
 braillefont.o:	braillefont.c 6x8font.h
-	$(CC) -std=c99 -Wall -c $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -c $<
 
 6x8font.h:	png2font 6x8.png
 	./png2font >6x8font.h