]> git.sesse.net Git - rdpsrv/blob - Xserver/programs/Xserver/dix/Imakefile
287f7ec8e1b06430c911dbbdd90f02a600ff5676
[rdpsrv] / Xserver / programs / Xserver / dix / Imakefile
1 XCOMM $XConsortium: Imakefile /main/52 1996/12/02 10:20:03 lehors $
2 XCOMM $XFree86: xc/programs/Xserver/dix/Imakefile,v 3.8 1997/01/08 20:32:47 dawes Exp $
3 #include <Server.tmpl>
4
5 #if PrintOnlyServer
6 XPSRC = xpstubs.c
7 XPOBJ = xpstubs.o
8 #endif
9
10 #if !HasFfs
11 FFS_SRC = ffs.c
12 FFS_OBJ = ffs.o
13 #endif
14
15 SRCS = atom.c colormap.c cursor.c devices.c dispatch.c dixutils.c events.c \
16         extension.c gc.c globals.c glyphcurs.c grabs.c \
17         main.c property.c resource.c swaprep.c swapreq.c \
18         tables.c window.c initatoms.c dixfonts.c privates.c pixmap.c $(FFS_SRC)
19 OBJS = atom.o colormap.o cursor.o devices.o dispatch.o dixutils.o events.o \
20         extension.o gc.o globals.o glyphcurs.o grabs.o \
21         main.o property.o resource.o swaprep.o swapreq.o \
22         tables.o window.o initatoms.o dixfonts.o privates.o pixmap.o $(FFS_OBJ)
23
24     INCLUDES = -I../include -I$(XINCLUDESRC) -I$(FONTINCSRC) -I$(EXTINCSRC)
25     LINTLIBS = ../os/llib-los.ln
26
27 /*
28  * The following configuration parameters may be set in the appropriate
29  * .macros files or site.def in the directory util/imake.includes/:
30  *
31  *     DefaultFontPath                COMPILEDDEFAULTFONTPATH
32  *     DefaultRGBDatabase             RGB_DB
33  *
34  * The sample util/imake.includes/Imake.tmpl will provide generic defaults.
35  * The values in site.h are simply a last line of defense and should not be
36  * changed.
37  */
38
39 #ifdef DefaultFontPath
40 DEFAULTFONTPATH = DefaultFontPath
41 SITE_FONT_PATH = -DCOMPILEDDEFAULTFONTPATH=\"$(DEFAULTFONTPATH)\"
42 #endif
43
44 #ifdef DefaultRGBDatabase
45 DEFAULTRGBDATABASE = DefaultRGBDatabase
46    SITE_RGB_DB = -DRGB_DB=\"$(DEFAULTRGBDATABASE)\"
47 #endif
48
49 #ifdef DefaultDisplayClass
50 DEFAULTDISPLAYCLASS = DefaultDisplayClass
51    SITE_DISPLAY_CLASS = -DCOMPILEDDISPLAYCLASS=\"$(DEFAULTDISPLAYCLASS)\"
52 #endif
53
54 #ifdef XVendorString
55 VENDORSTRING = XVendorString
56    VENDOR_STRING = -DVENDOR_STRING=\"$(VENDORSTRING)\"
57 #endif
58
59 #ifdef XVendorRelease
60 VENDORRELEASE = XVendorRelease
61    VENDOR_RELEASE = -DVENDOR_RELEASE=$(VENDORRELEASE)
62 #endif
63
64 #if HasKrb5
65          K5DEFS = Krb5Defines
66 #endif
67
68 SITE_DEFINES = $(SITE_FONT_PATH) $(SITE_RGB_DB) $(SITE_DISPLAY_CLASS)
69
70 VENDOR_DEFINES = $(VENDOR_STRING) $(VENDOR_RELEASE)
71
72 NormalLibraryObjectRule()
73 NormalLibraryTarget(dix,$(OBJS))
74 LintLibraryTarget(dix,$(SRCS) $(XPSRC))
75 NormalLintTarget($(SRCS) $(XPSRC))
76
77 SpecialCObjectRule(globals,$(ICONFIGFILES),$(SITE_DEFINES))
78 SpecialCObjectRule(tables,$(ICONFIGFILES),$(K5DEFS))
79 SpecialCObjectRule(dispatch,$(ICONFIGFILES),$(K5DEFS))
80 SpecialCObjectRule(main,$(ICONFIGFILES),$(VENDOR_DEFINES))
81 SpecialCObjectRule(pixmap,$(ICONFIGFILES),$(_NOOP_))
82 SpecialCObjectRule(privates,$(ICONFIGFILES),$(_NOOP_))
83
84 #if PrintOnlyServer
85 NormalLibraryTarget(xpstubs,$(XPOBJ))
86 #endif
87
88 InstallLinkKitLibrary(dix,$(LINKKITDIR)/lib)
89 InstallLinkKitLibrary(xpstubs,$(LINKKITDIR)/lib)
90
91 DependTarget()