330 lines
9.9 KiB
Makefile
330 lines
9.9 KiB
Makefile
noinst_LIBRARIES = libdarwinShared.a
|
|
libdarwin_XINPUT_SRCS = darwinXinput.c
|
|
|
|
# -O2 inexplicably causes quartzKeyboard.o to break?!
|
|
AM_CFLAGS = @XORG_CFLAGS@
|
|
INCLUDES = @XORG_INCS@ -I../../miext/rootless
|
|
|
|
DEFS = @DEFS@ -DUSE_NEW_CLUT
|
|
|
|
if XQUARTZ
|
|
XQUARTZ_SUBDIRS = bundle quartz
|
|
endif
|
|
|
|
SUBDIRS = \
|
|
iokit \
|
|
$(XQUARTZ_SUBDIRS) \
|
|
utils \
|
|
.
|
|
|
|
darwinappdir = /Applications/Utilities/XDarwin.app
|
|
|
|
libdarwinShared_a_SOURCES = darwin.c \
|
|
darwinEvents.c \
|
|
darwinKeyboard.c \
|
|
$(darwin_XINPUT_SRCS)
|
|
|
|
bin_PROGRAMS = Xquartz
|
|
XDarwin_SOURCES = \
|
|
$(top_srcdir)/fb/fbcmap.c \
|
|
$(top_srcdir)/mi/miinitext.c \
|
|
$(top_srcdir)/Xi/stubs.c
|
|
|
|
Xquartz_SOURCES = \
|
|
$(top_srcdir)/fb/fbcmap.c \
|
|
$(top_srcdir)/mi/miinitext.c \
|
|
$(top_srcdir)/Xi/stubs.c \
|
|
apple/X11Application.m \
|
|
apple/X11Controller.m \
|
|
quartz/applewm.c \
|
|
quartz/keysym2ucs.c \
|
|
quartz/pseudoramiX.c \
|
|
quartz/quartz.c \
|
|
quartz/quartzAudio.c \
|
|
quartz/quartzCocoa.m \
|
|
quartz/quartzKeyboard.c \
|
|
quartz/quartzPasteboard.c \
|
|
quartz/quartzStartup.c \
|
|
quartz/xpr/appledri.c \
|
|
quartz/xpr/dri.c \
|
|
quartz/xpr/xprAppleWM.c \
|
|
quartz/xpr/xprCursor.c \
|
|
quartz/xpr/xprFrame.c \
|
|
quartz/xpr/xprScreen.c \
|
|
quartz/xpr/x-hash.c \
|
|
quartz/xpr/x-hook.c \
|
|
quartz/xpr/x-list.c
|
|
|
|
XDarwin_LDADD = \
|
|
$(top_builddir)/dix/dixfonts.lo \
|
|
$(top_builddir)/dix/libdix.la \
|
|
$(top_builddir)/os/libos.la \
|
|
./libdarwinShared.a \
|
|
./iokit/libiokit.a \
|
|
$(top_builddir)/dix/libxpstubs.la \
|
|
$(top_builddir)/miext/shadow/libshadow.la \
|
|
$(top_builddir)/fb/libfb.la \
|
|
$(top_builddir)/composite/libcomposite.la \
|
|
$(top_builddir)/damageext/libdamageext.la \
|
|
$(top_builddir)/miext/damage/libdamage.la \
|
|
$(top_builddir)/xfixes/libxfixes.la \
|
|
$(top_builddir)/miext/cw/libcw.la \
|
|
$(top_builddir)/Xext/libXext.la \
|
|
$(top_builddir)/xkb/libxkb.la \
|
|
$(top_builddir)/xkb/libxkbstubs.la \
|
|
$(top_builddir)/Xi/libXi.la \
|
|
$(top_builddir)/dbe/libdbe.la \
|
|
$(top_builddir)/record/librecord.la \
|
|
$(top_builddir)/XTrap/libxtrap.la \
|
|
$(XGLX_LIBS) \
|
|
$(top_builddir)/miext/rootless/librootless.la \
|
|
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
|
$(top_builddir)/miext/rootless/accel/librlAccel.la \
|
|
$(XSERVER_LIBS) -lXplugin
|
|
|
|
Xquartz_LDADD = \
|
|
$(top_builddir)/dix/dixfonts.lo \
|
|
$(top_builddir)/dix/libdix.la \
|
|
$(top_builddir)/os/libos.la \
|
|
./libdarwinShared.a \
|
|
$(top_builddir)/dix/libxpstubs.la \
|
|
$(top_builddir)/miext/shadow/libshadow.la \
|
|
$(top_builddir)/fb/libfb.la \
|
|
$(top_builddir)/mi/libmi.la \
|
|
$(top_builddir)/composite/libcomposite.la \
|
|
$(top_builddir)/damageext/libdamageext.la \
|
|
$(top_builddir)/miext/damage/libdamage.la \
|
|
$(top_builddir)/xfixes/libxfixes.la \
|
|
$(top_builddir)/miext/cw/libcw.la \
|
|
$(top_builddir)/Xext/libXext.la \
|
|
$(top_builddir)/xkb/libxkb.la \
|
|
$(top_builddir)/xkb/libxkbstubs.la \
|
|
$(top_builddir)/Xi/libXi.la \
|
|
$(top_builddir)/dbe/libdbe.la \
|
|
$(top_builddir)/record/librecord.la \
|
|
$(top_builddir)/XTrap/libxtrap.la \
|
|
$(top_builddir)/miext/rootless/librootless.la \
|
|
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
|
$(top_builddir)/miext/rootless/accel/librlAccel.la \
|
|
$(DARWIN_LIBS) $(XSERVER_LIBS) -lXplugin
|
|
|
|
XDarwin_LDFLAGS = \
|
|
-XCClinker -Objc \
|
|
-Wl,-u,_miDCInitialize \
|
|
-Wl,-framework,IOKit
|
|
|
|
Xquartz_LDFLAGS = \
|
|
-XCClinker -Objc \
|
|
-Wl,-u,_miDCInitialize \
|
|
-Wl,-framework,Carbon \
|
|
-L/System/Library/Frameworks/OpenGL.framework/Libraries -lGL \
|
|
-Wl,-framework,OpenGL \
|
|
-Wl,-framework,Cocoa \
|
|
-Wl,-framework,CoreAudio \
|
|
-Wl,-framework,IOKit
|
|
|
|
XDarwin_CFLAGS = -DINXDARWIN
|
|
Xquartz_CFLAGS = -DINXQUARTZ -DHAS_CG_MACH_PORT -DHAS_KL_API -DHAVE_XORG_CONFIG_H
|
|
Xquartz_OBJCFLAGS = -DINXQUARTZ -DHAS_CG_MACH_PORT -DHAS_KL_API -DHAVE_XORG_CONFIG_H
|
|
|
|
if XQUARTZ
|
|
macosdir = $(darwinappdir)/Contents/MacOS
|
|
|
|
DEFS += -DDARWIN_WITH_QUARTZ -DXFree86Server
|
|
|
|
macos_PROGRAMS =
|
|
macos_SCRIPTS = x11app
|
|
|
|
x11app:
|
|
cd apple && xcodebuild
|
|
|
|
XDarwinApp_SOURCES = \
|
|
$(top_srcdir)/fb/fbcmap.c \
|
|
$(top_srcdir)/mi/miinitext.c \
|
|
$(top_srcdir)/Xi/stubs.c
|
|
|
|
XDarwinApp_LDADD = \
|
|
$(top_builddir)/dix/dixfonts.lo \
|
|
$(top_builddir)/dix/libdix.la \
|
|
$(top_builddir)/os/libos.la \
|
|
./quartz/XApplication.o \
|
|
./libdarwinShared.a \
|
|
./quartz/libXQuartz.a \
|
|
$(top_builddir)/dix/libxpstubs.la \
|
|
$(top_builddir)/miext/shadow/libshadow.la \
|
|
$(top_builddir)/fb/libfb.la \
|
|
$(top_builddir)/composite/libcomposite.la \
|
|
$(top_builddir)/damageext/libdamageext.la \
|
|
$(top_builddir)/miext/damage/libdamage.la \
|
|
$(top_builddir)/xfixes/libxfixes.la \
|
|
$(top_builddir)/miext/cw/libcw.la \
|
|
$(top_builddir)/Xext/libXext.la \
|
|
$(top_builddir)/xkb/libxkb.la \
|
|
$(top_builddir)/xkb/libxkbstubs.la \
|
|
$(top_builddir)/Xi/libXi.la \
|
|
$(top_builddir)/dbe/libdbe.la \
|
|
$(top_builddir)/record/librecord.la \
|
|
$(top_builddir)/XTrap/libxtrap.la \
|
|
$(XGLX_LIBS) \
|
|
$(top_builddir)/miext/rootless/librootless.la \
|
|
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
|
$(top_builddir)/miext/rootless/accel/librlAccel.la \
|
|
@XORG_LIBS@ \
|
|
-lXau -lXdmcp -lXfont -lfreetype \
|
|
$(top_builddir)/fb/libfb.la
|
|
|
|
XDarwinApp_LDFLAGS = \
|
|
-XCClinker -Objc \
|
|
-Wl,-u,_miDCInitialize \
|
|
-Wl,-framework,Carbon \
|
|
-Wl,-framework,ApplicationServices \
|
|
-Wl,-framework,Cocoa \
|
|
-Wl,-framework,CoreAudio \
|
|
-Wl,-framework,IOKit
|
|
|
|
HOOK_TARGETS = xquartz-install-hook
|
|
|
|
|
|
crplugindir = $(darwinappdir)/Contents/Resources/cr.bundle/Contents/MacOS
|
|
crplugin_LTLIBRARIES =
|
|
cr_la_SOURCES =
|
|
cr_la_LIBADD = \
|
|
quartz/cr/crAppleWM.o \
|
|
quartz/cr/crFrame.o \
|
|
quartz/cr/crScreen.o \
|
|
quartz/fullscreen/quartzCursor.o \
|
|
quartz/cr/XView.o \
|
|
$(top_builddir)/miext/rootless/librootless.la \
|
|
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
|
$(top_builddir)/miext/rootless/accel/librlAccel.la
|
|
cr_la_LDFLAGS = -shrext '' -Wl,-framework,ApplicationServices \
|
|
-Wl,-framework,Cocoa \
|
|
-Wl,-framework,Carbon \
|
|
-XCClinker -ObjC \
|
|
-XCClinker -bundle_loader -XCClinker XDarwinApp \
|
|
-module -avoid-version -no-undefined
|
|
cr_la_DEPENDENCIES = XDarwinApp
|
|
|
|
fullscreenplugindir = $(darwinappdir)/Contents/Resources/fullscreen.bundle/Contents/MacOS
|
|
fullscreenplugin_LTLIBRARIES =
|
|
fullscreen_la_SOURCES =
|
|
fullscreen_la_LIBADD = \
|
|
quartz/fullscreen/fullscreen.o \
|
|
quartz/fullscreen/quartzCursor.o \
|
|
$(top_builddir)/miext/shadow/libshadow.la
|
|
|
|
fullscreen_la_LDFLAGS = -shrext '' -Wl,-framework,ApplicationServices \
|
|
-XCClinker -bundle_loader -XCClinker XDarwinApp \
|
|
-module -avoid-version -no-undefined
|
|
fullscreen_la_DEPENDENCIES = XDarwinApp
|
|
|
|
if GLX
|
|
glxMesaplugindir = $(darwinappdir)/Contents/Resources/glxMesa.bundle/Contents/MacOS
|
|
glxMesaplugin_LTLIBRARIES =
|
|
glxMesa_la_SOURCES =
|
|
glxMesa_la_LIBADD = \
|
|
$(top_builddir)/GL/glx/libglx.la \
|
|
$(top_builddir)/GL/mesa/libGLcore.la
|
|
glxMesa_la_LDFLAGS = -shrext '' \
|
|
-Wl,-framework,AGL \
|
|
-Wl,-framework,OpenGL \
|
|
-XCClinker -ObjC \
|
|
-XCClinker -bundle_loader -XCClinker XDarwinApp \
|
|
-module -avoid-version -no-undefined
|
|
glxMesa_la_DEPENDENCIES = XDarwinApp
|
|
endif
|
|
|
|
endif
|
|
|
|
xprplugindir = $(darwinappdir)/Contents/Resources/xpr.bundle/Contents/MacOS
|
|
xprplugin_LTLIBRARIES =
|
|
xpr_la_SOURCES =
|
|
xpr_la_LIBADD = \
|
|
quartz/xpr/appledri.o \
|
|
quartz/xpr/dri.o \
|
|
quartz/xpr/xprAppleWM.o \
|
|
quartz/xpr/xprCursor.o \
|
|
quartz/xpr/xprFrame.o \
|
|
quartz/xpr/xprScreen.o \
|
|
quartz/xpr/x-hash.o \
|
|
quartz/xpr/x-hook.o \
|
|
quartz/xpr/x-list.o \
|
|
$(top_builddir)/miext/rootless/librootless.la \
|
|
$(top_builddir)/miext/rootless/safeAlpha/libsafeAlpha.la \
|
|
$(top_builddir)/miext/rootless/accel/librlAccel.la
|
|
xpr_la_LDFLAGS = -shrext '' -Wl,-framework,ApplicationServices \
|
|
-lXplugin \
|
|
-XCClinker -bundle_loader -XCClinker XDarwinApp \
|
|
-module -avoid-version -no-undefined
|
|
xpr_la_DEPENDENCIES = XDarwinApp
|
|
|
|
|
|
if HAVE_AGL_FRAMEWORK
|
|
glxCGLplugindir = $(darwinappdir)/Contents/Resources/glxCGL.bundle/Contents/MacOS
|
|
glxCGLplugin_LTLIBRARIES =
|
|
glxCGL_la_SOURCES =
|
|
glxCGL_la_LIBADD = \
|
|
$(top_builddir)/GL/glx/glxext.o \
|
|
$(top_builddir)/GL/glx/libglx.a \
|
|
$(top_builddir)/GL/apple/libAGLcore.a
|
|
glxCGL_la_LDFLAGS = -shrext '' -Wl,-framework,ApplicationServices \
|
|
-Wl,-framework,AGL \
|
|
-Wl,-framework,OpenGL \
|
|
-XCClinker -ObjC \
|
|
-XCClinker -bundle_loader -XCClinker XDarwinApp \
|
|
-module -avoid-version -no-undefined
|
|
glxCGL_la_DEPENDENCIES = XDarwinApp
|
|
|
|
|
|
glxAGLplugindir = $(darwinappdir)/Contents/Resources/glxAGL.bundle/Contents/MacOS
|
|
glxAGLplugin_LTLIBRARIES =
|
|
glxAGL_la_SOURCES =
|
|
glxAGL_la_LIBADD = \
|
|
$(top_builddir)/GL/glx/glxext.o \
|
|
$(top_builddir)/GL/glx/libglx.a \
|
|
$(top_builddir)/GL/apple/libAGLcore.a
|
|
glxAGL_la_LDFLAGS = -shrext '' \
|
|
-Wl,-framework,AGL \
|
|
-Wl,-framework,OpenGL \
|
|
-XCClinker -ObjC \
|
|
-XCClinker -bundle_loader -XCClinker XDarwinApp \
|
|
-module -avoid-version -no-undefined
|
|
glxAGL_la_DEPENDENCIES = XDarwinApp
|
|
|
|
|
|
|
|
endif
|
|
|
|
man1_MANS = XDarwin.man
|
|
|
|
uninstall-hook:
|
|
rm -rf $(DESTDIR)$(macosdir)/XDarwin
|
|
|
|
install-data-hook: $(HOOK_TARGETS)
|
|
|
|
xquartz-install-hook:
|
|
cd apple && xcodebuild install
|
|
cd launcher && xcodebuild install
|
|
|
|
EXTRA_DIST = \
|
|
darwin.c \
|
|
darwinClut8.h \
|
|
darwinEvents.c \
|
|
darwin.h \
|
|
darwinKeyboard.c \
|
|
darwinKeyboard.h \
|
|
darwinXinput.c \
|
|
apple/X11Application.h \
|
|
apple/X11Controller.h \
|
|
apple/Info.plist \
|
|
apple/X11.icns \
|
|
apple/Xquartz.man \
|
|
apple/bundle-main.c \
|
|
apple/English.lproj/InfoPlist.strings \
|
|
apple/English.lproj/Localizable.strings \
|
|
apple/English.lproj/main.nib/classes.nib \
|
|
apple/English.lproj/main.nib/info.nib \
|
|
apple/English.lproj/main.nib/keyedobjects.nib \
|
|
apple/X11.xcodeproj/project.pbxproj \
|
|
XDarwin.man
|