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 \
77 $(SLO
)$/file_misc.obj \
79 $(SLO
)$/file_error_transl.obj\
80 $(SLO
)$/file_path_helper.obj\
81 $(SLO
)$/file_stat.obj \
82 $(SLO
)$/file_volume.obj \
84 $(SLO
)$/process_impl.obj\
87 #.IF "$(UPDATER)"=="YES"
88 OBJFILES
= $(OBJ
)$/conditn.obj \
89 $(OBJ
)$/diagnose.obj \
90 $(OBJ
)$/semaphor.obj \
92 $(OBJ
)$/interlck.obj \
94 $(OBJ
)$/nlsupport.obj \
98 $(OBJ
)$/security.obj \
105 $(OBJ
)$/tempfile.obj\
107 $(OBJ
)$/file_misc.obj \
108 $(OBJ
)$/file_url.obj\
109 $(OBJ
)$/file_error_transl.obj\
110 $(OBJ
)$/file_path_helper.obj\
111 $(OBJ
)$/file_stat.obj \
112 $(OBJ
)$/file_volume.obj \
114 $(OBJ
)$/process_impl.obj\
119 .IF
"$(OS)"=="MACOSX"
120 SLOFILES
+= $(SLO
)$/osxlocale.obj
123 .IF
"$(OS)"=="SOLARIS" ||
"$(OS)"=="FREEBSD" ||
"$(OS)"=="NETBSD" ||
"$(OS)$(CPU)"=="LINUXS" ||
"$(OS)"=="MACOSX"
124 SLOFILES
+= $(SLO
)$/backtrace.obj
125 OBJFILES
+= $(OBJ
)$/backtrace.obj
128 # --- Targets ------------------------------------------------------
134 .IF
"$(OS)" == "LINUX"
137 .IF
"$(NEW_SHADOW_API)" == "YES"
138 CFLAGS
+=-DNEW_SHADOW_API
141 .IF
"$(PAM_LINK)" == "YES"
144 .IF
"$(CRYPT_LINK)" == "YES"
149 .IF
"$(ENABLE_CRASHDUMP)" != "" ||
"$(PRODUCT)" == ""
150 CFLAGS
+=-DSAL_ENABLE_CRASH_REPORT
155 .IF
"$(OS)$(CPU)"=="SOLARISU" ||
"$(OS)$(CPU)"=="SOLARISS" ||
"$(OS)$(CPU)"=="NETBSDS" ||
"$(OS)$(CPU)"=="LINUXS"
157 $(SLO
)$/interlck.obj
: $(SLO
)$/interlck.o
158 touch
$(SLO
)$/interlck.obj
160 $(OBJ
)$/interlck.obj
: $(OBJ
)$/interlck.o
161 touch
$(OBJ
)$/interlck.obj
163 $(SLO
)$/interlck.o
: $(MISC
)$/interlck_sparc.s
164 $(ASM
) $(AFLAGS
) -o
$@
$<
166 $(OBJ
)$/interlck.o
: $(MISC
)$/interlck_sparc.s
167 $(ASM
) $(AFLAGS
) -o
$@
$<
169 $(MISC
)$/interlck_sparc.s
: asm
/interlck_sparc.s
170 tr
-d
"\015" < $< > $@
174 .IF
"$(OS)$(CPU)"=="SOLARISI"
176 $(SLO
)$/interlck.obj
: $(SLO
)$/interlck.o
177 touch
$(SLO
)$/interlck.obj
179 $(OBJ
)$/interlck.obj
: $(OBJ
)$/interlck.o
180 touch
$(OBJ
)$/interlck.obj
182 $(SLO
)$/interlck.o
: $(MISC
)$/interlck_x86.s
183 $(ASM
) $(AFLAGS
) -o
$@
$<
185 $(OBJ
)$/interlck.o
: $(MISC
)$/interlck_x86.s
186 $(ASM
) $(AFLAGS
) -o
$@
$<
188 $(MISC
)$/interlck_x86.s
: asm
/interlck_x86.s
189 tr
-d
"\015" < $< > $@