-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
22 lines (16 loc) · 632 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
CXX=clang++
CXXFLAGS=-O2 -Wall
CXXFLAGS2=-std=c++1y -Itmp $(CXXFLAGS)
CAPNP_DIR=/opt/sandstorm/latest/usr/include
.PHONEY: all install uninstall clean environment
ssjekyll.spk: bin/ssjekyll sandstorm-pkgdef.capnp sandstorm-files.list
spk pack ssjekyll.spk
clean:
rm -rf tmp bin/ssjekyll ssjekyll.spk
tmp/genfiles:
@mkdir -p tmp
capnp compile --src-prefix=$(CAPNP_DIR) -oc++:tmp $(CAPNP_DIR)/sandstorm/*.capnp
@touch tmp/genfiles
bin/ssjekyll: tmp/genfiles server/ssjekyll.c++
@mkdir -p bin
$(CXX) -static server/ssjekyll.c++ tmp/sandstorm/*.capnp.c++ -o bin/ssjekyll $(CXXFLAGS2) `pkg-config capnp-rpc --cflags --libs`