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 27TARGET=workben 28LIBTARGET=NO 29TARGETTYPE=CUI 30#ENABLE_EXCEPTIONS=TRUE 31NO_DEFAULT_STL=YES 32 33#TESTAPP=test_osl_getVolInfo 34#TESTAPP=test_osl_joinProcess 35#TESTAPP=getlocaleinfotest 36#TESTAPP=test_osl_joinProcess 37#TESTAPP=getlocaleinfotest 38#TESTAPP=salstattest 39#TESTAPP=saldyntest 40 41TESTAPP=t_readline 42#TESTAPP=t_cipher 43#TESTAPP=t_digest 44#TESTAPP=t_random 45#TESTAPP=t_layer 46#TESTAPP=t_tls 47#TESTAPP=t_zip 48 49#TESTAPP=testfile 50#TESTAPP=testpipe 51#TESTAPP=testpip2 52#TESTAPP=testproc 53#TESTAPP=tgetpwnam 54#TESTAPP=salstattest 55 56# --- Settings ----------------------------------------------------- 57 58.INCLUDE : settings.mk 59 60CFLAGS+= $(LFS_CFLAGS) 61CXXFLAGS+= $(LFS_CFLAGS) 62 63# --- Files -------------------------------------------------------- 64 65.IF "$(TESTAPP)" == "test_osl_getVolInfo" 66 67SHL1OBJS=$(SLO)$/t_osl_getVolInfo.obj 68SHL1TARGET=togvi 69 70.IF "$(GUI)" == "WNT" 71APP1STDLIBS=$(KERNEL32LIB) 72SHL1STDLIBS=$(LB)$/isal.lib 73SHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib 74.ENDIF 75 76.IF "$(GUI)" == "UNX" 77SHL1STDLIBS=$(LB)$/libsal.so 78SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a 79.ENDIF 80 81SHL1IMPLIB=i$(SHL1TARGET) 82SHL1DEF=$(MISC)$/$(SHL1TARGET).def 83DEF1NAME=$(SHL1TARGET) 84DEF1EXPORTFILE=export.exp 85.ENDIF 86 87.IF "$(TESTAPP)" == "test_osl_joinProcess" 88OBJFILES=$(OBJ)$/t_ojp_exe.obj 89APP1TARGET=ojpx 90APP1OBJS=$(OBJFILES) 91 92.IF "$(GUI)" == "UNX" 93APP1STDLIBS=$(LB)$/libsal.so 94.ENDIF 95 96SHL1OBJS=$(SLO)$/t_osl_joinProcess.obj 97SHL1TARGET=tojp 98 99.IF "$(GUI)" == "WNT" 100APP1STDLIBS=$(KERNEL32LIB) 101SHL1STDLIBS=$(LB)$/isal.lib 102SHL1STDLIBS+=$(SOLARLIBDIR)$/cppunit.lib 103.ENDIF 104 105.IF "$(GUI)" == "UNX" 106SHL1STDLIBS=$(LB)$/libsal.so 107SHL1STDLIBS+=$(SOLARLIBDIR)$/libcppunit$(DLLPOSTFIX).a 108.ENDIF 109 110SHL1IMPLIB=i$(SHL1TARGET) 111SHL1DEF=$(MISC)$/$(SHL1TARGET).def 112DEF1NAME=$(SHL1TARGET) 113DEF1EXPORTFILE=export.exp 114.ENDIF 115 116.IF "$(TESTAPP)" == "getlocaleinfotest" 117 118 OBJFILES=$(OBJ)$/getlocaleinfotest.obj 119 120 APP1TARGET= getlitest 121 APP1OBJS=$(OBJFILES) 122 123 APP1STDLIBS=\ 124 $(KERNEL32LIB) 125 126 APP1LIBS=\ 127 $(LB)$/kernel9x.lib\ 128 $(LB)$/isal.lib 129 130 APP1DEPN=$(LB)$/isal.lib 131 132.ENDIF 133 134.IF "$(TESTAPP)" == "salstattest" 135 136 CFLAGS+= -DUSE_SAL_STATIC 137 138 OBJFILES= $(OBJ)$/salstattest.obj 139 140 APP1TARGET= salstattest 141 APP1OBJS= $(OBJFILES) 142 APP1STDLIBS=\ 143 $(LB)$/asal.lib\ 144 $(SHELL32LIB)\ 145 $(USER32LIB)\ 146 $(COMDLG32LIB)\ 147 $(ADVAPI32LIB) 148 149 APP1DEPN= $(LB)$/asal.lib 150 151.ENDIF # salstattest 152 153.IF "$(TESTAPP)" == "saldyntest" 154 155 OBJFILES= $(OBJ)$/saldyntest.obj 156 157 APP1TARGET= saldyntest 158 APP1OBJS= $(OBJFILES) 159 APP1STDLIBS=\ 160 $(LB)$/isal.lib\ 161 $(SHELL32LIB)\ 162 $(USER32LIB)\ 163 $(COMDLG32LIB)\ 164 $(ADVAPI32LIB) 165 166 APP1DEPN= $(LB)$/isal.lib 167 168.ENDIF # salstattest 169 170# 171# t_readline 172# 173.IF "$(TESTAPP)" == "t_readline" 174 175CFILES= t_readline.c 176OBJFILES= $(OBJ)$/t_readline.obj 177 178APP1TARGET= t_readline 179APP1OBJS= $(OBJFILES) 180APP1STDLIBS=$(SALLIB) 181APP1DEPN= $(SLB)$/sal.lib 182 183APP1RPATH=UREBIN 184 185.ENDIF # t_readline 186 187# 188# t_cipher 189# 190.IF "$(TESTAPP)" == "t_cipher" 191 192CFILES= t_cipher.c 193OBJFILES= $(OBJ)$/t_cipher.obj 194 195APP1TARGET= t_cipher 196APP1OBJS= $(OBJFILES) 197APP1STDLIBS=$(SALLIB) 198APP1DEPN= $(SLB)$/sal.lib 199 200.ENDIF # t_cipher 201 202# 203# t_digest. 204# 205.IF "$(TESTAPP)" == "t_digest" 206 207CFILES= t_digest.c 208OBJFILES= $(OBJ)$/t_digest.obj 209 210APP2TARGET= t_digest 211APP2OBJS= $(OBJFILES) 212APP2STDLIBS=$(SALLIB) 213APP2DEPN= $(SLB)$/sal.lib 214 215.ENDIF # t_digest 216 217# 218# t_random. 219# 220.IF "$(TESTAPP)" == "t_random" 221 222CFILES= t_random.c 223OBJFILES= $(OBJ)$/t_random.obj 224 225APP3TARGET= t_random 226APP3OBJS= $(OBJFILES) 227APP3STDLIBS=$(SALLIB) 228APP3DEPN= $(SLB)$/sal.lib 229 230.ENDIF # t_random 231 232# 233# t_layer. 234# 235.IF "$(TESTAPP)" == "t_layer" 236 237CFILES= t_layer.c 238OBJFILES= $(OBJ)$/t_layer.obj 239 240APP4TARGET= t_layer 241APP4OBJS= $(OBJFILES) 242APP4STDLIBS=$(SALLIB) 243APP4DEPN= $(SLB)$/sal.lib 244 245.ENDIF # t_layer 246 247# 248# t_tls. 249# 250.IF "$(TESTAPP)" == "t_tls" 251 252CFILES= t_tls.c 253OBJFILES= $(OBJ)$/t_tls.obj 254 255.IF "$(SALTLSLIB)" == "" 256 257.IF "$(GUI)" == "UNX" 258SALTLSLIB= -lsaltls2 259.ENDIF # unx 260 261.IF "$(GUI)" == "WNT" 262SALTLSLIB= $(SALTLSLIB) 263.ENDIF # wnt 264 265.ENDIF # saltlslib 266 267APP5TARGET= t_tls 268APP5OBJS= $(OBJFILES) 269APP5STDLIBS=$(SALTLSLIB) $(SALLIB) 270APP5DEPN= $(SLB)$/sal.lib 271 272.ENDIF # t_tls 273 274# 275# t_zip. 276# 277.IF "$(TESTAPP)" == "t_zip" 278 279CFILES= t_zip.c 280OBJFILES= $(OBJ)$/t_zip.obj 281 282.IF "$(SALZIPLIB)" == "" 283 284.IF "$(GUI)" == "UNX" 285SALZIPLIB= -lsalzip2 286.ENDIF # unx 287 288.IF "$(GUI)" == "WNT" 289SALZIPLIB= $(SALZIPLIB) 290.ENDIF # wnt 291 292.ENDIF # salziplib 293 294APP6TARGET= t_zip 295APP6OBJS= $(OBJFILES) 296APP6STDLIBS=$(SALZIPLIB) $(SALLIB) 297APP6DEPN= $(SLB)$/sal.lib 298 299.ENDIF # t_zip 300 301# 302# testfile 303# 304.IF "$(TESTAPP)" == "testfile" 305 306CXXFILES= testfile.cxx 307OBJFILES= $(OBJ)$/testfile.obj 308 309APP1TARGET= testfile 310APP1OBJS= $(OBJFILES) 311APP1STDLIBS=$(SALLIB) 312APP1DEPN= $(SLB)$/sal.lib 313 314.ENDIF # testfile 315 316# 317# testpipe 318# 319.IF "$(TESTAPP)" == "testpipe" 320 321CXXFILES= testpipe.cxx 322OBJFILES= $(OBJ)$/testpipe.obj 323 324APP2TARGET= testpipe 325APP2OBJS= $(OBJFILES) 326APP2STDLIBS=$(SALLIB) 327APP2DEPN= $(SLB)$/sal.lib 328 329.ENDIF # testpipe 330 331# 332# testpip2 333# 334.IF "$(TESTAPP)" == "testpip2" 335 336CXXFILES= testpip2.cxx 337OBJFILES= $(OBJ)$/testpip2.obj 338 339APP3TARGET= testpip2 340APP3OBJS= $(OBJFILES) 341APP3STDLIBS=$(SALLIB) 342APP3DEPN= $(SLB)$/sal.lib 343 344.ENDIF # testpip2 345 346# 347# testproc 348# 349.IF "$(TESTAPP)" == "testproc" 350 351CXXFILES= testproc.cxx 352OBJFILES= $(OBJ)$/testproc.obj 353 354APP4TARGET= testproc 355APP4OBJS= $(OBJFILES) 356APP4STDLIBS=$(SALLIB) 357APP4DEPN= $(SLB)$/sal.lib 358 359.ENDIF # testproc 360 361# 362# tgetpwnam 363# 364.IF "$(TESTAPP)" == "tgetpwnam" 365.IF "$(OS)"=="SCO" || "$(OS)"=="NETBSD" || "$(OS)"=="FREEBSD" 366 367CXXFILES= tgetpwnam.cxx 368OBJFILES= $(OBJ)$/tgetpwnam.obj 369 370APP5TARGET= tgetpwnam 371APP5OBJS= $(OBJFILES) 372APP5STDLIBS=$(SALLIB) 373APP5DEPN= $(SLB)$/sal.lib 374 375.ENDIF # (sco | netbsd | freebsd) 376.ENDIF # tgetpwname 377 378# --- Targets ------------------------------------------------------ 379 380.INCLUDE : target.mk 381 382 383