Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
add readme, minor makefile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Anil Anar committed Jun 21, 2016
1 parent aae5557 commit 267d277
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ all: dist/main.js

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

build/libVector_DBC.bc: $(DBC)/lib/libVector_DBC.dylib
cp $^ $@
Expand All @@ -38,6 +38,6 @@ build/%.o: src/%.cpp $(DBC)/include/DBC.h
$(CXX) -I./$(DBC)/include -I./lib/jsonxx $(CXXFLAGS) $(EXPORT) -o $@ $<

clean:
if [ -a $(DBC)/build/Makefile ]; then make -C $(DBC)/build clean; fi;
if [ -a $(DBC)/build ]; then rm -rf $(DBC)/build; fi;
rm -rf build
rm -rf dist
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
To get started:

Download [emscripten](https://kripken.github.io/emscripten-site/index.html). I used portable SDK. You may need to change your `PATH` depending on how/what you install. If you download portable SDK, you can find SDK binaries (e.g. `emmake`) in `$SDK_ROOT/emsdk_portable/emscripten/$VERSION/`. Then run the following:

```shell
hg clone https://bitbucket.org/m2m/dbc2json.js
cd dbc2json.js
emmake make
```

To clean:

```shell
make clean
```

To force build (in case stuff gets out of sync):

```shell
emmake make -B
```

0 comments on commit 267d277

Please sign in to comment.