Skip to content

Commit

Permalink
update makefile and new main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Anil Anar committed Jun 22, 2016
1 parent ae6a6ba commit cae80d5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 21 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
CXXFLAGS=-std=c++11 -O3 -Wall
LFLAGS=-O3 -s ALLOW_MEMORY_GROWTH=1 --memory-init-file 0 -Wall
CXXFLAGS=-std=c++11 -O3 -fno-exceptions -s ALLOW_MEMORY_GROWTH=1 -Werror
LDFLAGS=-O3 -s ALLOW_MEMORY_GROWTH=1 --memory-init-file 0 --discard-all
EXPORT=-s EXPORTED_FUNCTIONS="['_run']"

DBC=lib/vector_dbc
Expand All @@ -10,9 +10,13 @@ OBJS=build/main.o

all: dist/main.js

dist/main.js: $(BC)
dist/main.js: dist/dbc2json.bc
@mkdir -p dist
$(CXX) $(LFLAGS) $(EXPORT) -o $@ $^
$(LD) $^ $(LDFLAGS) $(EXPORT) -o $@

dist/dbc2json.bc: $(BC)
@mkdir -p dist
$(CXX) $^ $(LFLAGS) -o $@

build/libVector_DBC.bc: $(DBC)/lib/libVector_DBC.dylib
cp $^ $@
Expand Down
34 changes: 17 additions & 17 deletions dist/main.js

Large diffs are not rendered by default.

0 comments on commit cae80d5

Please sign in to comment.