192
|
1 CHROOT=/var/dgl
|
193
|
2 BINDIR=/usr/local/bin
|
192
|
3
|
|
4 WEBASSETS = about.html bell.svg index.html options.html options.js rlgterm.js \
|
|
5 style-rlg.css termemu.js termemu-keys.js tty.css
|
|
6
|
|
7 all: sqlickrypt dglwatcher
|
|
8
|
|
9 sqlickrypt: sqlickrypt.c
|
|
10 cc -o sqlickrypt sqlickrypt.c -lcrypt -lsqlite3
|
|
11
|
|
12 dglwatcher: dglwatcher.c
|
|
13 cc -o dglwatcher dglwatcher.c
|
|
14
|
|
15 clean:
|
|
16 rm -f sqlickrypt dglwatcher
|
|
17
|
|
18 install: all
|
|
19 mkdir -p ${CHROOT}/bin
|
|
20 cp sqlickrypt dglwatcher ${CHROOT}/bin
|
|
21 for LIB in `ldd ./sqlickrypt | awk '$$1 ~ "^/" {print $$1}; $$3 ~ "^/" {print $$3}'`; do mkdir -p ${CHROOT}`dirname $$LIB`; cp $$LIB ${CHROOT}$$LIB; done
|
195
|
22 cp rlgwebd rlgwebd-stop ${BINDIR}
|
192
|
23 cp ${WEBASSETS} ${CHROOT}/var/www
|
|
24 cp rlgwebd.service /usr/lib/systemd/system
|