diff options
author | Roland Reichwein <mail@reichwein.it> | 2023-01-28 20:31:24 +0100 |
---|---|---|
committer | Roland Reichwein <mail@reichwein.it> | 2023-01-28 20:31:24 +0100 |
commit | a69b1d0c580bc779740ef79a7d16b69229896785 (patch) | |
tree | 962ecac93c521c1d09f1dc1ca727b7121d1b5472 /webassembly | |
parent | dd358ac5cdfc2b449dcbe94a33a06a7540d8f966 (diff) |
Client to Server: send diffs instead of whole file
Diffstat (limited to 'webassembly')
-rw-r--r-- | webassembly/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/webassembly/Makefile b/webassembly/Makefile index e2898e4..df81e19 100644 --- a/webassembly/Makefile +++ b/webassembly/Makefile @@ -5,10 +5,17 @@ OBJS=diff.o CXX=em++ -CXXFLAGS=-I/usr/include -std=c++20 +CXXFLAGS=-I./include -O2 -std=c++20 LDFLAGS=-s WASM=1 -s LINKABLE=1 -s EXPORT_ALL=1 + default: $(TARGET) +$(OBJS): include + +include: + mkdir include + cp -r /usr/include/boost include/boost + $(TARGET): $(OBJS) $(CXX) $(LDFLAGS) $(OBJS) -o $(TARGETJS) cp $(TARGETJS) $(TARGET) ../html/ @@ -18,3 +25,4 @@ diff.o: ../diff.cpp clean: -rm -f *.o *.js *.wasm *.html + -rm -rf include |