Mercurial > hg > anonet-resdb
comparison contrib/splicex/src/make.in @ 697:a554ba2c1e81 draft
SpliceX now compiles to true binary
author | d3v11 <d3v11@d3v11.ano> |
---|---|
date | Fri, 28 Oct 2011 19:08:24 -0400 |
parents | |
children | e930c37c85dc |
comparison
equal
deleted
inserted
replaced
695:24a6ba1d8657 | 697:a554ba2c1e81 |
---|---|
1 compile: | |
2 cython src/splicex.pyx -o build/splicex.c | |
3 gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/PYTHON -c build/splicex.c -o build/splicex.o | |
4 gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/splicex.o -o build/splicex.so | |
5 | |
6 install-deb: | |
7 make preinstall | |
8 mkdir DEBIAN/splicex | |
9 mkdir DEBIAN/splicex/DEBIAN | |
10 mkdir DEBIAN/splicex/usr | |
11 mkdir DEBIAN/splicex/usr/bin | |
12 mkdir DEBIAN/splicex/etc | |
13 mkdir DEBIAN/splicex/etc/splicex | |
14 cp DEBIAN/control DEBIAN/splicex/DEBIAN/control | |
15 cp build/splicex DEBIAN/splicex/usr/bin/splicex | |
16 cp build/splicex.so /etc/splicex/splicex.so | |
17 cp build/splicex-deshadow DEBIAN/splicex/usr/bin/splicex-deshadow | |
18 chmod +x DEBIAN/splicex/usr/bin/splicex | |
19 chmod +x DEBIAN/splicex/usr/bin/splicex-deshadow | |
20 cp src/splicex.list DEBIAN/splicex/etc/splicex/splicex.list | |
21 cp src/manual DEBIAN/splicex/etc/splicex/splicex.1 | |
22 gzip DEBIAN/splicex/etc/splicex/splicex.1 | |
23 cp src/splicex.L DEBIAN/splicex/etc/splicex/splicex.L | |
24 cp src/splicex.N DEBIAN/splicex/etc/splicex/splicex.N | |
25 cp src/splicex.S DEBIAN/splicex/etc/splicex/splicex.S | |
26 cp src/splicex.LN DEBIAN/splicex/etc/splicex/splicex.LN | |
27 cp src/splicex.LS DEBIAN/splicex/etc/splicex/splicex.LS | |
28 cp src/splicex.NS DEBIAN/splicex/etc/splicex/splicex.NS | |
29 cp src/splicex.ALL DEBIAN/splicex/etc/splicex/splicex.ALL | |
30 dpkg-deb --build DEBIAN/splicex | |
31 dpkg -i DEBIAN/splicex.deb | |
32 rm -rf DEBIAN/splicex DEBIAN/splicex.deb | |
33 | |
34 install: | |
35 make preinstall | |
36 mkdir /etc/splicex | |
37 cp build/splicex /usr/bin/splicex | |
38 cp build/splicex.so /etc/splicex/splicex.so | |
39 cp build/splicex-deshadow /usr/bin/splicex-deshadow | |
40 chmod +x /usr/bin/splicex | |
41 chmod +x /usr/bin/splicex-deshadow | |
42 cp src/splicex.list /etc/splicex/splicex.list | |
43 cp src/manual /etc/splicex/splicex.1 | |
44 gzip /etc/splicex/splicex.1 | |
45 cp src/splicex.L /etc/splicex/splicex.L | |
46 cp src/splicex.N /etc/splicex/splicex.N | |
47 cp src/splicex.S /etc/splicex/splicex.S | |
48 cp src/splicex.LN /etc/splicex/splicex.LN | |
49 cp src/splicex.LS /etc/splicex/splicex.LS | |
50 cp src/splicex.NS /etc/splicex/splicex.NS | |
51 cp src/splicex.ALL /etc/splicex/splicex.ALL | |
52 | |
53 uninstall: | |
54 rm -rf /etc/splicex | |
55 rm -f /usr/bin/splicex | |
56 rm -f /usr/bin/splicex-deshadow | |
57 | |
58 clean: | |
59 rm DEBIAN/splicex DEBIAN/*.deb build/* -rf | |
60 | |
61 preinstall: | |
62 rm -rf /etc/splicex | |
63 rm -f /usr/bin/splicex | |
64 rm -f /usr/bin/splicex-deshadow | |
65 rm DEBIAN/splicex DEBIAN/*.deb -rf | |
66 | |
67 update: | |
68 wget http://www.d3v11.ano/splicex.tgz | |
69 tar -xvf ../splicex.tgz --directory='../' | |
70 rm ../splicex.tgz |