~ubuntu-branches/ubuntu/gutsy/vnc4/gutsy

« back to all changes in this revision

Viewing changes to unix/xc/programs/Xserver/os/Imakefile

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2006-05-15 20:35:17 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515203517-l4lre1ku942mn26k
Tags: 4.1.1+X4.3.0-10
* Correction of critical security issue. Thanks to Martin Kogler
  <e9925248@student.tuwien.ac.at> that informed me about the issue,
  and provided the patch.
  This flaw was originally found by Steve Wiseman of intelliadmin.com.
* Applied patch from Javier Kohen <jkohen@users.sourceforge.net> that
  inform the user that only 8 first characters of the password will
  actually be used when typing more than 8 characters, closes:
  #355619.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:53:40 cpqbld Exp $
 
2
 
 
3
 
 
4
 
 
5
 
 
6
XCOMM $XFree86: xc/programs/Xserver/os/Imakefile,v 3.38 2002/11/14 21:01:21 tsi Exp $
 
7
 
 
8
#include <Server.tmpl>
 
9
 
 
10
/*
 
11
 * If you have any extra files to be put into the library, define them here.
 
12
 */
 
13
 
 
14
#ifdef HPArchitecture
 
15
#define OtherSources hpsocket.c 
 
16
#define OtherObjects hpsocket.o
 
17
#endif
 
18
 
 
19
/*
 
20
 * do not modify the following two definitions
 
21
 */
 
22
 
 
23
#ifndef OtherSources
 
24
#define OtherSources
 
25
#endif
 
26
 
 
27
#ifndef OtherObjects
 
28
#define OtherObjects
 
29
#endif
 
30
 
 
31
#if HasXdmAuth
 
32
XDMAUTHDEFS = -DHASXDMAUTH
 
33
XDMAUTHOBJS = xdmauth.o
 
34
XDMAUTHSRCS = xdmauth.c
 
35
#else
 
36
XDMAUTHDEFS = 
 
37
XDMAUTHOBJS =
 
38
XDMAUTHSCRS =
 
39
#endif
 
40
 
 
41
#if HasSecureRPC
 
42
RPCDEFS = -DSECURE_RPC
 
43
RPCOBJS = rpcauth.o
 
44
RPCSRCS = rpcauth.c
 
45
#else
 
46
RPCDEFS =
 
47
RPCOBJS =
 
48
RPCSRCS =
 
49
#endif
 
50
 
 
51
#if HasKrb5
 
52
KRB5OBJS = k5auth.o k5encode.o
 
53
KRB5SRCS = k5auth.c k5encode.c
 
54
#endif
 
55
 
 
56
#if HasBSD44Sockets
 
57
   SOCK_DEFINES = -DBSD44SOCKETS
 
58
#endif
 
59
 
 
60
#if HasGetIfAddrs
 
61
   IFADDRS_DEFINES = -DHAS_GETIFADDRS
 
62
#endif
 
63
 
 
64
#if BuildLBX
 
65
   LBX_SRCS = lbxio.c
 
66
   LBX_OBJS = lbxio.o
 
67
#else
 
68
   LBX_SRCS =
 
69
   LBX_OBJS =
 
70
#endif
 
71
 
 
72
#if !defined(DDXOsColor)
 
73
COLOR_SRCS=oscolor.c
 
74
COLOR_OBJS=oscolor.o
 
75
#endif
 
76
 
 
77
#if UseInternalMalloc
 
78
MALLOC_SRCS=xalloc.c
 
79
MALLOC_OBJS=xalloc.o
 
80
#endif
 
81
 
 
82
#if HasGetpeereid
 
83
GETPEEREID_DEFINES = -DHAS_GETPEEREID
 
84
#endif
 
85
 
 
86
BOOTSTRAPCFLAGS = 
 
87
           SRCS = WaitFor.c access.c connection.c io.c $(COLOR_SRCS) \
 
88
                  osinit.c utils.c auth.c mitauth.c secauth.c $(XDMAUTHSRCS) \
 
89
                  $(RPCSRCS) $(KRB5SRCS) xdmcp.c decompress.c OtherSources \
 
90
                  transport.c $(MALLOC_SRCS) $(LBX_SRCS)
 
91
           OBJS = WaitFor.o access.o connection.o io.o $(COLOR_OBJS) \
 
92
                  osinit.o utils.o auth.o mitauth.o secauth.o $(XDMAUTHOBJS) \
 
93
                  $(RPCOBJS) $(KRB5OBJS) xdmcp.o decompress.o OtherObjects \
 
94
                  transport.o $(MALLOC_OBJS) $(LBX_OBJS)
 
95
 
 
96
#if SpecialMalloc
 
97
     MEM_DEFINES = -DSPECIAL_MALLOC
 
98
#endif /* SpecialMalloc */
 
99
#if UseInternalMalloc
 
100
     MEM_DEFINES = -DINTERNAL_MALLOC
 
101
#endif
 
102
#if UseMemLeak
 
103
     MEM_DEFINES = -DMEMBUG
 
104
#endif
 
105
#if UseRgbTxt
 
106
    RGB_DEFINES = -DUSE_RGB_TXT
 
107
#endif
 
108
    DBM_DEFINES = NdbmDefines
 
109
    ADM_DEFINES = -DADMPATH=\"$(ADMDIR)/X\%smsgs\"
 
