xref: /trunk/main/sal/osl/unx/makefile.mk (revision cdf0e10c)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
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.
14#
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).
20#
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.
25#
26#*************************************************************************
27
28PRJ=..$/..
29
30PRJNAME=sal
31.IF "$(WORK_STAMP)"=="MIX364"
32TARGET=cppsal
33.ELSE
34TARGET=cpposl
35.ENDIF
36USE_LDUMP2=TRUE
37
38PROJECTPCH4DLL=TRUE
39PROJECTPCH=cont_pch
40PROJECTPCHSOURCE=cont_pch
41
42TARGETTYPE=CUI
43
44
45# --- Settings -----------------------------------------------------
46
47.INCLUDE :  settings.mk
48
49CFLAGS+= $(LFS_CFLAGS)
50CXXFLAGS+= $(LFS_CFLAGS)
51
52# --- Files --------------------------------------------------------
53
54SLOFILES= \
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
83
84
85#.IF "$(UPDATER)"=="YES"
86OBJFILES=   $(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
114
115#.ENDIF
116
117.IF "$(OS)"=="MACOSX"
118SLOFILES += $(SLO)$/osxlocale.obj
119.ENDIF
120
121.IF "$(OS)"=="SOLARIS" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || "$(OS)$(CPU)"=="LINUXS" || "$(OS)"=="MACOSX"
122SLOFILES += $(SLO)$/backtrace.obj
123OBJFILES += $(OBJ)$/backtrace.obj
124.ENDIF
125
126# --- Targets ------------------------------------------------------
127
128.IF "$(COM)"=="C50"
129APP1STDLIBS+=-lC
130.ENDIF
131
132.IF "$(OS)" == "LINUX"
133.IF "$(PAM)" == "NO"
134CFLAGS+=-DNOPAM
135.IF "$(NEW_SHADOW_API)" == "YES"
136CFLAGS+=-DNEW_SHADOW_API
137.ENDIF
138.ENDIF
139.IF "$(PAM_LINK)" == "YES"
140CFLAGS+=-DPAM_LINK
141.ENDIF
142.IF "$(CRYPT_LINK)" == "YES"
143CFLAGS+=-DCRYPT_LINK
144.ENDIF
145.ENDIF
146
147.IF "$(ENABLE_CRASHDUMP)" != "" || "$(PRODUCT)" == ""
148CFLAGS+=-DSAL_ENABLE_CRASH_REPORT
149.ENDIF
150
151.INCLUDE :  target.mk
152
153.IF "$(OS)$(CPU)"=="SOLARISU" || "$(OS)$(CPU)"=="SOLARISS" || "$(OS)$(CPU)"=="NETBSDS" || "$(OS)$(CPU)"=="LINUXS"
154
155$(SLO)$/interlck.obj: $(SLO)$/interlck.o
156	 touch $(SLO)$/interlck.obj
157
158$(OBJ)$/interlck.obj: $(OBJ)$/interlck.o
159	 touch $(OBJ)$/interlck.obj
160
161$(SLO)$/interlck.o: $(MISC)$/interlck_sparc.s
162	$(ASM) $(AFLAGS) -o $@ $<
163
164$(OBJ)$/interlck.o: $(MISC)$/interlck_sparc.s
165	$(ASM) $(AFLAGS) -o $@ $<
166
167$(MISC)$/interlck_sparc.s: asm/interlck_sparc.s
168	tr -d "\015" < $< > $@
169
170.ENDIF
171
172.IF "$(OS)$(CPU)"=="SOLARISI"
173
174$(SLO)$/interlck.obj: $(SLO)$/interlck.o
175	touch $(SLO)$/interlck.obj
176
177$(OBJ)$/interlck.obj: $(OBJ)$/interlck.o
178	touch $(OBJ)$/interlck.obj
179
180$(SLO)$/interlck.o: $(MISC)$/interlck_x86.s
181	$(ASM) $(AFLAGS) -o $@ $<
182
183$(OBJ)$/interlck.o: $(MISC)$/interlck_x86.s
184	$(ASM) $(AFLAGS) -o $@ $<
185
186$(MISC)$/interlck_x86.s: asm/interlck_x86.s
187	tr -d "\015" < $< > $@
188
189.ENDIF
190