Debian Codegraph @

nsprpub/pr/src/md/windows/Makefile.in

raw
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/.
5
6 #! gmake
7
8 MOD_DEPTH = ../../../..
9 topsrcdir = @top_srcdir@
10 srcdir = @srcdir@
11 VPATH = @srcdir@
12
13 include $(MOD_DEPTH)/config/autoconf.mk
14
15 include $(topsrcdir)/config/config.mk
16
17 ifeq (,$(filter-out WIN95 WINCE WINMO, $(OS_TARGET)))
18 CSRCS = \
19 ntmisc.c \
20 ntsec.c \
21 ntsem.c \
22 ntinrval.c \
23 ntgc.c \
24 w95thred.c \
25 w95io.c \
26 w95cv.c \
27 w32rng.c \
28 w95sock.c \
29 win32_errors.c \
30 w32ipcsem.c \
31 w32poll.c \
32 w32shm.c \
33 w95dllmain.c \
34 $(NULL)
35 else
36 CSRCS = \
37 ntdllmn.c \
38 ntmisc.c \
39 ntsec.c \
40 ntsem.c \
41 ntinrval.c \
42 ntgc.c \
43 ntthread.c \
44 ntio.c \
45 win32_errors.c \
46 w32ipcsem.c \
47 w32poll.c \
48 w32rng.c \
49 w32shm.c \
50 $(NULL)
51 endif
52
53 TARGETS = $(OBJS)
54
55 INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include -I$(topsrcdir)/pr/include/private
56
57 DEFINES += -D_NSPR_BUILD_
58
59 include $(topsrcdir)/config/rules.mk
60
61 export:: $(TARGETS)
62
63 # Bug 122433 workaround: disable global optimization (-Og-) on ntio.c.
64 ifdef MOZ_OPTIMIZE
65 ifeq ($(OS_TARGET), WINNT)
66 ifndef NS_USE_GCC
67 $(OBJDIR)/ntio.$(OBJ_SUFFIX): ntio.c
68 @$(MAKE_OBJDIR)
69 $(CC) -Fo$@ -c $(CFLAGS) -Og- $<
70 endif
71 endif
72 endif