Makefile.am 2.9 KB
Newer Older
1
2
include $(top_srcdir)/cpprules.in

Kevin E Martin's avatar
Kevin E Martin committed
3
4
5
6
if DRI
DRI_SUBDIR = dri
endif

7
8
9
10
if XF86UTILS
XF86UTILS_SUBDIR = utils
endif

11
12
13
14
15
if MFB
MFB_SUBDIR = xf1bpp xf4bpp
endif

if CFB
Adam Jackson's avatar
Adam Jackson committed
16
CFB_SUBDIR = xf8_32bpp
17
18
endif

19
20
DOC_SUBDIR = doc

Lars Knoll's avatar
Lars Knoll committed
21
SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support parser rac \
22
	  ramdac shadowfb vbe vgahw xaa $(MFB_SUBDIR) $(CFB_SUBDIR) \
Adam Jackson's avatar
Adam Jackson committed
23
	  xf8_16bpp loader dixmods exa modes \
24
	  $(DRI_SUBDIR) $(XF86UTILS_SUBDIR) $(DOC_SUBDIR)
Daniel Stone's avatar
Daniel Stone committed
25

Kevin E Martin's avatar
Kevin E Martin committed
26
27
DIST_SUBDIRS = common ddc dummylib i2c x86emu int10 fbdevhw os-support \
               parser rac ramdac shadowfb vbe vgahw xaa xf1bpp xf4bpp \
28
               xf8_16bpp xf8_32bpp loader dixmods dri exa modes \
29
	       utils doc
Kevin E Martin's avatar
Kevin E Martin committed
30

Daniel Stone's avatar
Daniel Stone committed
31
32
bin_PROGRAMS = Xorg

33
AM_CFLAGS = $(DIX_CFLAGS) @XORG_CFLAGS@
34
35
INCLUDES = @XORG_INCS@ 

36
Xorg_SOURCES = xorg.c
Daniel Stone's avatar
Daniel Stone committed
37

38
39
40
41
42
43
44
45
# libxorgos and libcommon need symbols from each other
noinst_LTLIBRARIES = libosandcommon.la
libosandcommon_la_SOURCES = osandcommon.c
libosandcommon_la_LIBADD = \
            os-support/libxorgos.la \
            common/libcommon.la

osandcommon.c xorg.c:
Daniel Stone's avatar
Daniel Stone committed
46
47
	touch $@

48
DISTCLEANFILES = osandcommon.c xorg.c
Daniel Stone's avatar
Daniel Stone committed
49
50

XORG_LIBS = \
51
            $(XSERVER_LIBS) \
Daniel Stone's avatar
Daniel Stone committed
52
            common/libinit.a \
53
            loader/libloader.a \
54
            libosandcommon.la \
55
	    rac/librac.a \
56
            parser/libxf86config.a \
57
	    dixmods/libdixmods.la \
58
	    modes/libxf86modes.a \
59
	    ramdac/libramdac.a \
60
61
	    ddc/libddc.a \
	    i2c/libi2c.a \
62
	    dixmods/libxorgxkb.la \
63
64
65
66
	    $(top_builddir)/mi/libmi.la \
	    $(top_builddir)/os/libos.la \
	    @XORG_LIBS@ \
	    dixmods/libxorgxkb.la
Daniel Stone's avatar
Daniel Stone committed
67

68
69
Xorg_DEPENDENCIES = $(XORG_LIBS)
Xorg_LDADD = $(XORG_LIBS) $(XORG_SYS_LIBS) $(XSERVER_SYS_LIBS)
Daniel Stone's avatar
Daniel Stone committed
70

71
Xorg_LDFLAGS = $(LD_EXPORT_SYMBOLS_FLAG)
72

73
BUILT_SOURCES = xorg.conf.example
74
DISTCLEANFILES += xorg.conf.example xorg.conf.example.pre
75
EXTRA_DIST = xorgconf.cpp
76
77
78
79
80

if SOLARIS_ASM_INLINE
# Needs to be built before any files are compiled when using Sun compilers
# so in*/out* inline definitions are properly processed.

81
BUILT_SOURCES += os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il
82

83
84
os-support/solaris/solaris-@SOLARIS_INOUT_ARCH@.il:
	cd os-support/solaris ; make solaris-@SOLARIS_INOUT_ARCH@.il
85
endif
86

87
# do not use $(mkdir_p) if you want automake 1.7 to work
88
install-data-local:
89
	mkdir -p $(DESTDIR)$(logdir)
90

91

92
install-exec-local: install-binPROGRAMS
93
	(cd $(DESTDIR)$(bindir) && rm -f X && ln -s Xorg X)
94
if INSTALL_SETUID
95
96
	chown root $(DESTDIR)$(bindir)/Xorg
	chmod u+s $(DESTDIR)$(bindir)/Xorg
97
98
endif

99
100
101
optionsdir = $(libdir)/X11
dist_options_DATA = Options

102
103
104
105
106
107
108
109
110
CPP_FILES_FLAGS = \
	-DLOCALFONTPATH="\"$(BASE_FONT_PATH)/local\"" \
	-DMISCFONTPATH="\"$(BASE_FONT_PATH)/misc\"" \
	-DT1FONTPATH="\"$(BASE_FONT_PATH)/Type1\"" \
	-DTRUETYPEFONTPATH="\"$(BASE_FONT_PATH)/TTF\"" \
	-DDPI75FONTPATH="\"$(BASE_FONT_PATH)/75dpi\"" \
	-DDPI100FONTPATH="\"$(BASE_FONT_PATH)/100dpi\"" \
	-DMODULEPATH=\"$(DEFAULT_MODULE_PATH)\"

111
112
relink:
	rm -f Xorg && $(MAKE) Xorg
113
114

xorg.conf.example.pre: xorgconf.cpp
115
	cp $(srcdir)/xorgconf.cpp $@