summaryrefslogtreecommitdiffhomepage
path: root/webassembly/Makefile
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-28 20:31:24 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-28 20:31:24 +0100
commita69b1d0c580bc779740ef79a7d16b69229896785 (patch)
tree962ecac93c521c1d09f1dc1ca727b7121d1b5472 /webassembly/Makefile
parentdd358ac5cdfc2b449dcbe94a33a06a7540d8f966 (diff)
Client to Server: send diffs instead of whole file
Diffstat (limited to 'webassembly/Makefile')
-rw-r--r--webassembly/Makefile10
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