[hipl-commit] [trunk] Rev 4233: Create a separate CH_CPPFLAGS variable to be used _only_ in the

  • From: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
  • To: hipl-commit@xxxxxxxxxxxxx
  • Date: Sat, 10 Apr 2010 01:59:30 +0300

Committer: Mircea Gherzan <mircea.gherzan@xxxxxxxxxxxxxx>
Date: 10/04/2010 at 01:59:30
Revision: 4233
Revision-id: mircea.gherzan@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Branch nick: trunk

Log:
  Create a separate CH_CPPFLAGS variable to be used _only_ in the 
  checkheaders target, in order not to conflict with the global
  CPPFLAGS.

Modified:
  M  Makefile.am

=== modified file 'Makefile.am'
--- Makefile.am 2010-04-09 21:59:45 +0000
+++ Makefile.am 2010-04-09 22:58:09 +0000
@@ -473,12 +473,12 @@
 CLEANFILES          += $(HIPL_HEADER_OBJS)
 
 #this macro is not to be used in headers, so use it "globally" just for 
checkheaders
-CPPFLAGS = -D_BSD_SOURCE
+CH_CPPFLAGS = -D_BSD_SOURCE
 
 checkheaders: $(HIPL_HEADER_OBJS)
 vpath %.h $(srcdir)
 %.ho: %.h
-       $(CC) -I$(srcdir) -I$(builddir) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) 
$(CFLAGS) -o $@ $<
+       $(CC) -I$(srcdir) -I$(builddir) $(AM_CPPFLAGS) $(CH_CPPFLAGS) 
$(AM_CFLAGS) $(CFLAGS) -o $@ $<
 
 i3/i3/i3_config.lo lib/dht/libhipdhtxml.lo: CFLAGS += `xml2-config --cflags`
 lib/gui/%: CFLAGS += @GTK_CFLAGS@ -Wno-strict-prototypes

Other related posts:

  • » [hipl-commit] [trunk] Rev 4233: Create a separate CH_CPPFLAGS variable to be used _only_ in the - Mircea Gherzan