File: Imakefile

package info (click to toggle)
xfree86 3.3.2.3-2
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 168,984 kB
  • ctags: 121,965
  • sloc: ansic: 1,157,712; sh: 14,822; asm: 14,676; tcl: 8,247; cpp: 4,317; yacc: 2,705; perl: 711; awk: 393; lex: 383; makefile: 353; sed: 57; csh: 5
file content (63 lines) | stat: -rw-r--r-- 1,786 bytes parent folder | download | duplicates (2)
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 $XConsortium: Imakefile /main/9 1996/12/06 10:28:04 kaleb $

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);