1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
31 .IF
"$(WORK_STAMP)"=="MIX364"
40 PROJECTPCHSOURCE
=cont_pch
45 # --- Settings -----------------------------------------------------
47 .INCLUDE
: settings.mk
49 CFLAGS
+= $(LFS_CFLAGS
)
50 CXXFLAGS
+= $(LFS_CFLAGS
)
52 # --- Files --------------------------------------------------------
56 $(SLO
)$/diagnose.obj \
57 $(SLO
)$/semaphor.obj \
59 $(SLO
)$/interlck.obj \
61 $(SLO
)$/nlsupport.obj \
65 $(SLO
)$/security.obj \
74 $(SLO
)$/file_misc.obj\
76 $(SLO
)$/file_error_transl.obj\
77 $(SLO
)$/file_path_helper.obj\
78 $(SLO
)$/file_stat.obj \
79 $(SLO
)$/file_volume.obj \
81 $(SLO
)$/process_impl.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 \
103 $(OBJ
)$/tempfile.obj\
105 $(OBJ
)$/file_misc.obj\
106 $(OBJ
)$/file_url.obj\
107 $(OBJ
)$/file_error_transl.obj\
108 $(OBJ
)$/file_path_helper.obj\
109 $(OBJ
)$/file_stat.obj \
110 $(OBJ
)$/file_volume.obj \
112 $(OBJ
)$/process_impl.obj\
117 .IF
"$(OS)"=="MACOSX"
118 SLOFILES
+= $(SLO
)$/osxlocale.obj
121 .IF
"$(OS)"=="SOLARIS" ||
"$(OS)"=="FREEBSD" ||
"$(OS)"=="NETBSD" ||
"$(OS)$(CPU)"=="LINUXS" ||
"$(OS)"=="MACOSX"
122 SLOFILES
+= $(SLO
)$/backtrace.obj
123 OBJFILES
+= $(OBJ
)$/backtrace.obj
126 # --- Targets ------------------------------------------------------
132 .IF
"$(OS)" == "LINUX"
135 .IF
"$(NEW_SHADOW_API)" == "YES"
136 CFLAGS
+=-DNEW_SHADOW_API
139 .IF
"$(PAM_LINK)" == "YES"
142 .IF
"$(CRYPT_LINK)" == "YES"
147 .IF
"$(ENABLE_CRASHDUMP)" != "" ||
"$(PRODUCT)" == ""
148 CFLAGS
+=-DSAL_ENABLE_CRASH_REPORT
153 .IF
"$(OS)$(CPU)"=="SOLARISU" ||
"$(OS)$(CPU)"=="SOLARISS" ||
"$(OS)$(CPU)"=="NETBSDS" ||
"$(OS)$(CPU)"=="LINUXS"
155 $(SLO
)$/interlck.obj
: $(SLO
)$/interlck.o
156 touch
$(SLO
)$/interlck.obj
158 $(OBJ
)$/interlck.obj
: $(OBJ
)$/interlck.o
159 touch
$(OBJ
)$/interlck.obj
161 $(SLO
)$/interlck.o
: $(MISC
)$/interlck_sparc.s
162 $(ASM
) $(AFLAGS
) -o
$@
$<
164 $(OBJ
)$/interlck.o
: $(MISC
)$/interlck_sparc.s
165 $(ASM
) $(AFLAGS
) -o
$@
$<
167 $(MISC
)$/interlck_sparc.s
: asm
/interlck_sparc.s
168 tr
-d
"\015" < $< > $@
172 .IF
"$(OS)$(CPU)"=="SOLARISI"
174 $(SLO
)$/interlck.obj
: $(SLO
)$/interlck.o
175 touch
$(SLO
)$/interlck.obj
177 $(OBJ
)$/interlck.obj
: $(OBJ
)$/interlck.o
178 touch
$(OBJ
)$/interlck.obj
180 $(SLO
)$/interlck.o
: $(MISC
)$/interlck_x86.s
181 $(ASM
) $(AFLAGS
) -o
$@
$<
183 $(OBJ
)$/interlck.o
: $(MISC
)$/interlck_x86.s
184 $(ASM
) $(AFLAGS
) -o
$@
$<
186 $(MISC
)$/interlck_x86.s
: asm
/interlck_x86.s
187 tr
-d
"\015" < $< > $@