1*cdf0e10cSrcweir#************************************************************************* 2*cdf0e10cSrcweir# 3*cdf0e10cSrcweir# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir# 5*cdf0e10cSrcweir# Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir# 7*cdf0e10cSrcweir# OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir# 9*cdf0e10cSrcweir# This file is part of OpenOffice.org. 10*cdf0e10cSrcweir# 11*cdf0e10cSrcweir# OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir# it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir# only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir# 15*cdf0e10cSrcweir# OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir# but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir# GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir# (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir# 21*cdf0e10cSrcweir# You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir# version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir# <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir# for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir# 26*cdf0e10cSrcweir#************************************************************************* 27*cdf0e10cSrcweir 28*cdf0e10cSrcweirPRJ=..$/.. 29*cdf0e10cSrcweir 30*cdf0e10cSrcweirPRJNAME=sal 31*cdf0e10cSrcweir.IF "$(WORK_STAMP)"=="MIX364" 32*cdf0e10cSrcweirTARGET=cppsal 33*cdf0e10cSrcweir.ELSE 34*cdf0e10cSrcweirTARGET=cpposl 35*cdf0e10cSrcweir.ENDIF 36*cdf0e10cSrcweirUSE_LDUMP2=TRUE 37*cdf0e10cSrcweir 38*cdf0e10cSrcweirPROJECTPCH4DLL=TRUE 39*cdf0e10cSrcweirPROJECTPCH=cont_pch 40*cdf0e10cSrcweirPROJECTPCHSOURCE=cont_pch 41*cdf0e10cSrcweir 42*cdf0e10cSrcweirTARGETTYPE=CUI 43*cdf0e10cSrcweir 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir# --- Settings ----------------------------------------------------- 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir.INCLUDE : settings.mk 48*cdf0e10cSrcweir 49*cdf0e10cSrcweirCFLAGS+= $(LFS_CFLAGS) 50*cdf0e10cSrcweirCXXFLAGS+= $(LFS_CFLAGS) 51*cdf0e10cSrcweir 52*cdf0e10cSrcweir# --- Files -------------------------------------------------------- 53*cdf0e10cSrcweir 54*cdf0e10cSrcweirSLOFILES= \ 55*cdf0e10cSrcweir $(SLO)$/conditn.obj \ 56*cdf0e10cSrcweir $(SLO)$/diagnose.obj \ 57*cdf0e10cSrcweir $(SLO)$/semaphor.obj \ 58*cdf0e10cSrcweir $(SLO)$/socket.obj \ 59*cdf0e10cSrcweir $(SLO)$/interlck.obj \ 60*cdf0e10cSrcweir $(SLO)$/mutex.obj \ 61*cdf0e10cSrcweir $(SLO)$/nlsupport.obj \ 62*cdf0e10cSrcweir $(SLO)$/thread.obj \ 63*cdf0e10cSrcweir $(SLO)$/module.obj \ 64*cdf0e10cSrcweir $(SLO)$/process.obj \ 65*cdf0e10cSrcweir $(SLO)$/security.obj \ 66*cdf0e10cSrcweir $(SLO)$/profile.obj \ 67*cdf0e10cSrcweir $(SLO)$/time.obj \ 68*cdf0e10cSrcweir $(SLO)$/signal.obj \ 69*cdf0e10cSrcweir $(SLO)$/pipe.obj \ 70*cdf0e10cSrcweir $(SLO)$/system.obj \ 71*cdf0e10cSrcweir $(SLO)$/util.obj \ 72*cdf0e10cSrcweir $(SLO)$/tempfile.obj\ 73*cdf0e10cSrcweir $(SLO)$/file.obj \ 74*cdf0e10cSrcweir $(SLO)$/file_misc.obj\ 75*cdf0e10cSrcweir $(SLO)$/file_url.obj\ 76*cdf0e10cSrcweir $(SLO)$/file_error_transl.obj\ 77*cdf0e10cSrcweir $(SLO)$/file_path_helper.obj\ 78*cdf0e10cSrcweir $(SLO)$/file_stat.obj \ 79*cdf0e10cSrcweir $(SLO)$/file_volume.obj \ 80*cdf0e10cSrcweir $(SLO)$/uunxapi.obj\ 81*cdf0e10cSrcweir $(SLO)$/process_impl.obj\ 82*cdf0e10cSrcweir $(SLO)$/salinit.obj 83*cdf0e10cSrcweir 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir#.IF "$(UPDATER)"=="YES" 86*cdf0e10cSrcweirOBJFILES= $(OBJ)$/conditn.obj \ 87*cdf0e10cSrcweir $(OBJ)$/diagnose.obj \ 88*cdf0e10cSrcweir $(OBJ)$/semaphor.obj \ 89*cdf0e10cSrcweir $(OBJ)$/socket.obj \ 90*cdf0e10cSrcweir $(OBJ)$/interlck.obj \ 91*cdf0e10cSrcweir $(OBJ)$/mutex.obj \ 92*cdf0e10cSrcweir $(OBJ)$/nlsupport.obj \ 93*cdf0e10cSrcweir $(OBJ)$/thread.obj \ 94*cdf0e10cSrcweir $(OBJ)$/module.obj \ 95*cdf0e10cSrcweir $(OBJ)$/process.obj \ 96*cdf0e10cSrcweir $(OBJ)$/security.obj \ 97*cdf0e10cSrcweir $(OBJ)$/profile.obj \ 98*cdf0e10cSrcweir $(OBJ)$/time.obj \ 99*cdf0e10cSrcweir $(OBJ)$/signal.obj \ 100*cdf0e10cSrcweir $(OBJ)$/pipe.obj \ 101*cdf0e10cSrcweir $(OBJ)$/system.obj \ 102*cdf0e10cSrcweir $(OBJ)$/util.obj \ 103*cdf0e10cSrcweir $(OBJ)$/tempfile.obj\ 104*cdf0e10cSrcweir $(OBJ)$/file.obj \ 105*cdf0e10cSrcweir $(OBJ)$/file_misc.obj\ 106*cdf0e10cSrcweir $(OBJ)$/file_url.obj\ 107*cdf0e10cSrcweir $(OBJ)$/file_error_transl.obj\ 108*cdf0e10cSrcweir $(OBJ)$/file_path_helper.obj\ 109*cdf0e10cSrcweir $(OBJ)$/file_stat.obj \ 110*cdf0e10cSrcweir $(OBJ)$/file_volume.obj \ 111*cdf0e10cSrcweir $(OBJ)$/uunxapi.obj\ 112*cdf0e10cSrcweir $(OBJ)$/process_impl.obj\ 113*cdf0e10cSrcweir $(OBJ)$/salinit.obj 114*cdf0e10cSrcweir 115*cdf0e10cSrcweir#.ENDIF 116*cdf0e10cSrcweir 117*cdf0e10cSrcweir.IF "$(OS)"=="MACOSX" 118*cdf0e10cSrcweirSLOFILES += $(SLO)$/osxlocale.obj 119*cdf0e10cSrcweir.ENDIF 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir.IF "$(OS)"=="SOLARIS" || "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD" || "$(OS)$(CPU)"=="LINUXS" || "$(OS)"=="MACOSX" 122*cdf0e10cSrcweirSLOFILES += $(SLO)$/backtrace.obj 123*cdf0e10cSrcweirOBJFILES += $(OBJ)$/backtrace.obj 124*cdf0e10cSrcweir.ENDIF 125*cdf0e10cSrcweir 126*cdf0e10cSrcweir# --- Targets ------------------------------------------------------ 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir.IF "$(COM)"=="C50" 129*cdf0e10cSrcweirAPP1STDLIBS+=-lC 130*cdf0e10cSrcweir.ENDIF 131*cdf0e10cSrcweir 132*cdf0e10cSrcweir.IF "$(OS)" == "LINUX" 133*cdf0e10cSrcweir.IF "$(PAM)" == "NO" 134*cdf0e10cSrcweirCFLAGS+=-DNOPAM 135*cdf0e10cSrcweir.IF "$(NEW_SHADOW_API)" == "YES" 136*cdf0e10cSrcweirCFLAGS+=-DNEW_SHADOW_API 137*cdf0e10cSrcweir.ENDIF 138*cdf0e10cSrcweir.ENDIF 139*cdf0e10cSrcweir.IF "$(PAM_LINK)" == "YES" 140*cdf0e10cSrcweirCFLAGS+=-DPAM_LINK 141*cdf0e10cSrcweir.ENDIF 142*cdf0e10cSrcweir.IF "$(CRYPT_LINK)" == "YES" 143*cdf0e10cSrcweirCFLAGS+=-DCRYPT_LINK 144*cdf0e10cSrcweir.ENDIF 145*cdf0e10cSrcweir.ENDIF 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir.IF "$(ENABLE_CRASHDUMP)" != "" || "$(PRODUCT)" == "" 148*cdf0e10cSrcweirCFLAGS+=-DSAL_ENABLE_CRASH_REPORT 149*cdf0e10cSrcweir.ENDIF 150*cdf0e10cSrcweir 151*cdf0e10cSrcweir.INCLUDE : target.mk 152*cdf0e10cSrcweir 153*cdf0e10cSrcweir.IF "$(OS)$(CPU)"=="SOLARISU" || "$(OS)$(CPU)"=="SOLARISS" || "$(OS)$(CPU)"=="NETBSDS" || "$(OS)$(CPU)"=="LINUXS" 154*cdf0e10cSrcweir 155*cdf0e10cSrcweir$(SLO)$/interlck.obj: $(SLO)$/interlck.o 156*cdf0e10cSrcweir touch $(SLO)$/interlck.obj 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir$(OBJ)$/interlck.obj: $(OBJ)$/interlck.o 159*cdf0e10cSrcweir touch $(OBJ)$/interlck.obj 160*cdf0e10cSrcweir 161*cdf0e10cSrcweir$(SLO)$/interlck.o: $(MISC)$/interlck_sparc.s 162*cdf0e10cSrcweir $(ASM) $(AFLAGS) -o $@ $< 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir$(OBJ)$/interlck.o: $(MISC)$/interlck_sparc.s 165*cdf0e10cSrcweir $(ASM) $(AFLAGS) -o $@ $< 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir$(MISC)$/interlck_sparc.s: asm/interlck_sparc.s 168*cdf0e10cSrcweir tr -d "\015" < $< > $@ 169*cdf0e10cSrcweir 170*cdf0e10cSrcweir.ENDIF 171*cdf0e10cSrcweir 172*cdf0e10cSrcweir.IF "$(OS)$(CPU)"=="SOLARISI" 173*cdf0e10cSrcweir 174*cdf0e10cSrcweir$(SLO)$/interlck.obj: $(SLO)$/interlck.o 175*cdf0e10cSrcweir touch $(SLO)$/interlck.obj 176*cdf0e10cSrcweir 177*cdf0e10cSrcweir$(OBJ)$/interlck.obj: $(OBJ)$/interlck.o 178*cdf0e10cSrcweir touch $(OBJ)$/interlck.obj 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir$(SLO)$/interlck.o: $(MISC)$/interlck_x86.s 181*cdf0e10cSrcweir $(ASM) $(AFLAGS) -o $@ $< 182*cdf0e10cSrcweir 183*cdf0e10cSrcweir$(OBJ)$/interlck.o: $(MISC)$/interlck_x86.s 184*cdf0e10cSrcweir $(ASM) $(AFLAGS) -o $@ $< 185*cdf0e10cSrcweir 186*cdf0e10cSrcweir$(MISC)$/interlck_x86.s: asm/interlck_x86.s 187*cdf0e10cSrcweir tr -d "\015" < $< > $@ 188*cdf0e10cSrcweir 189*cdf0e10cSrcweir.ENDIF 190