1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
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 #*************************************************************************
35 .IF
"$(WORK_STAMP)"=="MIX364"
44 PROJECTPCHSOURCE
=cont_pch
49 # --- Settings -----------------------------------------------------
51 .INCLUDE
: settings.mk
53 CFLAGS
+= $(LFS_CFLAGS
)
54 CXXFLAGS
+= $(LFS_CFLAGS
)
56 # --- Files --------------------------------------------------------
58 SLOFILES
= $(SLO
)$/conditn.obj \
59 $(SLO
)$/diagnose.obj \
60 $(SLO
)$/semaphor.obj \
62 $(SLO
)$/interlck.obj \
64 $(SLO
)$/nlsupport.obj \
68 $(SLO
)$/security.obj \
78 $(SLO
)$/file_error_transl.obj\
79 $(SLO
)$/file_path_helper.obj\
81 $(SLO
)$/process_impl.obj\
82 $(SLO
)$/file_stat.obj \
85 #.IF "$(UPDATER)"=="YES"
86 OBJFILES
= $(OBJ
)$/conditn.obj \
87 $(OBJ
)$/diagnose.obj \
88 $(OBJ
)$/semaphor.obj \
90 $(OBJ
)$/interlck.obj \
92 $(OBJ
)$/nlsupport.obj \
96 $(OBJ
)$/security.obj \
104 $(OBJ
)$/tempfile.obj\
105 $(OBJ
)$/file_url.obj\
106 $(OBJ
)$/file_error_transl.obj\
107 $(OBJ
)$/file_path_helper.obj\
109 $(OBJ
)$/process_impl.obj\
110 $(OBJ
)$/file_stat.obj \
115 .IF
"$(OS)"=="MACOSX"
116 SLOFILES
+= $(SLO
)$/osxlocale.obj
119 .IF
"$(OS)"=="SOLARIS" ||
"$(OS)"=="FREEBSD" ||
"$(OS)"=="NETBSD" ||
"$(OS)$(CPU)"=="LINUXS" ||
"$(OS)"=="MACOSX"
120 SLOFILES
+= $(SLO
)$/backtrace.obj
121 OBJFILES
+= $(OBJ
)$/backtrace.obj
124 # --- Targets ------------------------------------------------------
130 .IF
"$(OS)" == "LINUX"
133 .IF
"$(NEW_SHADOW_API)" == "YES"
134 CFLAGS
+=-DNEW_SHADOW_API
137 .IF
"$(PAM_LINK)" == "YES"
140 .IF
"$(CRYPT_LINK)" == "YES"
145 .IF
"$(ENABLE_CRASHDUMP)" != "" ||
"$(PRODUCT)" == ""
146 CFLAGS
+=-DSAL_ENABLE_CRASH_REPORT
151 .IF
"$(OS)$(CPU)"=="SOLARISU" ||
"$(OS)$(CPU)"=="SOLARISS" ||
"$(OS)$(CPU)"=="NETBSDS" ||
"$(OS)$(CPU)"=="LINUXS"
153 $(SLO
)$/interlck.obj
: $(SLO
)$/interlck.o
154 touch
$(SLO
)$/interlck.obj
156 $(OBJ
)$/interlck.obj
: $(OBJ
)$/interlck.o
157 touch
$(OBJ
)$/interlck.obj
159 $(SLO
)$/interlck.o
: $(MISC
)$/interlck_sparc.s
160 $(ASM
) $(AFLAGS
) -o
$@
$<
162 $(OBJ
)$/interlck.o
: $(MISC
)$/interlck_sparc.s
163 $(ASM
) $(AFLAGS
) -o
$@
$<
165 $(MISC
)$/interlck_sparc.s
: asm
/interlck_sparc.s
166 tr
-d
"\015" < $< > $@
170 .IF
"$(OS)$(CPU)"=="SOLARISI"
172 $(SLO
)$/interlck.obj
: $(SLO
)$/interlck.o
173 touch
$(SLO
)$/interlck.obj
175 $(OBJ
)$/interlck.obj
: $(OBJ
)$/interlck.o
176 touch
$(OBJ
)$/interlck.obj
178 $(SLO
)$/interlck.o
: $(MISC
)$/interlck_x86.s
179 $(ASM
) $(AFLAGS
) -o
$@
$<
181 $(OBJ
)$/interlck.o
: $(MISC
)$/interlck_x86.s
182 $(ASM
) $(AFLAGS
) -o
$@
$<
184 $(MISC
)$/interlck_x86.s
: asm
/interlck_x86.s
185 tr
-d
"\015" < $< > $@