masterfix DEV300: #i10000# build fix
[LibreOffice.git] / extensions / source / plugin / unx / makefile.mk
blob669aaa556e62a5e75c053325c2e3219f6663dc23
1 #*************************************************************************
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 #
5 # Copyright 2000, 2010 Oracle and/or its affiliates.
7 # OpenOffice.org - a multi-platform office productivity suite
9 # This file is part of OpenOffice.org.
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.
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).
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.
26 #*************************************************************************
27 PRJ=..$/..$/..
29 PRJNAME=extensions
30 TARGET=plunx
31 TARGETTYPE=CUI
32 ENABLE_EXCEPTIONS=TRUE
34 .INCLUDE : ..$/util$/makefile.pmk
36 .IF "$(GUIBASE)"=="aqua"
37 dummy:
38 @echo "Nothing to build for GUIBASE aqua."
40 .ELSE
42 # --- Files --------------------------------------------------------
44 INCPRE+=-I$(SOLARINCDIR)$/mozilla$/plugin
45 .IF "$(SOLAR_JAVA)" != ""
46 INCPRE+=-I$(SOLARINCDIR)$/mozilla$/java
47 INCPRE+=-I$(SOLARINCDIR)$/mozilla$/nspr
48 CDEFS+=-DOJI
49 .ENDIF
51 .IF "$(WITH_MOZILLA)" != "NO"
53 .IF "$(DISABLE_XAW)" == "TRUE"
54 CDEFS+=-DDISABLE_XAW
55 .ENDIF
57 SLOFILES=\
58 $(SLO)$/nppapi.obj \
59 $(SLO)$/sysplug.obj \
60 $(SLO)$/mediator.obj \
61 $(SLO)$/plugcon.obj \
62 $(SLO)$/unxmgr.obj
64 OBJFILES=\
65 $(OBJ)$/npwrap.obj \
66 $(OBJ)$/npnapi.obj \
67 $(OBJ)$/mediator.obj \
68 $(OBJ)$/plugcon.obj
70 APP1TARGET=pluginapp.bin
71 APP1OBJS=$(OBJFILES)
72 APP1STDLIBS=\
73 $(VOSLIB) \
74 $(SALLIB)
75 .IF "$(OS)"=="SOLARIS" || "$(OS)"=="SCO" || "$(OS)"=="HPUX"
76 APP1STDLIBS+=-lXm -lXt $(X11LINK_DYNAMIC) -ldl
77 .ELSE
78 .IF "$(DISABLE_XAW)" != "TRUE"
79 APP1STDLIBS+=-lXaw
80 .ENDIF
81 .IF "$(OS)"=="FREEBSD" || "$(OS)"=="NETBSD"
82 APP1STDLIBS+= -lXt -lXext -lX11
83 .ELSE
84 APP1STDLIBS+= -lXt $(X11LINK_DYNAMIC) -ldl
85 .ENDIF
86 .ENDIF
88 .IF "$(ENABLE_GTK)" == "TRUE"
89 # libs for gtk plugin
90 APP1STDLIBS+=$(PKGCONFIG_LIBS:s/ -lpangoxft-1.0//)
91 # hack for faked SO environment
92 .IF "$(PKGCONFIG_ROOT)"!=""
93 .IF "$(OS)" == "SOLARIS"
94 # don't ask, it's ugly
95 DIRECT :=-z nodefs $(DIRECT)
96 .ENDIF
97 .ENDIF # "$(PKGCONFIG_ROOT)"!=""
98 .ENDIF
101 APP1DEF= $(MISC)$/$(TARGET).def
103 .ENDIF # $(WITH_MOZILLA) != "NO"
105 .ENDIF # $(GUIBASE)==aqua
107 # --- Targets ------------------------------------------------------
109 .INCLUDE : target.mk