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