merged tag ooo/DEV300_m102
[LibreOffice.git] / sal / osl / unx / makefile.mk
blob1dd47fb4d19b7820638f07e0cfe11159031c2eed
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
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 #*************************************************************************
28 PRJ=..$/..
30 PRJNAME=sal
31 .IF "$(WORK_STAMP)"=="MIX364"
32 TARGET=cppsal
33 .ELSE
34 TARGET=cpposl
35 .ENDIF
36 USE_LDUMP2=TRUE
38 PROJECTPCH4DLL=TRUE
39 PROJECTPCH=cont_pch
40 PROJECTPCHSOURCE=cont_pch
42 TARGETTYPE=CUI
45 # --- Settings -----------------------------------------------------
47 .INCLUDE : settings.mk
49 CFLAGS+= $(LFS_CFLAGS)
50 CXXFLAGS+= $(LFS_CFLAGS)
52 # --- Files --------------------------------------------------------
54 SLOFILES= \
55 $(SLO)$/conditn.obj \
56 $(SLO)$/diagnose.obj \
57 $(SLO)$/semaphor.obj \
58 $(SLO)$/socket.obj \
59 $(SLO)$/interlck.obj \
60 $(SLO)$/mutex.obj \
61 $(SLO)$/nlsupport.obj \
62 $(SLO)$/thread.obj \
63 $(SLO)$/module.obj \
64 $(SLO)$/process.obj \
65 $(SLO)$/security.obj \
66 $(SLO)$/profile.obj \
67 $(SLO)$/time.obj \
68 $(SLO)$/signal.obj \
69 $(SLO)$/pipe.obj \
70 $(SLO)$/system.obj \
71 $(SLO)$/util.obj \
72 $(SLO)$/tempfile.obj\
73 $(SLO)$/file.obj \
74 $(SLO)$/file_misc.obj\
75 $(SLO)$/file_url.obj\
76 $(SLO)$/file_error_transl.obj\
77 $(SLO)$/file_path_helper.obj\
78 $(SLO)$/file_stat.obj \
79 $(SLO)$/file_volume.obj \
80 $(SLO)$/uunxapi.obj\
81 $(SLO)$/process_impl.obj\
82 $(SLO)$/salinit.obj
85 #.IF "$(UPDATER)"=="YES"
86 OBJFILES= $(OBJ)$/conditn.obj \
87 $(OBJ)$/diagnose.obj \
88 $(OBJ)$/semaphor.obj \
89 $(OBJ)$/socket.obj \
90 $(OBJ)$/interlck.obj \
91 $(OBJ)$/mutex.obj \
92 $(OBJ)$/nlsupport.obj \
93 $(OBJ)$/thread.obj \
94 $(OBJ)$/module.obj \
95 $(OBJ)$/process.obj \
96 $(OBJ)$/security.obj \
97 $(OBJ)$/profile.obj \
98 $(OBJ)$/time.obj \
99 $(OBJ)$/signal.obj \
100 $(OBJ)$/pipe.obj \
101 $(OBJ)$/system.obj \
102 $(OBJ)$/util.obj \
103 $(OBJ)$/tempfile.obj\
104 $(OBJ)$/file.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 \
111 $(OBJ)$/uunxapi.obj\
112 $(OBJ)$/process_impl.obj\
113 $(OBJ)$/salinit.obj
115 #.ENDIF
117 .IF "$(OS)"=="MACOSX"
118 SLOFILES += $(SLO)$/osxlocale.obj
119 .ENDIF
121 .IF "$(OS)"=="SOLARIS" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || "$(OS)$(CPU)"=="LINUXS" || "$(OS)"=="MACOSX"
122 SLOFILES += $(SLO)$/backtrace.obj
123 OBJFILES += $(OBJ)$/backtrace.obj
124 .ENDIF
126 # --- Targets ------------------------------------------------------
128 .IF "$(COM)"=="C50"
129 APP1STDLIBS+=-lC
130 .ENDIF
132 .IF "$(OS)" == "LINUX"
133 .IF "$(PAM)" == "NO"
134 CFLAGS+=-DNOPAM
135 .IF "$(NEW_SHADOW_API)" == "YES"
136 CFLAGS+=-DNEW_SHADOW_API
137 .ENDIF
138 .ENDIF
139 .IF "$(PAM_LINK)" == "YES"
140 CFLAGS+=-DPAM_LINK
141 .ENDIF
142 .IF "$(CRYPT_LINK)" == "YES"
143 CFLAGS+=-DCRYPT_LINK
144 .ENDIF
145 .ENDIF
147 .IF "$(ENABLE_CRASHDUMP)" != "" || "$(PRODUCT)" == ""
148 CFLAGS+=-DSAL_ENABLE_CRASH_REPORT
149 .ENDIF
151 .INCLUDE : target.mk
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" < $< > $@
170 .ENDIF
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" < $< > $@
189 .ENDIF