From bb9f5eef720bd808db943dd0807d5cbd8574033c Mon Sep 17 00:00:00 2001 From: Douglas William Thrift Date: Thu, 22 Oct 2009 06:33:47 +0000 Subject: [PATCH] Beginnings of FreeBSD portability. --- FreeBSD.mk | 3 +++ makefile | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) create mode 100644 FreeBSD.mk diff --git a/FreeBSD.mk b/FreeBSD.mk new file mode 100644 index 0000000..34e44e9 --- /dev/null +++ b/FreeBSD.mk @@ -0,0 +1,3 @@ +export PATH :=/usr/local/bin:$(PATH) + +flags += -I/usr/local/include -I/usr/local/include/webkit-1.0 diff --git a/makefile b/makefile index c0c46dc..a01b046 100644 --- 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 \ -- 2.49.0