~ubuntu-branches/ubuntu/precise/kompozer/precise

« back to all changes in this revision

Viewing changes to mozilla/nsprpub/pr/src/md/windows/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Anthony Yarusso
  • Date: 2007-08-27 01:11:03 UTC
  • Revision ID: james.westby@ubuntu.com-20070827011103-2jgf4s6532gqu2ka
Tags: upstream-0.7.10
ImportĀ upstreamĀ versionĀ 0.7.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
2
# The contents of this file are subject to the Mozilla Public
 
3
# License Version 1.1 (the "License"); you may not use this file
 
4
# except in compliance with the License. You may obtain a copy of
 
5
# the License at http://www.mozilla.org/MPL/
 
6
 
7
# Software distributed under the License is distributed on an "AS
 
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
 
9
# implied. See the License for the specific language governing
 
10
# rights and limitations under the License.
 
11
 
12
# The Original Code is the Netscape Portable Runtime (NSPR).
 
13
 
14
# The Initial Developer of the Original Code is Netscape
 
15
# Communications Corporation.  Portions created by Netscape are 
 
16
# Copyright (C) 1998-2000 Netscape Communications Corporation.  All
 
17
# Rights Reserved.
 
18
 
19
# Contributor(s):
 
20
 
21
# Alternatively, the contents of this file may be used under the
 
22
# terms of the GNU General Public License Version 2 or later (the
 
23
# "GPL"), in which case the provisions of the GPL are applicable 
 
24
# instead of those above.  If you wish to allow use of your 
 
25
# version of this file only under the terms of the GPL and not to
 
26
# allow others to use your version of this file under the MPL,
 
27
# indicate your decision by deleting the provisions above and
 
28
# replace them with the notice and other provisions required by
 
29
# the GPL.  If you do not delete the provisions above, a recipient
 
30
# may use your version of this file under either the MPL or the
 
31
# GPL.
 
32
 
33
 
 
34
#! gmake
 
35
 
 
36
MOD_DEPTH       = ../../../..
 
37
topsrcdir       = @top_srcdir@
 
38
srcdir          = @srcdir@
 
39
VPATH           = @srcdir@
 
40
 
 
41
include $(MOD_DEPTH)/config/autoconf.mk
 
42
 
 
43
include $(topsrcdir)/config/config.mk
 
44
 
 
45
ifeq ($(OS_TARGET), WIN16)
 
46
CSRCS = \
 
47
        w16null.c \
 
48
        w16thred.c \
 
49
        w16proc.c \
 
50
    w16fmem.c \
 
51
    w16sock.c \
 
52
    w16mem.c \
 
53
    w16io.c  \
 
54
    w16gc.c  \
 
55
    w16error.c  \
 
56
    w16stdio.c  \
 
57
    w16callb.c \
 
58
    ntinrval.c \
 
59
    $(NULL)
 
60
else
 
61
ifeq ($(OS_TARGET), WIN95)
 
62
CSRCS =          \
 
63
    ntmisc.c \
 
64
    ntsec.c   \
 
65
    ntsem.c   \
 
66
    ntinrval.c \
 
67
    ntgc.c \
 
68
        w95thred.c \
 
69
        w95io.c \
 
70
        w95cv.c \
 
71
        w32rng.c \
 
72
        w95sock.c \
 
73
        win32_errors.c \
 
74
    w32ipcsem.c \
 
75
    w32poll.c \
 
76
    w32shm.c \
 
77
    w95dllmain.c \
 
78
    $(NULL)
 
79
else
 
80
CSRCS =          \
 
81
    ntdllmn.c \
 
82
    ntmisc.c \
 
83
    ntsec.c   \
 
84
    ntsem.c   \
 
85
    ntinrval.c \
 
86
    ntgc.c \
 
87
    ntthread.c \
 
88
    ntio.c    \
 
89
        win32_errors.c \
 
90
    w32ipcsem.c \
 
91
    w32poll.c \
 
92
    w32rng.c \
 
93
    w32shm.c \
 
94
    $(NULL)
 
95
endif
 
96
endif
 
97
 
 
98
TARGETS = $(OBJS)
 
99
 
 
100
INCLUDES = -I$(dist_includedir) -I$(topsrcdir)/pr/include -I$(topsrcdir)/pr/include/private
 
101
 
 
102
DEFINES += -D_NSPR_BUILD_
 
103
 
 
104
include $(topsrcdir)/config/rules.mk
 
105
 
 
106
export:: $(TARGETS)
 
107
 
 
108
# Bug 122433 workaround: disable global optimization (-Og-) on ntio.c.
 
109
ifdef BUILD_OPT
 
110
ifeq ($(OS_TARGET), WINNT)
 
111
ifndef NS_USE_GCC
 
112
$(OBJDIR)/ntio.$(OBJ_SUFFIX): ntio.c
 
113
        @$(MAKE_OBJDIR)
 
114
        $(CC) -Fo$@ -c $(CFLAGS) -Og- $<
 
115
endif
 
116
endif
 
117
endif