Commit | Line | Data |
---|---|---|
a09e091a JB |
1 | AM_CPPFLAGS = \ |
2 | -I$(srcdir)/.. \ | |
3 | -DBUILD_DATE=\"$(BUILD_DATE)\" \ | |
4 | -DXSERVER_VERSION=\"$(VERSION)\" \ | |
5 | -DX11BINDIR=\"$(bindir)\" | |
6 | ||
7 | AM_CFLAGS = $(DIX_CFLAGS) | |
8 | ||
9 | x11appdir = $(APPLE_APPLICATIONS_DIR)/$(APPLE_APPLICATION_NAME).app/Contents/MacOS | |
10 | x11app_PROGRAMS = X11.bin | |
11 | ||
12 | dist_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 | |
19 | dist_X11_bin_SOURCES += $(top_srcdir)/os/strndup.c | |
20 | #endif | |
21 | ||
22 | nodist_X11_bin_SOURCES = \ | |
23 | mach_startupServer.c \ | |
24 | mach_startupUser.c | |
25 | ||
26 | X11_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. | |
36 | X11_bin_LDADD = $(X11_bin_DEPENDENCIES) $(XSERVER_SYS_LIBS) | |
37 | ||
38 | X11_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 | ||
47 | if GLX | |
48 | X11_bin_DEPENDENCIES += \ | |
49 | $(top_builddir)/hw/xquartz/GL/libCGLCore.la \ | |
50 | $(top_builddir)/glx/libglx.la | |
51 | ||
52 | X11_bin_LDFLAGS += \ | |
53 | -Wl,-framework,OpenGL | |
54 | endif | |
55 | ||
56 | if XQUARTZ_SPARKLE | |
57 | X11_bin_LDFLAGS += \ | |
58 | -Wl,-framework,Sparkle | |
59 | endif | |
60 | ||
61 | if RECORD | |
62 | X11_bin_DEPENDENCIES += \ | |
63 | $(top_builddir)/record/librecord.la | |
64 | endif | |
65 | ||
66 | bin_PROGRAMS = Xquartz | |
67 | ||
68 | dist_Xquartz_SOURCES = \ | |
69 | stub.c \ | |
70 | launchd_fd.c | |
71 | ||
72 | nodist_Xquartz_SOURCES = \ | |
73 | mach_startupUser.c | |
74 | ||
75 | Xquartz_LDFLAGS = \ | |
76 | -Wl,-framework,CoreServices | |
77 | ||
78 | BUILT_SOURCES = \ | |
79 | mach_startupServer.c \ | |
80 | mach_startupUser.c \ | |
81 | mach_startupServer.h \ | |
82 | mach_startup.h | |
83 | ||
84 | CLEANFILES = \ | |
85 | $(BUILT_SOURCES) | |
86 | ||
87 | $(BUILT_SOURCES): $(srcdir)/mach_startup.defs | |
88 | mig -sheader mach_startupServer.h $(srcdir)/mach_startup.defs | |
89 | ||
90 | EXTRA_DIST = \ | |
91 | launchd_fd.h \ | |
92 | mach_startup.defs \ | |
93 | mach_startup_types.h |