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=..$/..$/.. 25PRJNAME=extensions 26TARGET=msidl 27 28# --- Settings ---------------------------------- 29 30.INCLUDE : settings.mk 31 32.IF "$(GUI)" == "WNT" && "$(DISABLE_ACTIVEX)"=="" 33 34# --- Targets ---------------------------------- 35 36ALL : $(MISC)$/activex_component 37 38MTL=midl.exe 39MTL_PROJ= 40 41SOURCE=so_activex.idl 42 43MTL_SWITCHES=-tlb $(MISC)$/so_activex.tlb -h $(MISC)$/so_activex.h -iid $(MISC)$/so_activex_i.c -dlldata $(MISC)$/so_activex_dll.c -proxy $(MISC)$/so_activex_p.c -Oicf 44 45.IF "$(COM)"=="GCC" 46MTL_SWITCHES+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell @cygpath -w $(PSDK_HOME)/include)" 47 48$(MISC)$/activex_component : $(SOURCE) 49 $(MTL) $(MTL_SWITCHES) -I $(shell @cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE) 50.ELSE 51$(MISC)$/activex_component : $(SOURCE) 52 $(WRAPCMD) $(MTL) $(MTL_SWITCHES) $(INCLUDE) $(SOURCE) && $(TOUCH) $@ 53.ENDIF 54 55.ENDIF 56 57.INCLUDE : target.mk 58 59