-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
83 lines (58 loc) · 1.98 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
include Makefile.configuration
# Default target
compile:
generate:
generate_:
rm -rf src/gen .gen
mkdir -p .gen src/gen
# cd /usr/include; find openssl/ -name "*.h" | sed "s-^-#include <-" | sed "s-\$$->-" >${CURDIR}/.gen/gen.cpp
cd .gen; /opt/GNAT/6.5.0w-20110122-45/bin/g++ -c ../gen.cpp -fdump-ada-spec
./rename.py
mv src/gen/openssl-low_level-ossl_typ_h.ads src/gen/openssl-low_level-ossl_typ_h.txt
${MAKE} -C tests compile
################################################################
pack:
rm -rf ${PROJECT}-${VERSION}*
svn export . ${PROJECT}-${VERSION}
tar -czf ${PROJECT}-${VERSION}-${DATE}.tgz ${PROJECT}-${VERSION}}
${RM} ${PROJECT}-${VERSION}
################################################################
clean:
${MAKE} -C tools $@
rm -rf .obj
################################################################
all:
${MAKE} -C compile
${MAKE} -C tests
${MAKE} -C install
################################################################
compile:
gprbuild -p -P openssl.gpr
gprbuild -p -P helpers/helpers.gpr
${MAKE} -C tests $@
################################################################
install:
${MKDIR} -p ${INCLUDEDIR}
cp src/*.ad? ${INCLUDEDIR}
${CHMOD} a-w ${INCLUDEDIR}/*.ad?
${MKDIR} -p ${LIBDIR}
${MKDIR} -p ${LIBDIR}/gnat
${CP} protobuff_.gpr ${LIBDIR}/gnat/protobuff.gpr
${MAKE} -C tools $@
################################################################
configure:
test:
${MAKE} -C tests $@
${MAKE} -C regresion $@
release:
svn stat . >.obj/svn-stat.txt
svn --xml info . >.obj/svn-info.txt
svn ls ${SVNRoot}/tags >.obj/releases.txt
./helpers/checkrelease --dirtylist=.obj/svn-stat.txt --svnversions=.obj/releases.txt
./helpers/checkrelease --releasenote=release_notes.txt
Makefile.configuration:
echo "PREFIX=$(dir $(shell which gnatls))..">$@
echo OBJECT_DIR=.obj >>$@
echo PROJECT=ProtoBuff >>$@
echo export LIBDIR=${PREFIX}/lib/ProtoBuff >>$@
echo export INCLUDEDIR=${PREFIX}/include/ProtoBuff >>$@