# HG changeset patch # User viric # Date 1458469528 -3600 # Node ID 9be22a4aa695bc24c80ab8bfc0af3df3bdba7acf # Parent 23242cea443d2990e56ca49659d159e7c55a5fb7 Description: Respect external CFLAGS and CPPFLAGS Author: Alexander Inyukhin Forwarded: yes Last-Update: 2012-06-09 diff -r 23242cea443d -r 9be22a4aa695 Makefile --- a/Makefile Sun Mar 20 11:25:10 2016 +0100 +++ b/Makefile Sun Mar 20 11:25:28 2016 +0100 @@ -1,6 +1,7 @@ PREFIX?=/usr/local GLIBCFLAGS=-D_XOPEN_SOURCE=500 -D__STRICT_ANSI__ -CFLAGS=-pedantic -ansi -Wall -g -O0 +CPPFLAGS+=$(GLIBCFLAGS) +CFLAGS?=-pedantic -ansi -Wall -g -O0 OBJECTS=main.o \ server.o \ server_start.o \ @@ -32,7 +33,7 @@ .c.o: - $(CC) $(CFLAGS) $(GLIBCFLAGS) -c $< + $(CC) $(CFLAGS) $(CPPFLAGS) -c $< # Dependencies main.o: main.c main.h