Description: Inherit CFLAGS and LDFLAGS from the environment. Also use CPPFLAGS in the building command
Author: Didier Raboud <odyx@debian.org>
Last-Update: 2014-04-13
--- a/Makefile
+++ b/Makefile
@@ -10,8 +10,8 @@
 # Important compiler and linker options
 CC=gcc
 LD=gcc
-CFLAGS=-g -O2
-LDFLAGS=-g -O2
+CFLAGS+=-g -O2
+LDFLAGS+=-g -O2
 
 # Required libraries
 LDLIBS=
@@ -23,7 +23,7 @@
 
 # Standard production rule
 .c.o: 
-	$(CC) $(CFLAGS) -c $<
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
 
 # make all
 all: c2050
