~vojtech-horky/helenos/coastline-qemu

« back to all changes in this revision

Viewing changes to jainja/Makefile

  • Committer: Vojtech Horky
  • Date: 2017-08-07 14:28:40 UTC
  • mfrom: (104.1.27 coastline)
  • Revision ID: vojtechhorky@users.sourceforge.net-20170807142840-nj7i0b2i0py5o5qh
MergeĀ upstreamĀ changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Copyright (c) 2014 Martin Decky
3
 
# All rights reserved.
4
 
#
5
 
# Redistribution and use in source and binary forms, with or without
6
 
# modification, are permitted provided that the following conditions
7
 
# are met:
8
 
#
9
 
# - Redistributions of source code must retain the above copyright
10
 
#   notice, this list of conditions and the following disclaimer.
11
 
# - Redistributions in binary form must reproduce the above copyright
12
 
#   notice, this list of conditions and the following disclaimer in the
13
 
#   documentation and/or other materials provided with the distribution.
14
 
# - The name of the author may not be used to endorse or promote products
15
 
#   derived from this software without specific prior written permission.
16
 
#
17
 
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18
 
# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19
 
# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20
 
# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21
 
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22
 
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23
 
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24
 
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 
#
28
 
 
29
 
BINARY = jainja
30
 
 
31
 
JAINJA_SRC = src
32
 
FDLIBM_SRC = fdlibm53
33
 
 
34
 
LDFLAGS = \
35
 
        -L$(HSCT_CACHE_LIB) \
36
 
        $(HSCT_LDFLAGS)
37
 
 
38
 
CFLAGS = \
39
 
        $(HSCT_CFLAGS) \
40
 
        -I$(HSCT_CACHE_INCLUDE)/libc/ \
41
 
        -Wno-error \
42
 
        -I$(JAINJA_SRC)/include \
43
 
        -I$(JAINJA_SRC)/native \
44
 
        -I$(JAINJA_SRC)/tinygc \
45
 
        -D_IEEEFP_H \
46
 
        -DJCGO_UNIX \
47
 
        -DJCGO_UNIFSYS \
48
 
        -DJCGO_NOSYSNAME \
49
 
        -DEXTRASTATIC=static \
50
 
        -DJNUBIGEXPORT=static \
51
 
        -DJNIIMPORT=static \
52
 
        -DJNIEXPORT=static \
53
 
        -DJCGO_STDCLINIT \
54
 
        -DFPINIT= \
55
 
        -DGC_GETENV_SKIP \
56
 
        -DGC_CLIBDECL= \
57
 
        -DALL_INTERIOR_POINTERS \
58
 
        -DGC_GCJ_SUPPORT \
59
 
        -DCFASTCALL= \
60
 
        -DJCGO_UTFWCTOMB \
61
 
        -DJCGO_CLOCKGETTM \
62
 
        -DJCGO_NOUTIMBUF \
63
 
        -D_SYS_IOCTL_H \
64
 
        -D_SYS_SELECT_H \
65
 
        -D_IO_H \
66
 
        -DJCGO_BIGFLKOFF_T \
67
 
        -D_MATH_NO_HYPOT \
68
 
        -DGC_LP_ALLOCATOR \
69
 
        -DGC_INITIAL_HEAP_SIZE=64*1024*1024 \
70
 
        -DGC_MAXIMUM_HEAP_SIZE=128*1024*1024 \
71
 
        -DGC_FASTCALL= \
72
 
        -DGC_CLIBDECL= \
73
 
        -DGC_GCJ_SUPPORT
74
 
 
75
 
SOURCES = \
76
 
        $(FDLIBM_SRC)/k_standard.c \
77
 
        $(FDLIBM_SRC)/k_rem_pio2.c \
78
 
        $(FDLIBM_SRC)/k_cos.c \
79
 
        $(FDLIBM_SRC)/k_sin.c \
80
 
        $(FDLIBM_SRC)/k_tan.c \
81
 
        $(FDLIBM_SRC)/e_acos.c \
82
 
        $(FDLIBM_SRC)/e_acosh.c \
83
 
        $(FDLIBM_SRC)/e_asin.c \
84
 
        $(FDLIBM_SRC)/e_atan2.c \
85
 
        $(FDLIBM_SRC)/e_atanh.c \
86
 
        $(FDLIBM_SRC)/e_cosh.c \
87
 
        $(FDLIBM_SRC)/e_exp.c \
88
 
        $(FDLIBM_SRC)/e_fmod.c \
89
 
        $(FDLIBM_SRC)/e_gamma.c \
90
 
        $(FDLIBM_SRC)/e_gamma_r.c \
91
 
        $(FDLIBM_SRC)/e_hypot.c \
92
 
        $(FDLIBM_SRC)/e_j0.c \
93
 
        $(FDLIBM_SRC)/e_j1.c \
94
 
        $(FDLIBM_SRC)/e_jn.c \
