-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
29 lines (19 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
all: deps/dom.js servo
deps/dom.js:
mkdir -p deps
cd deps && git clone git://github.com/andreasgal/dom.js.git && cd dom.js && git submodule init && git submodule update && make
deps/mozilla-central:
cd deps && hg clone http://hg.mozilla.org/mozilla-central
cd deps/mozilla-central/js/src && autoconf-2.13 && mkdir build-servo && cd build-servo && ../configure --enable-threadsafe --with-system-nspr && make
deps/libev-4.04:
cd deps && curl -O http://dist.schmorp.de/libev/libev-4.04.tar.gz && tar xzf libev-4.04.tar.gz && rm libev-4.04.tar.gz
cd deps/libev-4.04 && ./configure && make
clean:
rm -f main.o servo
CXXFLAGS = -O2 -g -Wall -fmessage-length=0
OBJS = deps/mozilla-central/js/src/build-servo/libjs_static.a deps/libev-4.04/ev.o /usr/local/lib/libnspr4.a
INCLUDE = -Ideps/mozilla-central/js/src/build-servo/dist/include -Ideps/mozilla-central/js/src/build-servo
main.o: main.c
g++-4.2 -g -O -c $(INCLUDE) main.c
servo: main.o deps/mozilla-central deps/libev-4.04 $(OBJS)
g++-4.2 -g -O -o servo $(OBJS) main.o