File: Imakefile

package info (click to toggle)
vnc4 4.1.1%2BX4.3.0-31
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 171,548 kB
  • ctags: 288,231
  • sloc: ansic: 2,205,256; cpp: 56,016; sh: 38,092; pascal: 13,773; asm: 12,656; tcl: 9,182; lisp: 7,831; perl: 3,338; makefile: 2,957; yacc: 2,902; objc: 2,698; xml: 2,614; python: 2,383; lex: 1,477; awk: 901; csh: 58; sed: 50
file content (63 lines) | stat: -rw-r--r-- 1,782 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
XCOMM $Xorg: Imakefile,v 1.3 2000/08/17 19:55:02 cpqbld Exp $

XCOMM where and which is the plugin to test
PLUGINDIR = ../plugin
   PLUGIN = -L$(PLUGINDIR) -lxrx

XCOMM where are motif includes and lib
#ifdef SunArchitecture
MOTIFINCDIR = /usr/dt/include
MOTIFLIBDIR = /usr/dt/lib
#else
MOTIFINCDIR = /usr/include
MOTIFLIBDIR = /usr/lib
#endif

XCOMM avoid build libraries and link against installed libraries
LDPRELIB =
LDPRELIBS =

XCOMM we need to link in the very same libraries as the plugin
#if !VendorHasX11R7libXext
#ifdef SunArchitecture
OPENWINLIBDIR = /usr/openwin/lib
OPENWINLIB = -L$(OPENWINLIBDIR)
#endif
#endif

 INCLUDES = -I$(MOTIFINCDIR) -I$(PLUGINDIR)/include
LOCAL_LIBRARIES = $(PLUGIN) -L$(MOTIFLIBDIR) -lXm \
                  $(OPENWINLIB) $(XTOOLONLYLIB) $(XLIB)
  DEFINES = -DXP_UNIX

XCOMM set debug and plugin trace on
CDEBUGFLAGS = -g -DPLUGIN_TRACE

XCOMM override default to get correct path
CCENVSETUP = \
     LD_RUN_PATH=$(USRLIBDIRPATH):$(OPENWINLIBDIR):$(MOTIFLIBDIR):$(PLUGINDIR)

EXTRA_LOAD_FLAGS =

        DEPLIBS = $(DEPXTOOLLIB) $(DEPXLIB)

SRCS = testplugin.c
OBJS = testplugin.o

#ifdef SGIArchitecture
/* Even though we want to build the distribution with -n32, Navigator 3.0 
 * binaries are still built on IRIX 5.2, which means we need to use the 
 * old style object format. This is a hack because this Imakefile gets
 * included too late to do this properly, that is to say that the
 * CCOPTIONS in Imake.tmpl gets the -n32 options that we don't want,
 * but the CCOPTIONS in Library.tmpl does get set correctly, and over-
 * rides the value. So it works, but it's not pretty.
 */
        CCOPTIONS = -xansi
#ifdef Mips64Architecture
     SHLIBLDFLAGS = -shared
#endif
               LD = ld
#endif

ComplexProgramTarget(testplugin);