-
Notifications
You must be signed in to change notification settings - Fork 54
/
Makefile_devl
104 lines (100 loc) · 1.9 KB
/
Makefile_devl
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#
# A few simple steps to build ATS2
# This is primarily for people wanting to use the
# (unreleased) version of ATS2 available at GitHub:
#
# https://github.com/githwxi/ATS-Postiats
#
######
#
# author: Hongwei Xi (gmhwxiATgmailDOTcom)
# author: Brandon Barker (Brandon.BarkerATgmailDOTcom)
#
######
#
# Note:
#
# You may need to execute the command-line:
#
# make -f codegen/Makefile_atslib
#
# if you have never done it explicitly before:
#
######
CPF=cp -f
MVF=mv -f
MAKE=make
######
#
all:: bin_patscc
all:: bin_myatscc
all:: lib_patsopt
all:: atslib_update
#
#all:: bin_atspkgreloc
#
######
#
src_depend: ; touch src/.depend
src_cleanall: ; make -C src cleanall
#
######
#
bin_patscc: \
src_patscc; \
$(MVF) utils/atscc/BUILD/patscc bin/patscc
#
src_patscc:: ; \
make -f codegen/Makefile_atslib
src_patscc:: bin_patsopt ; \
make -C utils/atscc -f Makefile copy build clean
#
######
#
C3NSTRINTKND=gmpknd
#
#C3NSTRINTKND=intknd
#
######
bin_patsopt: \
src_patsopt; \
$(CPF) src/patsopt bin/patsopt
src_patsopt: \
src_depend \
src_cleanall ; \
make -C src -f Makefile \
C3NSTRINTKND=$(C3NSTRINTKND) all
#
######
#
bin_myatscc: \
src_myatscc; \
$(MVF) utils/myatscc/BUILD/myatscc bin/myatscc
src_myatscc: ; \
make -C utils/myatscc -f Makefile copy build clean
#
######
#
lib_patsopt:: ; \
make -C src -f Makefile \
C3NSTRINTKND=$(C3NSTRINTKND) libatsopt
lib_patsopt:: ; $(CPF) src/libatsopt.a ccomp/atslib/lib/.
#
######
#
atslib_update:: ; make -C ccomp/atslib -f Makefile
atslib_cleanall:: ; make -C ccomp/atslib -f Makefile clean
#
######
#
bin_atspkgreloc:: \
src_atspkgreloc_curl ; \
$(CPF) utils/atspkgreloc/atspkgreloc_curl bin/atspkgreloc_curl
src_atspkgreloc_curl : ; $(MAKE) -C utils/atspkgreloc atspkgreloc_curl
#
bin_atspkgreloc:: \
src_atspkgreloc_wget ; \
$(CPF) utils/atspkgreloc/atspkgreloc_wget bin/atspkgreloc_wget
src_atspkgreloc_wget : ; $(MAKE) -C utils/atspkgreloc atspkgreloc_wget
#
###### end of [Makefile_devl] ######