]> git.saurik.com Git - cycript.git/commitdiff
Beginnings of FreeBSD portability.
authorDouglas William Thrift <douglas@douglasthrift.net>
Thu, 22 Oct 2009 06:33:47 +0000 (06:33 +0000)
committerDouglas William Thrift <douglas@douglasthrift.net>
Thu, 22 Oct 2009 06:33:47 +0000 (06:33 +0000)
FreeBSD.mk [new file with mode: 0644]
makefile

diff --git a/FreeBSD.mk b/FreeBSD.mk
new file mode 100644 (file)
index 0000000..34e44e9
--- /dev/null
@@ -0,0 +1,3 @@
+export PATH :=/usr/local/bin:$(PATH)
+
+flags += -I/usr/local/include -I/usr/local/include/webkit-1.0
index c0c46dc5bdcb44ce6c3949c82e01d68b75cb173f..a01b0460da44d72f5d0f1e90c69cbbf9f10013b4 100644 (file)
--- a/makefile
+++ b/makefile
@@ -13,9 +13,9 @@ svn := $(shell svnversion)
 all:
 all := libcycript.plist cycript
 
-dpkg_architecture := $(shell dpkg-architecture &>/dev/null)
+dpkg_architecture := $(shell which dpkg-architecture 2>/dev/null)
 ifneq ($(dpkg_architecture),)
-arch := $(shell $(dpkg_architecture) -qDEB_HOST_ARCH)
+arch := $(shell $(dpkg_architecture) -qDEB_HOST_ARCH 2>/dev/null)
 endif
 
 header := Cycript.tab.hh Parser.hpp Pooling.hpp cycript.hpp
@@ -111,7 +111,7 @@ libcycript.$(dll): ffi_type.o parse.o Replace.o Output.o Cycript.tab.o lex.cy.o
            -framework JavaScriptCore -framework WebCore
        ldid -S $@
 
-cycript: Console.o libcycript.dylib
+cycript: Console.o libcycript.$(dll)
        $(target)g++ $(flags) -o $@ $(filter %.o,$^) \
            -lobjc -lapr-1 -lreadline \
            -L. -lcycript \