Permalink
Browse files

build test js to parallel native test

  • Loading branch information...
1 parent 2b434f2 commit 354c62d7b4c7d503693c6247b365faecd8804118 @kripken kripken committed Jul 14, 2012
Showing with 11 additions and 5 deletions.
  1. +4 −3 Makefile
  2. +5 −1 js.sh
  3. +2 −1 native.sh
View
7 Makefile
@@ -19,8 +19,8 @@ DEPDIR=depends
# "Machine-dependant" options
#MFLAGS=-fPIC
-CFLAGS=-c -g -O3 -fPIC -Wall -Wsign-compare -Isrc -Ihtml
-LDFLAGS=-g -O3 -Wall -Werror -s EXPORTED_FUNCTIONS="['_main', '_malloc', '_free', '_str_to_html']"
+CFLAGS=-c -g -fPIC -Wall -Wsign-compare -Isrc -Ihtml
+LDFLAGS=-g -Wall -Werror -s EXPORTED_FUNCTIONS="['_main', '_malloc', '_free', '_str_to_html']"
CC=emcc
@@ -33,7 +33,8 @@ SUNDOWN_SRC=\
html/html.o \
html/html_smartypants.o \
html/houdini_html_e.o \
- html/houdini_href_e.o
+ html/houdini_href_e.o \
+ examples/test.o
all: libsundown.so html_blocks
View
6 js.sh 100644 → 100755
@@ -19,4 +19,8 @@ echo "Converting sundown.bc "
# emcc -O2 --closure 0 -s ASSERTIONS=1 sundown.bc -o sundown_o2_c0_a1.js
# emcc -O2 -s ASSERTIONS=1 sundown.bc -o sundown_o2_a1.js
-emcc -O2 --closure 0 sundown.bc -o sundown_o2_c0.js
+emcc -O2 sundown.bc -o test.js --embed-file data.md
+
+echo "Saving JS output"
+node test.js data.md > output.js.html
+
View
3 native.sh
@@ -4,4 +4,5 @@ make clean
echo "Making native"
make -f Makefile.native
echo "Saving native output"
-./test data.md > output.html
+./test data.md > output.native.html
+

0 comments on commit 354c62d

Please sign in to comment.