fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
525 stars 55 forks source link

peg-0.1.4/Makefile: Allow CFLAGS from the env #127

Closed samueljohn closed 12 years ago

samueljohn commented 12 years ago

Would you mind changing the CFLAGS in the peg-0.1.4/Makefile, so I can teach it about the locations of the unix tools and frameworks via the CFLAGS env variable on my Xcode 4.3 (without command line tools installed) system?

Something like this:

-CFLAGS = -g -Wall $(OFLAGS) $(XFLAGS)
+CFLAGS += -g -Wall $(OFLAGS) $(XFLAGS)
fletcher commented 12 years ago

You are certainly welcome to do that.

samueljohn commented 12 years ago

I got around this. But it's kinda ugly because I overwrite CFLAGS on the call of make and have to add -I .. and some internal settings that would be overwritten otherwise. So I can put the location of the Xcode frameworks and other stuff into $MYCFLAGS.:

    make CFLAGS="$MYCFLAGS -I.. -D MD_USE_GET_OPT=1 -include GLibFacade.h"