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 |
|
50 endif |
|
51 |
|
52 # |
|
53 # Linux: Disable optimization to get correctly reproducible |
|
54 # floating-point results. |
|
55 # |
|
56 ifeq ($(PLATFORM),linux) |
|
57 # Turn all optimizations off |
|
58 OPTIMIZATION_LEVEL = NONE |
49 endif |
59 endif |
50 |
60 |
51 # |
61 # |
52 # Include path. |
62 # Include path. |
53 # |
63 # |
67 # Rules for the .a file. |
77 # Rules for the .a file. |
68 # |
78 # |
69 include $(BUILDDIR)/common/Library.gmk |
79 include $(BUILDDIR)/common/Library.gmk |
70 |
80 |
71 # |
81 # |
72 # Disable optimization to get correctly reproducible |
|
73 # floating-point results. |
|
74 # |
|
75 ifeq ($(PLATFORM),linux) |
|
76 # Turn all optimizations off |
|
77 _OPT = $(CC_NO_OPT) |
|
78 endif |
|
79 |
|
80 # |
|
81 # Find fdlibm source files. |
82 # Find fdlibm source files. |
82 # |
83 # |
83 vpath %.c |
84 vpath %.c |
84 vpath %.c $(FDLIBM_SRC)/src |
85 vpath %.c $(FDLIBM_SRC)/src |