2025-08-08 20:00:36 +02:00

277 lines
6.4 KiB
Plaintext

#include <Server.tmpl>
NULL =
SUBDIRS = compext \
$(NULL)
SRCS = \
NXwindow.c \
NXevents.c \
NXproperty.c \
NXdixfonts.c \
NXglyphcurs.c \
NXdispatch.c \
NXrender.c \
NXglyph.c \
NXpicture.c \
NXshm.c \
NXglxext.c \
NXxvdisp.c \
NXresource.c \
NXmitrap.c \
Args.c \
Binder.c \
BitmapUtils.c \
Colormap.c \
Cursor.c \
Dialog.c \
Display.c \
Events.c \
Font.c \
GC.c \
GCOps.c \
Millis.c \
Handlers.c \
Init.c \
Keyboard.c \
Keystroke.c \
Pointer.c \
Screen.c \
Visual.c \
Drawable.c \
Window.c \
Pixmap.c \
Render.c \
Client.c \
Rootless.c \
Extensions.c \
Options.c \
Clipboard.c \
Splash.c \
Split.c \
Reconnect.c \
Error.c \
Atoms.c \
Trap.c \
Image.c \
Composite.c \
Pixels.c \
stubs.c \
miinitext.c \
$(NULL)
OBJS = \
NXwindow.o \
NXevents.o \
NXproperty.o \
NXdixfonts.o \
NXglyphcurs.o \
NXdispatch.o \
NXrender.o \
NXglyph.o \
NXpicture.o \
NXshm.o \
NXglxext.o \
NXxvdisp.o \
NXresource.o \
NXmitrap.o \
Args.o \
Binder.o \
BitmapUtils.o \
Colormap.o \
Cursor.o \
Dialog.o \
Display.o \
Events.o \
Font.o \
GC.o \
GCOps.o \
Millis.o \
Handlers.o \
Init.o \
Keyboard.o \
Keystroke.o \
Pointer.o \
Screen.o \
Visual.o \
Drawable.o \
Window.o \
Pixmap.o \
Render.o \
Client.o \
Rootless.o \
Extensions.o \
Options.o \
Clipboard.o \
Splash.o \
Split.o \
Reconnect.o \
Error.o \
Atoms.o \
Trap.o \
Image.o \
Composite.o \
Pixels.o \
stubs.o \
miinitext.o \
$(NULL)
VFBINCLUDES = \
-I../../fb \
-I../../mfb \
-I../../render \
$(NULL)
INCLUDES = \
-I. \
-I../../../../extras/Mesa/include \
-I$(XBUILDINCDIR) \
-I../../mi \
-I../../include \
-I../../os \
-I../../miext/cw \
-I../../GL/glx \
-I../../GL/include \
-I../../../../lib/GL/include \
-I../../Xext \
-I../../../../lib/include/X11 \
-I$(EXTINCSRC) -I$(XINCLUDESRC) \
$(VFBINCLUDES) \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I pixman-1` \
$(NULL)
#ifdef SunArchitecture
INCLUDES = \
-I. \
-I../../../../extras/Mesa/include \
-I$(XBUILDINCDIR) \
-I/usr/sfw/include \
-I../../mi \
-I../../include \
-I../../os \
-I../../GL/glx \
-I../../GL/include \
-I../../../../lib/GL/include \
-I../../Xext \
-I../../miext/cw \
-I../../../../lib/include/X11 \
-I$(EXTINCSRC) -I$(XINCLUDESRC) \
$(VFBINCLUDES) \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I pixman-1` \
$$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --cflags-only-I 'zlib') \
`pkg-config --cflags-only-I libpng` \
$(NULL)
#else
#ifdef cygwinArchitecture
INCLUDES = \
-I. -I$(XBUILDINCDIR) \
-I../../mi \
-I../../include \
-I../../os \
-I../../GL/glx \
-I../../GL/include \
-I../../../../lib/GL/include \
-I../../Xext \
-I../../miext/cw \
-I../../../../../nxcomp \
-I../../../../../nxcompshad \
-I../../../../extras/Mesa/include \
-I../../../../lib/include/X11 \
-I$(EXTINCSRC) -I$(XINCLUDESRC) \
$(VFBINCLUDES) \
`pkg-config --cflags-only-I libxml-2.0` \
`pkg-config --cflags-only-I pixman-1` \
$$(pkg-config --exists 'zlib' >/dev/null 2>&1 && pkg-config --cflags-only-I 'zlib') \
`pkg-config --cflags-only-I libpng` \
$(NULL)
#endif
#endif
### list of existing NXAGENT macros:
#
# NXAGENT_FIXKEYS Force the release of pressed key when losing focus
# NXAGENT_CLIPBOARD Enables clipboard cut and paste function between X servers.
# NXAGENT_RANDR_MODE_PREFIX Prefix for RandR display modes (i.e., nx_<x>x<y>) (default: nx_)
# NXAGENT_RANDR_XINERAMA_CLIPPING cut off invisible window parts in xinerama mode (you probably do not want this)
# NXAGENT_TIMESTAMP print duration for some routines
# NXAGENT_ONSTART communicate about startup phase to the original nxclient by NoMachine via selections
# NXAGENT_WAKEUP=<milliseconds> Specifies a timeout that makes WaitForSomething() return earlier than normal which
# enables nxagent to close the splash window at the right time and/or improve connection
# handling for the xdmcp option.
# This only has an effect if NX_TRANS_WAKEUP is also set for os/WaitFor.c
# NXAGENT_ARTSD enable special handling of MCOPGLOBALS property used by artsd.
# NXAGENT_RENDER_CLEANUP cleanup padding bits/bytes of glyphs to possibly increase compression rate
# X2GO include code to support running as x2goagent
#
### macros not investigated yet:
#
# NXAGENT_PICTURE_ALWAYS_POINTS_TO_VIRTUAL
#
### Debug macros:
#
# DEBUG_COLORMAP
# DEBUG_TREE Include code that activates the keystroke to print the current window tree
# NXAGENT_FIXKEYS_DEBUG
# NXAGENT_FONTCACHE_DEBUG
# NXAGENT_FONTMATCH_DEBUG
# NXAGENT_LOGO_DEBUG print details about splash logo creating and paint some helper lines
# NXAGENT_RECONNECT_COLORMAP_DEBUG
# NXAGENT_RECONNECT_CURSOR_DEBUG
# NXAGENT_RECONNECT_DEBUG
# NXAGENT_RECONNECT_DISPLAY_DEBUG
# NXAGENT_RECONNECT_FONT_DEBUG
# NXAGENT_RECONNECT_PICTFORMAT_DEBUG
# NXAGENT_RECONNECT_PICTURE_DEBUG
# NXAGENT_RECONNECT_SCREEN_DEBUG
# NXAGENT_RECONNECT_WINDOW_DEBUG
# NXAGENT_XKBD_DEBUG
# NX_DEBUG_INPUT include input debugging code. Can then by controlled at runtime by
# xprop -root -f NX_DEBUG_INPUT 8b -set NX_DEBUG_INPUT "True" or
# xprop -root -f NX_DEBUG_INPUT 8b -set NX_DEBUG_INPUT "False"
#if nxVersion
NX_DEFINES = \
-DNX_VERSION_CURRENT="$(NX_VERSION_CURRENT)" \
-DNX_VERSION_CURRENT_STRING="\"$(NX_VERSION_CURRENT_STRING)\"" \
$(NULL)
#endif
DEFINES = \
-g $(OS_DEFINES) $(EXT_DEFINES) $(NX_DEFINES) \
-UXF86VIDMODE -UXFreeXDGA -UXF86MISC -UXF86DRI \
-DNXAGENT_SERVER \
-DNXAGENT_RENDER_CLEANUP \
-DNXAGENT_FIXKEYS \
-DNXAGENT_CLIPBOARD \
-DNXAGENT_WAKEUP=1000 \
-DNXAGENT_ONSTART \
-DNXAGENT_ARTSD \
-UNX_DEBUG_INPUT \
-DRANDR_10_INTERFACE=1 \
-DRANDR_12_INTERFACE=1 \
-DRANDR_13_INTERFACE=1 \
-DRANDR_14_INTERFACE=1 \
-DRANDR_15_INTERFACE=1 \
-DPANORAMIX \
-UDEBUG_TREE \
-DX2GO \
-DSYSTEMFONTDIR=\"$(SYSTEMFONTDIR)\" \
$(NULL)
all:: $(OBJS)
LinkSourceFile(stubs.c,$(SERVERSRC)/Xi)
LinkSourceFile(miinitext.c,$(SERVERSRC)/mi)
SpecialCObjectRule(miinitext,$(ICONFIGFILES), $(_NOOP_))
NormalLibraryObjectRule()
NormalLibraryTarget(nxagent,$(OBJS))
DependTarget()
#define IHaveSubdirs
MakeSubdirs($(SUBDIRS))
DependSubdirs($(SUBDIRS))