summaryrefslogtreecommitdiff
path: root/extensions/source/activex
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2007-03-26 12:05:46 +0000
committerVladimir Glazounov <vg@openoffice.org>2007-03-26 12:05:46 +0000
commitdfa11b91e65ad4cb354c05eed684c0ce729934c6 (patch)
treec57fa8cdeb4a5b1a32e14be958aac6b4e62ce9f9 /extensions/source/activex
parente104c3af5d0ac1f6e9d4cb44a48e3938852ec0d6 (diff)
INTEGRATION: CWS mingwport03 (1.4.348); FILE MERGED
2006/11/07 17:49:20 vg 1.4.348.2: RESYNC: (1.4-1.6); FILE MERGED 2006/09/06 14:08:41 vg 1.4.348.1: #i53572# MinGW port
Diffstat (limited to 'extensions/source/activex')
-rw-r--r--extensions/source/activex/msidl/makefile.mk15
1 files changed, 11 insertions, 4 deletions
diff --git a/extensions/source/activex/msidl/makefile.mk b/extensions/source/activex/msidl/makefile.mk
index 1e83bbf03cd1..c0a0fdd7ab9a 100644
--- a/extensions/source/activex/msidl/makefile.mk
+++ b/extensions/source/activex/msidl/makefile.mk
@@ -1,12 +1,12 @@
#**************************************************************************
#
-# $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/extensions/source/activex/msidl/makefile.mk,v 1.6 2006-10-30 08:08:42 rt Exp $
+# $Header: /zpool/svn/migration/cvs_rep_09_09_08/code/extensions/source/activex/msidl/makefile.mk,v 1.7 2007-03-26 13:05:46 vg Exp $
#
# =========================================================================
#
-# $Date: 2006-10-30 08:08:42 $
-# $Author: rt $
-# $Revision: 1.6 $
+# $Date: 2007-03-26 13:05:46 $
+# $Author: vg $
+# $Revision: 1.7 $
#
# =========================================================================
#
@@ -38,8 +38,15 @@ SOURCE=so_activex.idl
MTL_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
+.IF "$(COM)"=="GCC"
+MTL_SWITCHES+=-cpp_cmd gcc -cpp_opt "-x c -E -D__stdcall= -D_stdcall= -nostdinc -I $(shell cygpath -w $(PSDK_HOME)/include)"
+
+$(MISC)$/activex_component : $(SOURCE)
+ $(MTL) $(MTL_SWITCHES) -I $(shell cygpath -w $(PSDK_HOME)/include|sed 's#\\#\\\\#g') $(SOURCE)
+.ELSE
$(MISC)$/activex_component : $(SOURCE)
$(WRAPCMD) $(MTL) $(MTL_SWITCHES) $(INCLUDE) $(SOURCE) && $(TOUCH) $@
+.ENDIF
.ENDIF