Just to clarify, the following works, but I would like to make it
possible to make on any platform. This Makefile only works on x64:
build: clean
@@cd lib/v8; \
echo "Building V8 shell"; \
scons mode=release arch=x64; \
cd ../..; \
g++ -Ilib/v8/include src/hello.cc -o obj/hello.o lib/v8/libv8.a -
lpthread; \
cp obj/hello.o ./hello
clean:
@@echo "Removing built copy of V8"
@@rm -f hello
I am relatively new to Makefiles so I think I just need a little
guidance.
Thanks again
On Sep 30, 1:01 pm, Lea Hayes <[email protected]> wrote:
> Hello all,
>
> I started by duplicating one of the shell examples and customised it a
> little. But now I would like to use the following directory structure
> but still have the ability to build the application cross-platform
> (mac/windows/unix).
>
> This is for an open source project that I want to develop, but I am
> stumped on this part. Is there a project skeleton project that I can
> use to achieve this? or a template Makefile?
>
> /myproject/
> src/
> myproject.cc
> myproject.h
> lib/
> v8/
> ...
> Makefile
>
> Any help would be greatly appreciated!
>
> Lea Hayes
--
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users