95
 
        $(FDLIBM_SRC)/e_lgamma.c \
96
 
        $(FDLIBM_SRC)/e_lgamma_r.c \
97
 
        $(FDLIBM_SRC)/e_log.c \
98
 
        $(FDLIBM_SRC)/e_log10.c \
99
 
        $(FDLIBM_SRC)/e_pow.c \
100
 
        $(FDLIBM_SRC)/e_rem_pio2.c \
101
 
        $(FDLIBM_SRC)/e_remainder.c \
102
 
        $(FDLIBM_SRC)/e_scalb.c \
103
 
        $(FDLIBM_SRC)/e_sinh.c \
104
 
        $(FDLIBM_SRC)/e_sqrt.c \
105
 
        $(FDLIBM_SRC)/w_acos.c \
106
 
        $(FDLIBM_SRC)/w_acosh.c \
107
 
        $(FDLIBM_SRC)/w_asin.c \
108
 
        $(FDLIBM_SRC)/w_atan2.c \
109
 
        $(FDLIBM_SRC)/w_atanh.c \
110
 
        $(FDLIBM_SRC)/w_cosh.c \
111
 
        $(FDLIBM_SRC)/w_exp.c \
112
 
        $(FDLIBM_SRC)/w_fmod.c \
113
 
        $(FDLIBM_SRC)/w_gamma.c \
114
 
        $(FDLIBM_SRC)/w_gamma_r.c \
115
 
        $(FDLIBM_SRC)/w_hypot.c \
116
 
        $(FDLIBM_SRC)/w_j0.c \
117
 
        $(FDLIBM_SRC)/w_j1.c \
118
 
        $(FDLIBM_SRC)/w_jn.c \
119
 
        $(FDLIBM_SRC)/w_lgamma.c \
120
 
        $(FDLIBM_SRC)/w_lgamma_r.c \
121
 
        $(FDLIBM_SRC)/w_log.c \
122
 
        $(FDLIBM_SRC)/w_log10.c \
123
 
        $(FDLIBM_SRC)/w_pow.c \
124
 
        $(FDLIBM_SRC)/w_remainder.c \
125
 
        $(FDLIBM_SRC)/w_scalb.c \
126
 
        $(FDLIBM_SRC)/w_sinh.c \
127
 
        $(FDLIBM_SRC)/w_sqrt.c \
128
 
        $(FDLIBM_SRC)/s_asinh.c \
129
 
        $(FDLIBM_SRC)/s_atan.c \
130
 
        $(FDLIBM_SRC)/s_cbrt.c \
131
 
        $(FDLIBM_SRC)/s_ceil.c \
132
 
        $(FDLIBM_SRC)/s_copysign.c \
133
 
        $(FDLIBM_SRC)/s_tan.c \
134
 
        $(FDLIBM_SRC)/s_tanh.c \
135
 
        $(FDLIBM_SRC)/s_cos.c \
136
 
        $(FDLIBM_SRC)/s_erf.c \
137
 
        $(FDLIBM_SRC)/s_expm1.c \
138
 
        $(FDLIBM_SRC)/s_fabs.c \
139
 
        $(FDLIBM_SRC)/s_finite.c \
140
 
        $(FDLIBM_SRC)/s_floor.c \
141
 
        $(FDLIBM_SRC)/s_frexp.c \
142
 
        $(FDLIBM_SRC)/s_ilogb.c \
143
 
        $(FDLIBM_SRC)/s_isnan.c \
144
 
        $(FDLIBM_SRC)/s_ldexp.c \
145
 
        $(FDLIBM_SRC)/s_lib_version.c \
146
 
        $(FDLIBM_SRC)/s_log1p.c \
147
 
        $(FDLIBM_SRC)/s_logb.c \
148
 
        $(FDLIBM_SRC)/s_matherr.c \
149
 
        $(FDLIBM_SRC)/s_modf.c \
150
 
        $(FDLIBM_SRC)/s_rint.c \
151
 
        $(FDLIBM_SRC)/s_scalbn.c \
152
 
        $(FDLIBM_SRC)/s_signgam.c \
153
 
        $(FDLIBM_SRC)/s_significand.c \
154
 
        $(FDLIBM_SRC)/s_sin.c \
155
 
        $(FDLIBM_SRC)/s_nextafter.c \
156
 
        $(JAINJA_SRC)/tinygc/LP_Allocator.c \
157
 
        $(JAINJA_SRC)/tinygc/tinygc.c \
158
 
        $(JAINJA_SRC)/jainja/Main.c
159
 
 
160
 
OBJECTS := $(addsuffix .o, $(basename $(SOURCES)))
161
 
 
162
 
$(BINARY): $(OBJECTS)
163
 
        $(LD) -o $@ $(OBJECTS) $(LDFLAGS)
164
 
 
165
 
%.o: %.c
166
 
        $(CC) $(CFLAGS) -c -o $@ $<