update dev300-m58
[ooovba.git] / sal / osl / unx / makefile.mk
blob0e728c29dbcdb092e9020c18cf4703ea03ed96d8
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2008 by Sun Microsystems, Inc.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # $RCSfile: makefile.mk,v $
11 # $Revision: 1.36 $
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 #*************************************************************************
32 PRJ=..$/..
34 PRJNAME=sal
35 .IF "$(WORK_STAMP)"=="MIX364"
36 TARGET=cppsal
37 .ELSE
38 TARGET=cpposl
39 .ENDIF
40 USE_LDUMP2=TRUE
42 PROJECTPCH4DLL=TRUE
43 PROJECTPCH=cont_pch
44 PROJECTPCHSOURCE=cont_pch
46 TARGETTYPE=CUI
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 \
61 $(SLO)$/socket.obj \
62 $(SLO)$/interlck.obj \
63 $(SLO)$/mutex.obj \
64 $(SLO)$/nlsupport.obj \
65 $(SLO)$/thread.obj \
66 $(SLO)$/module.obj \
67 $(SLO)$/process.obj \
68 $(SLO)$/security.obj \
69 $(SLO)$/profile.obj \
70 $(SLO)$/time.obj \
71 $(SLO)$/signal.obj \
72 $(SLO)$/pipe.obj \
73 $(SLO)$/system.obj \
74 $(SLO)$/util.obj \
75 $(SLO)$/tempfile.obj\
76 $(SLO)$/file.obj \
77 $(SLO)$/file_misc.obj \
78 $(SLO)$/file_url.obj\
79 $(SLO)$/file_error_transl.obj\
80 $(SLO)$/file_path_helper.obj\
81 $(SLO)$/file_stat.obj \
82 $(SLO)$/file_volume.obj \
83 $(SLO)$/uunxapi.obj\
84 $(SLO)$/process_impl.obj\
85 $(SLO)$/salinit.obj
87 #.IF "$(UPDATER)"=="YES"
88 OBJFILES= $(OBJ)$/conditn.obj \
89 $(OBJ)$/diagnose.obj \
90 $(OBJ)$/semaphor.obj \
91 $(OBJ)$/socket.obj \
92 $(OBJ)$/interlck.obj \
93 $(OBJ)$/mutex.obj \
94 $(OBJ)$/nlsupport.obj \
95 $(OBJ)$/thread.obj \
96 $(OBJ)$/module.obj \
97 $(OBJ)$/process.obj \
98 $(OBJ)$/security.obj \
99 $(OBJ)$/profile.obj \
100 $(OBJ)$/time.obj \
101 $(OBJ)$/signal.obj \
102 $(OBJ)$/pipe.obj \
103 $(OBJ)$/system.obj \
104 $(OBJ)$/util.obj \
105 $(OBJ)$/tempfile.obj\
106 $(OBJ)$/file.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 \
113 $(OBJ)$/uunxapi.obj\
114 $(OBJ)$/process_impl.obj\
115 $(OBJ)$/salinit.obj
117 #.ENDIF
119 .IF "$(OS)"=="MACOSX"
120 SLOFILES += $(SLO)$/osxlocale.obj
121 .ENDIF
123 .IF "$(OS)"=="SOLARIS" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || "$(OS)$(CPU)"=="LINUXS" || "$(OS)"=="MACOSX"
124 SLOFILES += $(SLO)$/backtrace.obj
125 OBJFILES += $(OBJ)$/backtrace.obj
126 .ENDIF
128 # --- Targets ------------------------------------------------------
130 .IF "$(COM)"=="C50"
131 APP1STDLIBS+=-lC
132 .ENDIF
134 .IF "$(OS)" == "LINUX"
135 .IF "$(PAM)" == "NO"
136 CFLAGS+=-DNOPAM
137 .IF "$(NEW_SHADOW_API)" == "YES"
138 CFLAGS+=-DNEW_SHADOW_API
139 .ENDIF
140 .ENDIF
141 .IF "$(PAM_LINK)" == "YES"
142 CFLAGS+=-DPAM_LINK
143 .ENDIF
144 .IF "$(CRYPT_LINK)" == "YES"
145 CFLAGS+=-DCRYPT_LINK
146 .ENDIF
147 .ENDIF
149 .IF "$(ENABLE_CRASHDUMP)" != "" || "$(PRODUCT)" == ""
150 CFLAGS+=-DSAL_ENABLE_CRASH_REPORT
151 .ENDIF
153 .INCLUDE : target.mk
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" < $< > $@
172 .ENDIF
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" < $< > $@
191 .ENDIF