[darwinbuild-changes] [38] trunk/darwinxref/Makefile

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 4 01:40:08 PDT 2006


Revision: 38
          http://trac.macosforge.org/projects/darwinbuild/changeset/38
Author:   kevin
Date:     2006-10-04 01:40:08 -0700 (Wed, 04 Oct 2006)

Log Message:
-----------
- include VERSION number
- use static libsqlite3.a

Modified Paths:
--------------
    trunk/darwinxref/Makefile

Modified: trunk/darwinxref/Makefile
===================================================================
--- trunk/darwinxref/Makefile	2005-07-07 22:45:42 UTC (rev 37)
+++ trunk/darwinxref/Makefile	2006-10-04 08:40:08 UTC (rev 38)
@@ -15,7 +15,7 @@
 TCL_CFLAGS=-DHAVE_TCL_PLUGINS=1
 TCL_LDFLAGS=-ltcl
 
-CFLAGS+=-ggdb $(TCL_CFLAGS)
+CFLAGS+=-ggdb $(TCL_CFLAGS) -DVERSION=\"$(shell cat ../VERSION)\"
 LDFLAGS+=-framework CoreFoundation $(TCL_LDFLAGS)
 PLUGIN_CFLAGS=$(CFLAGS) -I.
 PLUGIN_LDFLAGS=$(LDFLAGS) -bundle -bundle_loader darwinxref
@@ -55,7 +55,13 @@
 	rm $(wildcard plugins/*.so)
 
 darwinxref: $(SOURCES)
-	cc -o $@ $(CFLAGS) $(LDFLAGS) -lsqlite3 $(SOURCES)
+	ranlib ../sqlite/libsqlite3.a 2>/dev/null
+	cc -o $@ \
+		$(CFLAGS) \
+		$(LDFLAGS) \
+		-I../sqlite \
+		$(SOURCES) \
+		../sqlite/libsqlite3.a 
 
 plugins/%.so: plugins/%.c DBPlugin.h
 	cc -o $@ $(PLUGIN_CFLAGS) $(PLUGIN_LDFLAGS) $^

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/darwinbuild-changes/attachments/20061004/888972ef/attachment.html


More information about the darwinbuild-changes mailing list