1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28PRJ=..$/..$/.. 29PRJNAME=shell 30TARGET=exec 31 32LIBTARGET=NO 33ENABLE_EXCEPTIONS=TRUE 34 35COMP1TYPELIST=syssh 36 37TESTAPP1=urltest 38 39# --- Settings ----------------------------------------------------- 40 41.INCLUDE : settings.mk 42 43# --- Files -------------------------------------------------------- 44 45DLLPRE= 46 47SLOFILES=$(SLO)$/shellexec.obj\ 48 $(SLO)$/shellexecentry.obj 49 50SHL1OBJS=$(SLOFILES) 51 52SHL1TARGET=syssh.uno 53.IF "$(GUI)" == "OS2" 54SHL1IMPLIB=i$(TARGET) 55.ELSE 56SHL1IMPLIB= 57.ENDIF 58 59SHL1VERSIONMAP=$(SOLARENV)/src/component.map 60SHL1DEF=$(MISC)$/$(SHL1TARGET).def 61DEF1NAME=$(SHL1TARGET) 62 63SHL1STDLIBS=$(CPPULIB)\ 64 $(CPPUHELPERLIB)\ 65 $(SALLIB) 66SHL1LIBS= 67SHL1DEPN= 68 69.IF "$(test)" != "" 70 71APP1TARGET=$(TESTAPP1) 72APP1STDLIBS= $(SHL1STDLIBS) 73APP1OBJS= \ 74 $(SLO)$/shellexec.obj \ 75 $(SLO)$/$(APP1TARGET).obj 76 77.ENDIF # "$(test)" != "" 78 79 80# --- Targets ------------------------------------------------------ 81 82.INCLUDE : target.mk 83 84run_test : $(BIN)$/$(TESTAPP1).sh 85 dmake test=t 86 $(BIN)$/$(TESTAPP1) urltest.txt 87 88$(BIN)$/$(TESTAPP1).sh : $$(@:f) 89 $(COPY) $< $@ 90 -chmod +x $@ 91 92ALLTAR : $(MISC)/syssh.component 93 94$(MISC)/syssh.component .ERRREMOVE : $(SOLARENV)/bin/createcomponent.xslt \ 95 syssh.component 96 $(XSLTPROC) --nonet --stringparam uri \ 97 '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL1TARGETN:f)' -o $@ \ 98 $(SOLARENV)/bin/createcomponent.xslt syssh.component 99