xref: /aoo41x/main/sal/osl/unx/makefile.mk (revision 7871dc3e)
1#**************************************************************
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20#**************************************************************
21
22
23
24PRJ=..$/..
25
26PRJNAME=sal
27.IF "$(WORK_STAMP)"=="MIX364"
28TARGET=cppsal
29.ELSE
30TARGET=cpposl
31.ENDIF
32USE_LDUMP2=TRUE
33
34PROJECTPCH4DLL=TRUE
35PROJECTPCH=cont_pch
36PROJECTPCHSOURCE=cont_pch
37
38TARGETTYPE=CUI
39
40
41# --- Settings -----------------------------------------------------
42
43.INCLUDE :  settings.mk
44
45CFLAGS+= $(LFS_CFLAGS)
46CXXFLAGS+= $(LFS_CFLAGS)
47
48# --- Files --------------------------------------------------------
49
50SLOFILES= \
51			$(SLO)$/conditn.obj  \
52			$(SLO)$/diagnose.obj \
53			$(SLO)$/semaphor.obj \
54			$(SLO)$/socket.obj   \
55			$(SLO)$/interlck.obj \
56			$(SLO)$/mutex.obj    \
57			$(SLO)$/nlsupport.obj \
58			$(SLO)$/thread.obj   \
59			$(SLO)$/module.obj   \
60			$(SLO)$/process.obj  \
61			$(SLO)$/security.obj \
62			$(SLO)$/profile.obj  \
63			$(SLO)$/time.obj     \
64			$(SLO)$/signal.obj   \
65			$(SLO)$/pipe.obj   	 \
66			$(SLO)$/system.obj	 \
67			$(SLO)$/util.obj	 \
68			$(SLO)$/tempfile.obj\
69			$(SLO)$/file.obj     \
70			$(SLO)$/file_misc.obj\
71			$(SLO)$/file_url.obj\
72			$(SLO)$/file_error_transl.obj\
73			$(SLO)$/file_path_helper.obj\
74			$(SLO)$/file_stat.obj \
75			$(SLO)$/file_volume.obj \
76			$(SLO)$/uunxapi.obj\
77			$(SLO)$/process_impl.obj\
78			$(SLO)$/salinit.obj
79
80
81#.IF "$(UPDATER)"=="YES"
82OBJFILES=   $(OBJ)$/conditn.obj  \
83			$(OBJ)$/diagnose.obj \
84			$(OBJ)$/semaphor.obj \
85			$(OBJ)$/socket.obj   \
86			$(OBJ)$/interlck.obj \
87			$(OBJ)$/mutex.obj    \
88			$(OBJ)$/nlsupport.obj \
89			$(OBJ)$/thread.obj   \
90			$(OBJ)$/module.obj   \
91			$(OBJ)$/process.obj  \
92			$(OBJ)$/security.obj \
93			$(OBJ)$/profile.obj  \
94			$(OBJ)$/time.obj     \
95			$(OBJ)$/signal.obj   \
96			$(OBJ)$/pipe.obj   	 \
97			$(OBJ)$/system.obj	 \
98			$(OBJ)$/util.obj	 \
99			$(OBJ)$/tempfile.obj\
100			$(OBJ)$/file.obj     \
101			$(OBJ)$/file_misc.obj\
102			$(OBJ)$/file_url.obj\
103			$(OBJ)$/file_error_transl.obj\
104			$(OBJ)$/file_path_helper.obj\
105			$(OBJ)$/file_stat.obj \
106			$(OBJ)$/file_volume.obj \
107			$(OBJ)$/uunxapi.obj\
108			$(OBJ)$/process_impl.obj\
109			$(OBJ)$/salinit.obj
110
111#.ENDIF
112
113.IF "$(OS)"=="MACOSX"
114SLOFILES += $(SLO)$/osxlocale.obj
115.ENDIF
116
117.IF "$(OS)"=="SOLARIS" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || "$(OS)$(CPU)"=="LINUXS" || "$(OS)"=="MACOSX"
118SLOFILES += $(SLO)$/backtrace.obj
119OBJFILES += $(OBJ)$/backtrace.obj
120.ENDIF
121
122# --- Targets ------------------------------------------------------
123
124.IF "$(COM)"=="C50"
125APP1STDLIBS+=-lC
126.ENDIF
127
128.IF "$(OS)" == "LINUX"
129.IF "$(PAM)" == "NO"
130CFLAGS+=-DNOPAM
131.IF "$(NEW_SHADOW_API)" == "YES"
132CFLAGS+=-DNEW_SHADOW_API
133.ENDIF
134.ENDIF
135.IF "$(PAM_LINK)" == "YES"
136CFLAGS+=-DPAM_LINK
137.ENDIF
138.IF "$(CRYPT_LINK)" == "YES"
139CFLAGS+=-DCRYPT_LINK
140.ENDIF
141.ENDIF
142
143.IF "$(ENABLE_CRASHDUMP)" != "" || "$(PRODUCT)" == ""
144CFLAGS+=-DSAL_ENABLE_CRASH_REPORT
145.ENDIF
146
147.INCLUDE :  target.mk
148
149.IF "$(OS)$(CPU)"=="SOLARISU" || "$(OS)$(CPU)"=="SOLARISS" || "$(OS)$(CPU)"=="NETBSDS" || "$(OS)$(CPU)"=="LINUXS"
150
151$(SLO)$/interlck.obj: $(SLO)$/interlck.o
152	 touch $(SLO)$/interlck.obj
153
154$(OBJ)$/interlck.obj: $(OBJ)$/interlck.o
155	 touch $(OBJ)$/interlck.obj
156
157$(SLO)$/interlck.o: $(MISC)$/interlck_sparc.s
158	$(ASM) $(AFLAGS) -o $@ $<
159
160$(OBJ)$/interlck.o: $(MISC)$/interlck_sparc.s
161	$(ASM) $(AFLAGS) -o $@ $<
162
163$(MISC)$/interlck_sparc.s: asm/interlck_sparc.s
164	tr -d "\015" < $< > $@
165
166.ENDIF
167
168.IF "$(OS)$(CPU)"=="SOLARISI"
169
170$(SLO)$/interlck.obj: $(SLO)$/interlck.o
171	touch $(SLO)$/interlck.obj
172
173$(OBJ)$/interlck.obj: $(OBJ)$/interlck.o
174	touch $(OBJ)$/interlck.obj
175
176$(SLO)$/interlck.o: $(MISC)$/interlck_x86.s
177	$(ASM) $(AFLAGS) -o $@ $<
178
179$(OBJ)$/interlck.o: $(MISC)$/interlck_x86.s
180	$(ASM) $(AFLAGS) -o $@ $<
181
182$(MISC)$/interlck_x86.s: asm/interlck_x86.s
183	tr -d "\015" < $< > $@
184
185.ENDIF
186