2009-09-06 13:44:18 -06:00
|
|
|
AM_CPPFLAGS = \
|
2011-11-05 07:32:40 -06:00
|
|
|
-I$(srcdir)/.. \
|
2009-09-06 13:44:18 -06:00
|
|
|
-DBUILD_DATE=\"$(BUILD_DATE)\" \
|
|
|
|
-DXSERVER_VERSION=\"$(VERSION)\" \
|
|
|
|
-DX11BINDIR=\"$(bindir)\"
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
AM_CFLAGS = $(DIX_CFLAGS)
|
|
|
|
|
|
|
|
x11appdir = $(APPLE_APPLICATIONS_DIR)/$(APPLE_APPLICATION_NAME).app/Contents/MacOS
|
2009-09-06 13:44:18 -06:00
|
|
|
x11app_PROGRAMS = X11.bin
|
|
|
|
|
|
|
|
dist_X11_bin_SOURCES = \
|
|
|
|
bundle-main.c
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
# strndup(3) was added in Mac OS X 10.7, but we do this unconditionally to deal
|
|
|
|
# with the case where we build on Lion but target Snow Leopard as the minimum
|
|
|
|
# OS version.
|
|
|
|
#if NEED_STRNDUP
|
|
|
|
dist_X11_bin_SOURCES += $(top_srcdir)/os/strndup.c
|
|
|
|
#endif
|
|
|
|
|
2009-09-06 13:44:18 -06:00
|
|
|
nodist_X11_bin_SOURCES = \
|
|
|
|
mach_startupServer.c \
|
|
|
|
mach_startupUser.c
|
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
X11_bin_DEPENDENCIES = \
|
2009-09-06 13:44:18 -06:00
|
|
|
$(top_builddir)/hw/xquartz/libXquartz.la \
|
|
|
|
$(top_builddir)/hw/xquartz/xpr/libXquartzXpr.la \
|
|
|
|
$(top_builddir)/dix/dixfonts.lo \
|
|
|
|
$(top_builddir)/miext/rootless/librootless.la \
|
|
|
|
$(top_builddir)/hw/xquartz/pbproxy/libxpbproxy.la \
|
2011-11-05 07:32:40 -06:00
|
|
|
$(XQUARTZ_LIBS) $(XSERVER_LIBS)
|
2009-09-06 13:44:18 -06:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
# $(XSERVER_SYS_LIBS) is placed here in order to set command line ordering
|
|
|
|
# to work around build issues on Tiger.
|
|
|
|
X11_bin_LDADD = $(X11_bin_DEPENDENCIES) $(XSERVER_SYS_LIBS)
|
|
|
|
|
2009-09-06 13:44:18 -06:00
|
|
|
X11_bin_LDFLAGS = \
|
2012-06-10 07:21:05 -06:00
|
|
|
-lXplugin \
|
2009-09-06 13:44:18 -06:00
|
|
|
-XCClinker -Objc \
|
|
|
|
-Wl,-u,_miDCInitialize \
|
|
|
|
-Wl,-framework,Carbon \
|
|
|
|
-Wl,-framework,Cocoa \
|
|
|
|
-Wl,-framework,CoreAudio \
|
|
|
|
-Wl,-framework,IOKit
|
|
|
|
|
|
|
|
if GLX
|
2012-06-10 07:21:05 -06:00
|
|
|
X11_bin_DEPENDENCIES += \
|
2009-09-06 13:44:18 -06:00
|
|
|
$(top_builddir)/hw/xquartz/GL/libCGLCore.la \
|
2019-07-27 01:57:06 -06:00
|
|
|
$(top_builddir)/glx/libglxvnd.la \
|
2009-09-06 13:44:18 -06:00
|
|
|
$(top_builddir)/glx/libglx.la
|
|
|
|
|
|
|
|
X11_bin_LDFLAGS += \
|
|
|
|
-Wl,-framework,OpenGL
|
|
|
|
endif
|
|
|
|
|
2010-07-27 13:02:24 -06:00
|
|
|
if XQUARTZ_SPARKLE
|
|
|
|
X11_bin_LDFLAGS += \
|
|
|
|
-Wl,-framework,Sparkle
|
|
|
|
endif
|
|
|
|
|
2009-09-06 13:44:18 -06:00
|
|
|
if RECORD
|
2012-06-10 07:21:05 -06:00
|
|
|
X11_bin_DEPENDENCIES += \
|
2009-09-06 13:44:18 -06:00
|
|
|
$(top_builddir)/record/librecord.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
bin_PROGRAMS = Xquartz
|
|
|
|
|
|
|
|
dist_Xquartz_SOURCES = \
|
|
|
|
stub.c \
|
|
|
|
launchd_fd.c
|
|
|
|
|
|
|
|
nodist_Xquartz_SOURCES = \
|
|
|
|
mach_startupUser.c
|
|
|
|
|
|
|
|
Xquartz_LDFLAGS = \
|
|
|
|
-Wl,-framework,CoreServices
|
|
|
|
|
2019-07-27 01:57:06 -06:00
|
|
|
if XQUARTZ
|
|
|
|
|
2009-09-06 13:44:18 -06:00
|
|
|
BUILT_SOURCES = \
|
|
|
|
mach_startupServer.c \
|
|
|
|
mach_startupUser.c \
|
|
|
|
mach_startupServer.h \
|
|
|
|
mach_startup.h
|
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
$(BUILT_SOURCES)
|
|
|
|
|
|
|
|
$(BUILT_SOURCES): $(srcdir)/mach_startup.defs
|
|
|
|
mig -sheader mach_startupServer.h $(srcdir)/mach_startup.defs
|
|
|
|
|
2019-07-27 01:57:06 -06:00
|
|
|
endif
|
|
|
|
|
2009-09-06 13:44:18 -06:00
|
|
|
EXTRA_DIST = \
|
|
|
|
launchd_fd.h \
|
|
|
|
mach_startup.defs \
|
|
|
|
mach_startup_types.h
|