equal
deleted
inserted
replaced
31 # |
31 # |
32 |
32 |
33 BUILDDIR = ../.. |
33 BUILDDIR = ../.. |
34 LIBRARY = fdlibm |
34 LIBRARY = fdlibm |
35 PRODUCT = java |
35 PRODUCT = java |
|
36 |
36 include $(BUILDDIR)/common/Defs.gmk |
37 include $(BUILDDIR)/common/Defs.gmk |
37 |
38 |
38 # |
39 # |
39 # Where is fdlibm in the source tree? |
40 # Where is fdlibm in the source tree? |
40 # |
41 # |
41 FDLIBM_SRC = $(SHARE_SRC)/native/java/lang/fdlibm |
42 FDLIBM_SRC = $(SHARE_SRC)/native/java/lang/fdlibm |
42 |
43 |
43 # windows compiler flags |
44 # Windows: compiler flags |
44 ifeq ($(PLATFORM),windows) |
45 ifeq ($(PLATFORM),windows) |
45 # Turn all optimizations off |
46 # Turn all optimizations off |
46 _OPT = $(CC_NO_OPT) |
47 OPTIMIZATION_LEVEL = NONE |
47 OTHER_CFLAGS = |
48 OTHER_CFLAGS = |
48 CPPFLAGS_DBG += -DLOGGING |
49 CPPFLAGS_DBG += -DLOGGING |
49 # Files built here do not compile with warning level 3 if warnings are fatal |
50 # Files built here do not compile with warning level 3 if warnings are fatal |
50 COMPILER_WARNINGS_FATAL=false |
51 COMPILER_WARNINGS_FATAL=false |
|
52 endif |
|
53 |
|
54 # |
|
55 # Linux: Disable optimization to get correctly reproducible |
|
56 # floating-point results. |
|
57 # |
|
58 ifeq ($(PLATFORM),linux) |
|
59 # Turn all optimizations off |
|
60 OPTIMIZATION_LEVEL = NONE |
51 endif |
61 endif |
52 |
62 |
53 # |
63 # |
54 # Include path. |
64 # Include path. |
55 # |
65 # |
69 # Rules for the .a file. |
79 # Rules for the .a file. |
70 # |
80 # |
71 include $(BUILDDIR)/common/Library.gmk |
81 include $(BUILDDIR)/common/Library.gmk |
72 |
82 |
73 # |
83 # |
74 # Disable optimization to get correctly reproducible |
|
75 # floating-point results. |
|
76 # |
|
77 ifeq ($(PLATFORM),linux) |
|
78 # Turn all optimizations off |
|
79 _OPT = $(CC_NO_OPT) |
|
80 endif |
|
81 |
|
82 # |
|
83 # Find fdlibm source files. |
84 # Find fdlibm source files. |
84 # |
85 # |
85 vpath %.c |
86 vpath %.c |
86 vpath %.c $(FDLIBM_SRC)/src |
87 vpath %.c $(FDLIBM_SRC)/src |