1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28PRJ=..$/..
29
30PRJNAME=setup_native
31TARGET=getuid
32
33NO_DEFAULT_STL=TRUE
34LIBSALCPPRT=$(0)
35LIBTARGET=NO
36
37# --- Settings -----------------------------------------------------
38
39.INCLUDE :  settings.mk
40
41# --- Files --------------------------------------------------------
42
43# no 'lib' prefix
44DLLPRE=
45
46# no _version.o
47VERSIONOBJ=
48
49.IF "$(OS)" == "LINUX" || "$(OS)" == "SOLARIS"
50
51.IF "$(OS)" == "LINUX"
52CFLAGS+=-D_GNU_SOURCE
53.ENDIF
54
55.IF "$(OS)" == "SOLARIS"
56.IF "$(CPU)" == "I"
57.IF "$(COM)" != "GCC"
58CFLAGS+=-D_KERNEL
59.ENDIF
60.ENDIF
61.ENDIF
62
63# this object must not be a Ultra SPARC binary, this does not
64# work with /usr/bin/sort and such. Needs to be 32 bit even in
65# 64 bit builds
66.IF "$(OS)" == "SOLARIS"
67.IF "$(COM)" != "GCC"
68.IF "$(CPU)" == "S"
69ENVCFLAGS=-xarch=v8
70.ENDIF
71.IF "$(CPU)"=="U"
72CFLAGSAPPEND+=-m32
73LINKFLAGSSHL+=-m32
74.ENDIF
75.ENDIF
76.ENDIF
77
78SLOFILES = $(SLO)$/getuid.obj
79
80SHL1OBJS=$(SLOFILES)
81SHL1TARGET=$(TARGET)
82SHL1STDLIBS=-ldl
83SHL1CODETYPE=C
84
85.ENDIF
86
87# --- Targets ------------------------------------------------------
88
89.INCLUDE :  target.mk
90
91