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