110
  XDMCP_DEFINES = ServerXdmcpDefines
 
111
   KRB5_DEFINES = Krb5Defines
 
112
 XALLOC_DEFINES = XallocDefines
 
113
  ERROR_DEFINES = ServerErrorDefines
 
114
#if HasPam && HasPamMisc
 
115
    PAM_DEFINES = -DUSE_PAM
 
116
#endif
 
117
        DEFINES = -DXSERV_t -DTRANS_SERVER $(CONNECTION_FLAGS) $(MEM_DEFINES) \
 
118
                  $(XDMAUTHDEFS) $(RPCDEFS) $(SIGNAL_DEFINES) $(OS_DEFINES) \
 
119
                  $(KRB5_DEFINES) $(RGB_DEFINES) $(GETPEEREID_DEFINES)
 
120
       INCLUDES = -I. -I../include -I$(XINCLUDESRC) -I$(EXTINCSRC) \
 
121
                  -I$(SERVERSRC)/Xext -I$(FONTINCSRC) -I$(SERVERSRC)/render \
 
122
                  -I$(TOP)/lib/Xau -I../lbx Krb5Includes
 
123
 DEPEND_DEFINES = $(DBM_DEFINES) $(XDMCP_DEFINES) $(EXT_DEFINES) \
 
124
                  $(TRANS_INCLUDES) $(CONNECTION_FLAGS) DependDefines
 
125
       LINTLIBS = ../dix/llib-ldix.ln
 
126
 
 
127
#ifdef NEED_ALLOCA_FROM_LIBPW
 
128
          PWLIB = /lib/libPW.a
 
129
#endif /* NEED_ALLOCA_FROM_LIBPW */
 
130
 
 
131
NormalLibraryObjectRule()
 
132
NormalLibraryTarget(os,$(OBJS))
 
133
LintLibraryTarget(os,$(SRCS))
 
134
NormalLintTarget($(SRCS))
 
135
 
 
136
#ifdef NEED_ALLOCA_FROM_LIBPW
 
137
XCOMM
 
138
XCOMM And this one is to get the version of alloca that lives in /lib/libPW.a
 
139
XCOMM without getting all of the rest of the stuff in there.
 
140
XCOMM
 
141
alloca.o:  $(PWLIB)
 
142
        rm -f alloca.o
 
143
        ar x $(PWLIB) alloca.o
 
144
#endif /* NEED_ALLOCA_FROM_LIBPW */
 
145
 
 
146
SpecialCObjectRule(access,$(ICONFIGFILES),$(XDMCP_DEFINES) $(SOCK_DEFINES) $(IFADDRS_DEFINES))
 
147
SpecialCObjectRule(auth,$(ICONFIGFILES),$(XDMCP_DEFINES))
 
148
SpecialCObjectRule(xdmauth,$(ICONFIGFILES),$(XDMCP_DEFINES))
 
149
SpecialCObjectRule(xdmcp,$(ICONFIGFILES),$(SOCK_DEFINES) $(XDMCP_DEFINES))
 
150
SpecialCObjectRule(connection,$(ICONFIGFILES),$(SOCK_DEFINES) $(XDMCP_DEFINES))
 
151
SpecialCObjectRule(transport,$(ICONFIGFILES),$(TRANS_INCLUDES) $(CONN_DEFINES) $(SOCK_DEFINES))
 
152
LinkSourceFile(transport.c,$(TRANSCOMMSRC))
 
153
SpecialCObjectRule(osinit,$(ICONFIGFILES),$(ADM_DEFINES))
 
154
SpecialCObjectRule(WaitFor,$(ICONFIGFILES),$(EXT_DEFINES))
 
155
SpecialCObjectRule(io,$(ICONFIGFILES),$(EXT_DEFINES))
 
156
#if BuildLBX
 
157
SpecialCObjectRule(lbxio,$(ICONFIGFILES),$(EXT_DEFINES))
 
158
#endif
 
159
SpecialCObjectRule(utils,$(ICONFIGFILES),$(XDMCP_DEFINES) $(EXT_DEFINES) $(ERROR_DEFINES) $(PAM_DEFINES))
 
160
SpecialCObjectRule(xalloc,$(ICONFIGFILES),$(XALLOC_DEFINES))
 
161
#if defined(SparcArchitecture) && HasGcc && !HasGcc2
 
162
oscolor.o: oscolor.c $(ICONFIGFILES)
 
163
        $(RM) $@
 
164
        cc -c $(DBM_DEFINES) $(CDEBUGFLAGS) $(ALLDEFINES) $*.c
 
165
#else
 
166
SpecialCObjectRule(oscolor,$(ICONFIGFILES),$(DBM_DEFINES))
 
167
#endif
 
168
 
 
169
#if HasKrb5
 
170
LinkSourceFile(k5encode.c,$(XAUTHSRC))
 
171
#endif
 
172
 
 
173
#if DoLoadableServer
 
174
AllTarget(libcwrapper.o)
 
175
ObjectFromSpecialSource(libcwrapper,$(XF86OSSRC)/shared/libc_wrapper,-DSELF_CONTAINED_WRAPPER)
 
176
#if !HasSnprintf
 
177
LinkSourceFile(snprintf.c,$(LIBSRC)/misc)
 
178
#endif
 
179
#endif
 
180
 
 
181
DependTarget()