<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,12 +3,17 @@
 export CC=gcc
 export AR=ar
 export CFLAGS=-Wall -g -O6 -std=c99
-export LUA_INCLUDE=-I/usr/include/lua5.1
-export LUA_LINK=-L/usr/local/lib -llua
+ifeq ($(shell uname), Darwin)
+  export LUA_INCLUDE=-I/usr/include/lua5.1
+  export LUA_LINK=-L/usr/local/lib -llua
+else
+  export LUA_INCLUDE=`pkg-config --silence-errors --cflags lua || pkg-config --cflags lua5.1`
+  export LUA_LINK=`pkg-config --silence-errors --libs lua || pkg-config --libs lua5.1`
+endif
 
 SUBDIRS=runtime lang_ext utilities
 ALLSUBDIRS=$(SUBDIRS) docs
-TARGETS=all clean docs doc default
+TARGETS=all clean docs doc default install runtime test utilities
 PREFIX=/usr/local
 
 .PHONY: $(TARGETS)</diff>
      <filename>Makefile</filename>
    </modified>
    <modified>
      <diff>@@ -19,7 +19,12 @@ doesn't need Lua, but without Lua you can't compile any grammars.
 
 Gazelle should build mostly out-of-the-box on UNIX-like systems if Lua 5.1 is
 installed, but you may need to tweak the Makefile to point to your local Lua
-installation.  Ubuntu Linux and Mac OS X are tested.  Just type make:
+installation.  Ubuntu Linux and Mac OS X are tested.  To install dependencies
+on Ubuntu, type:
+
+$ sudo aptitude install lua5.1 liblua5.1-0-dev
+
+To build and install Gazelle, type:
 
 $ make
 $ make install PREFIX=/usr</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -30,7 +30,7 @@ else
 bc_read_stream.so: ../../runtime/bc_read_stream.o bc_read_stream.o
 	gcc -o bc_read_stream.so -shared bc_read_stream.o ../../runtime/bc_read_stream.o
 
-gazelle.so: ../../runtime/interpreter.o ../../runtime/bc_read_stream.o ../../runtime/load_grammar.o gazelle.o
-	gcc -o gazelle.so -shared gazelle.o ../../runtime/bc_read_stream.o ../../runtime/interpreter.o ../../runtime/load_grammar.o
+gazelle.so: ../../runtime/bc_read_stream.o ../../runtime/load_grammar.o gazelle.o
+	gcc -o gazelle.so -shared gazelle.o ../../runtime/bc_read_stream.o ../../runtime/load_grammar.o
 
 endif</diff>
      <filename>lang_ext/lua/Makefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>699b9b2ffad25bd4bcac4bd59c5c91cf59fca5aa</id>
    </parent>
  </parents>
  <author>
    <name>Matt Brubeck</name>
    <email>matt@limpet.net</email>
  </author>
  <url>http://github.com/haberman/gazelle/commit/beb592c3df35cbffcee7f88ca698ba0aa7787745</url>
  <id>beb592c3df35cbffcee7f88ca698ba0aa7787745</id>
  <committed-date>2009-01-22T09:29:16-08:00</committed-date>
  <authored-date>2009-01-22T09:02:08-08:00</authored-date>
  <message>Fix build out-of-the-box on Ubuntu 8.10.

* Use pkg-config to find lua.  (But not on Mac OS X, because the upstream Lua
  distribution does not use pkg-config files.)
* Mark more targets as .PHONY.
* Remove left-over references to interpreter.o.
* Add instructions to install liblua5.1-0-dev on Ubuntu.</message>
  <tree>9e55fb1d4e23d4fd12859b303137360582a24977</tree>
  <committer>
    <name>Matt Brubeck</name>
    <email>matt@limpet.net</email>
  </committer>
</commit>
