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