update dev300-m57
[ooovba.git] / sal / osl / unx / makefile.mk
blob1717d836e647488128349fdc63f85793a11aa825
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)$/file.obj \
72 $(SLO)$/signal.obj \
73 $(SLO)$/pipe.obj \
74 $(SLO)$/system.obj \
75 $(SLO)$/util.obj \
76 $(SLO)$/tempfile.obj\
77 $(SLO)$/file_url.obj\
78 $(SLO)$/file_error_transl.obj\
79 $(SLO)$/file_path_helper.obj\
80 $(SLO)$/uunxapi.obj\
81 $(SLO)$/process_impl.obj\
82 $(SLO)$/file_stat.obj \
83 $(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)$/file.obj \
100 $(OBJ)$/signal.obj \
101 $(OBJ)$/pipe.obj \
102 $(OBJ)$/system.obj \
103 $(OBJ)$/util.obj \
104 $(OBJ)$/tempfile.obj\
105 $(OBJ)$/file_url.obj\
106 $(OBJ)$/file_error_transl.obj\
107 $(OBJ)$/file_path_helper.obj\
108 $(OBJ)$/uunxapi.obj\
109 $(OBJ)$/process_impl.obj\
110 $(OBJ)$/file_stat.obj \
111 $(OBJ)$/salinit.obj
113 #.ENDIF
115 .IF "$(OS)"=="MACOSX"
116 SLOFILES += $(SLO)$/osxlocale.obj
117 .ENDIF
119 .IF "$(OS)"=="SOLARIS" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || "$(OS)$(CPU)"=="LINUXS" || "$(OS)"=="MACOSX"
120 SLOFILES += $(SLO)$/backtrace.obj
121 OBJFILES += $(OBJ)$/backtrace.obj
122 .ENDIF
124 # --- Targets ------------------------------------------------------
126 .IF "$(COM)"=="C50"
127 APP1STDLIBS+=-lC
128 .ENDIF
130 .IF "$(OS)" == "LINUX"
131 .IF "$(PAM)" == "NO"
132 CFLAGS+=-DNOPAM
133 .IF "$(NEW_SHADOW_API)" == "YES"
134 CFLAGS+=-DNEW_SHADOW_API
135 .ENDIF
136 .ENDIF
137 .IF "$(PAM_LINK)" == "YES"
138 CFLAGS+=-DPAM_LINK
139 .ENDIF
140 .IF "$(CRYPT_LINK)" == "YES"
141 CFLAGS+=-DCRYPT_LINK
142 .ENDIF
143 .ENDIF
145 .IF "$(ENABLE_CRASHDUMP)" != "" || "$(PRODUCT)" == ""
146 CFLAGS+=-DSAL_ENABLE_CRASH_REPORT
147 .ENDIF
149 .INCLUDE : target.mk
151 .IF "$(OS)$(CPU)"=="SOLARISU" || "$(OS)$(CPU)"=="SOLARISS" || "$(OS)$(CPU)"=="NETBSDS" || "$(OS)$(CPU)"=="LINUXS"
153 $(SLO)$/interlck.obj: $(SLO)$/interlck.o
154 touch $(SLO)$/interlck.obj
156 $(OBJ)$/interlck.obj: $(OBJ)$/interlck.o
157 touch $(OBJ)$/interlck.obj
159 $(SLO)$/interlck.o: $(MISC)$/interlck_sparc.s
160 $(ASM) $(AFLAGS) -o $@ $<
162 $(OBJ)$/interlck.o: $(MISC)$/interlck_sparc.s
163 $(ASM) $(AFLAGS) -o $@ $<
165 $(MISC)$/interlck_sparc.s: asm/interlck_sparc.s
166 tr -d "\015" < $< > $@
168 .ENDIF
170 .IF "$(OS)$(CPU)"=="SOLARISI"
172 $(SLO)$/interlck.obj: $(SLO)$/interlck.o
173 touch $(SLO)$/interlck.obj
175 $(OBJ)$/interlck.obj: $(OBJ)$/interlck.o
176 touch $(OBJ)$/interlck.obj
178 $(SLO)$/interlck.o: $(MISC)$/interlck_x86.s
179 $(ASM) $(AFLAGS) -o $@ $<
181 $(OBJ)$/interlck.o: $(MISC)$/interlck_x86.s
182 $(ASM) $(AFLAGS) -o $@ $<
184 $(MISC)$/interlck_x86.s: asm/interlck_x86.s
185 tr -d "\015" < $< > $@
187 .ENDIF