Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
1 #
2 # This Source Code Form is subject to the terms of the Mozilla Public
3 # License, v. 2.0. If a copy of the MPL was not distributed with this
4 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 #! gmake
8 MOD_DEPTH = ../../..
9 topsrcdir = @top_srcdir@
10 srcdir = @srcdir@
11 VPATH = @srcdir@
13 include $(MOD_DEPTH)/config/autoconf.mk
15 include $(topsrcdir)/config/config.mk
17 CSRCS = \
18 pralarm.c \
19 pratom.c \
20 prcountr.c \
21 prdtoa.c \
22 prenv.c \
23 prerr.c \
24 prerror.c \
25 prerrortable.c \
26 prinit.c \
27 prinrval.c \
28 pripc.c \
29 prlog2.c \
30 prlong.c \
31 prnetdb.c \
32 praton.c \
33 prolock.c \
34 prrng.c \
35 prsystem.c \
36 prtime.c \
37 prthinfo.c \
38 prtpool.c \
39 prtrace.c \
40 $(NULL)
42 ifndef USE_PTHREADS
43 CSRCS += \
44 pripcsem.c \
45 $(NULL)
46 endif
48 TARGETS = $(OBJS)
50 INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include -I$(topsrcdir)/pr/include/private
52 DEFINES += -D_NSPR_BUILD_
54 RELEASE_BINS = $(srcdir)/compile-et.pl $(srcdir)/prerr.properties
56 include $(topsrcdir)/config/rules.mk
58 # Prevent floating point errors caused by MSVC 6.0 Processor Pack
59 # optimizations (bug 207421). This disables optimizations that
60 # could change the precision of floating-point calculations for
61 # this single compilation unit.
62 ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT)
63 $(OBJDIR)/prdtoa.$(OBJ_SUFFIX): prdtoa.c
64 @$(MAKE_OBJDIR)
65 ifeq (,$(filter-out 1100 1200 1300 1310,$(MSC_VER)))
66 $(CC) -Fo$@ -c $(CFLAGS) -Op $(call pr_abspath,$<)
67 else
68 $(CC) -Fo$@ -c $(CFLAGS) -fp:precise $(call pr_abspath,$<)
69 endif
70 endif
72 #
73 # Generate prerr.h, prerr.c, and prerr.properties from prerr.et.
74 #
75 build_prerr:
76 cd $(srcdir); $(PERL) compile-et.pl prerr.et
78 export:: $(TARGETS)