1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nsprpub/pr/src/misc/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,80 @@ 1.4 +# 1.5 +# This Source Code Form is subject to the terms of the Mozilla Public 1.6 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.8 + 1.9 +#! gmake 1.10 + 1.11 +MOD_DEPTH = ../../.. 1.12 +topsrcdir = @top_srcdir@ 1.13 +srcdir = @srcdir@ 1.14 +VPATH = @srcdir@ 1.15 + 1.16 +include $(MOD_DEPTH)/config/autoconf.mk 1.17 + 1.18 +include $(topsrcdir)/config/config.mk 1.19 + 1.20 +CSRCS = \ 1.21 + pralarm.c \ 1.22 + pratom.c \ 1.23 + prcountr.c \ 1.24 + prdtoa.c \ 1.25 + prenv.c \ 1.26 + prerr.c \ 1.27 + prerror.c \ 1.28 + prerrortable.c \ 1.29 + prinit.c \ 1.30 + prinrval.c \ 1.31 + pripc.c \ 1.32 + prlog2.c \ 1.33 + prlong.c \ 1.34 + prnetdb.c \ 1.35 + praton.c \ 1.36 + prolock.c \ 1.37 + prrng.c \ 1.38 + prsystem.c \ 1.39 + prtime.c \ 1.40 + prthinfo.c \ 1.41 + prtpool.c \ 1.42 + prtrace.c \ 1.43 + $(NULL) 1.44 + 1.45 +ifndef USE_PTHREADS 1.46 +CSRCS += \ 1.47 + pripcsem.c \ 1.48 + $(NULL) 1.49 +endif 1.50 + 1.51 +TARGETS = $(OBJS) 1.52 + 1.53 +INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include -I$(topsrcdir)/pr/include/private 1.54 + 1.55 +DEFINES += -D_NSPR_BUILD_ 1.56 + 1.57 +RELEASE_BINS = $(srcdir)/compile-et.pl $(srcdir)/prerr.properties 1.58 + 1.59 +include $(topsrcdir)/config/rules.mk 1.60 + 1.61 +# Prevent floating point errors caused by MSVC 6.0 Processor Pack 1.62 +# optimizations (bug 207421). This disables optimizations that 1.63 +# could change the precision of floating-point calculations for 1.64 +# this single compilation unit. 1.65 +ifeq ($(NS_USE_GCC)_$(OS_ARCH),_WINNT) 1.66 +$(OBJDIR)/prdtoa.$(OBJ_SUFFIX): prdtoa.c 1.67 + @$(MAKE_OBJDIR) 1.68 +ifeq (,$(filter-out 1100 1200 1300 1310,$(MSC_VER))) 1.69 + $(CC) -Fo$@ -c $(CFLAGS) -Op $(call pr_abspath,$<) 1.70 +else 1.71 + $(CC) -Fo$@ -c $(CFLAGS) -fp:precise $(call pr_abspath,$<) 1.72 +endif 1.73 +endif 1.74 + 1.75 +# 1.76 +# Generate prerr.h, prerr.c, and prerr.properties from prerr.et. 1.77 +# 1.78 +build_prerr: 1.79 + cd $(srcdir); $(PERL) compile-et.pl prerr.et 1.80 + 1.81 +export:: $(TARGETS) 1.82 + 1.83 +