Imported Upstream version 1.15.1
[deb_xorg-server.git] / hw / xquartz / mach-startup / Makefile.am
CommitLineData
a09e091a
JB
1AM_CPPFLAGS = \
2 -I$(srcdir)/.. \
3 -DBUILD_DATE=\"$(BUILD_DATE)\" \
4 -DXSERVER_VERSION=\"$(VERSION)\" \
5 -DX11BINDIR=\"$(bindir)\"
6
7AM_CFLAGS = $(DIX_CFLAGS)
8
9x11appdir = $(APPLE_APPLICATIONS_DIR)/$(APPLE_APPLICATION_NAME).app/Contents/MacOS
10x11app_PROGRAMS = X11.bin
11
12dist_X11_bin_SOURCES = \
13 bundle-main.c
14
15# strndup(3) was added in Mac OS X 10.7, but we do this unconditionally to deal
16# with the case where we build on Lion but target Snow Leopard as the minimum
17# OS version.
18#if NEED_STRNDUP
19dist_X11_bin_SOURCES += $(top_srcdir)/os/strndup.c
20#endif
21
22nodist_X11_bin_SOURCES = \
23 mach_startupServer.c \
24 mach_startupUser.c
25
26X11_bin_DEPENDENCIES = \
27 $(top_builddir)/hw/xquartz/libXquartz.la \
28 $(top_builddir)/hw/xquartz/xpr/libXquartzXpr.la \
29 $(top_builddir)/dix/dixfonts.lo \
30 $(top_builddir)/miext/rootless/librootless.la \
31 $(top_builddir)/hw/xquartz/pbproxy/libxpbproxy.la \
32 $(XQUARTZ_LIBS) $(XSERVER_LIBS)
33
34# $(XSERVER_SYS_LIBS) is placed here in order to set command line ordering
35# to work around build issues on Tiger.
36X11_bin_LDADD = $(X11_bin_DEPENDENCIES) $(XSERVER_SYS_LIBS)
37
38X11_bin_LDFLAGS = \
39 -lXplugin \
40 -XCClinker -Objc \
41 -Wl,-u,_miDCInitialize \
42 -Wl,-framework,Carbon \
43 -Wl,-framework,Cocoa \
44 -Wl,-framework,CoreAudio \
45 -Wl,-framework,IOKit
46
47if GLX
48X11_bin_DEPENDENCIES += \
49 $(top_builddir)/hw/xquartz/GL/libCGLCore.la \
50 $(top_builddir)/glx/libglx.la
51
52X11_bin_LDFLAGS += \
53 -Wl,-framework,OpenGL
54endif
55
56if XQUARTZ_SPARKLE
57X11_bin_LDFLAGS += \
58 -Wl,-framework,Sparkle
59endif
60
61if RECORD
62X11_bin_DEPENDENCIES += \
63 $(top_builddir)/record/librecord.la
64endif
65
66bin_PROGRAMS = Xquartz
67
68dist_Xquartz_SOURCES = \
69 stub.c \
70 launchd_fd.c
71
72nodist_Xquartz_SOURCES = \
73 mach_startupUser.c
74
75Xquartz_LDFLAGS = \
76 -Wl,-framework,CoreServices
77
78BUILT_SOURCES = \
79 mach_startupServer.c \
80 mach_startupUser.c \
81 mach_startupServer.h \
82 mach_startup.h
83
84CLEANFILES = \
85 $(BUILT_SOURCES)
86
87$(BUILT_SOURCES): $(srcdir)/mach_startup.defs
88 mig -sheader mach_startupServer.h $(srcdir)/mach_startup.defs
89
90EXTRA_DIST = \
91 launchd_fd.h \
92 mach_startup.defs \
93 mach_startup_types.h