]> git.saurik.com Git - cycript.git/blobdiff - makefile
Beginnings of FreeBSD portability.
[cycript.git] / makefile
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 \