-
Notifications
You must be signed in to change notification settings - Fork 67
/
Makefile
26 lines (15 loc) · 810 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FILES = main.vala
all: sarahLib sarahApp sarahPlugins
sarahApp:
valac -o sarah $(FILES) -b . --vapidir ./bin --pkg libpeas-1.0 --pkg sarah -X -I./bin -X -L./bin -X -lsarah -d ./bin
sarahLib:
valac -o libsarah.so --library=sarah -H ./bin/sarah.h --gir=Sarah-1.0.gir -X -shared -X -fPIC --pkg libpeas-1.0 --pkg gmodule-2.0 sarah.vala -d ./bin
g-ir-compiler --shared-library=libsarah.so ./bin/Sarah-1.0.gir -o ./bin/Sarah-1.0.typelib
sarahPlugins:
valac -o libhello.so --library=hello ./plugins/vala-extension-demo/vala-extension.vala -X -shared -X -fPIC --vapidir ./bin --pkg sarah --pkg libpeas-1.0 -X -I./bin -X -L./bin -X -lsarah -d ./bin/plugins/vala-extension-demo/
clean:
rm -rf *.vapi *.h *.so sarah
rm -rf ./bin
install:
cp -rf ./plugins/* ./bin/plugins/
cd ./bin