xrdp/xorg/X11R7.6/rdp/Makefile

105 lines
3.1 KiB
Makefile
Raw Normal View History

2012-03-06 23:49:15 +04:00
#X11RDPBASE is an environment variable that needs to be set
INCBASE = $(X11RDPBASE)/include
LIBBASE = $(X11RDPBASE)/lib
2012-03-08 09:02:41 +04:00
XSRCBASE = ../build_dir/xorg-server-1.9.3
2012-03-15 04:16:42 +04:00
OBJS = rdpmain.o rdpdraw.o rdpinput.o rdpmisc.o rdpup.o rdprandr.o \
miinitext.o \
2012-03-13 09:07:45 +04:00
fbcmap_mi.o
2012-03-08 09:02:41 +04:00
2012-03-13 09:07:45 +04:00
# in Xorg 7.1, fbcmap.c was used but now it looks like fbcmap_mi.c should
# be used
#fbcmap_mi.o
#fbcmap.o
2012-03-08 09:02:41 +04:00
LIBS = $(XSRCBASE)/dbe/.libs/libdbe.a \
$(XSRCBASE)/dix/.libs/libdix.a \
$(XSRCBASE)/dix/.libs/libmain.a \
$(XSRCBASE)/fb/.libs/libfb.a \
$(XSRCBASE)/mi/.libs/libmi.a \
$(XSRCBASE)/os/.libs/libos.a \
$(XSRCBASE)/randr/.libs/librandr.a \
$(XSRCBASE)/record/.libs/librecord.a \
$(XSRCBASE)/render/.libs/librender.a \
$(XSRCBASE)/xkb/.libs/libxkb.a \
$(XSRCBASE)/Xext/.libs/libXext.a \
$(XSRCBASE)/Xi/.libs/libXi.a \
$(XSRCBASE)/glx/.libs/libglx.a \
$(XSRCBASE)/xfixes/.libs/libxfixes.a \
2012-03-14 04:18:10 +04:00
$(XSRCBASE)/damageext/.libs/libdamageext.a \
$(XSRCBASE)/miext/damage/.libs/libdamage.a \
librdp.a
2012-03-06 23:49:15 +04:00
2012-03-14 04:18:10 +04:00
LLIBS = -Wl,-rpath=$(LIBBASE) -lfreetype -lz -lm -lXfont -lXau \
-lXdmcp -lpixman-1 -lrt -ldl -lcrypto -lGL -lXdamage
CFLAGS = -O2 -Wall -fno-strength-reduce \
2012-03-06 23:49:15 +04:00
-I../../include \
-I../../cfb \
-I../../mfb \
-I../../mi \
-I$(INCBASE) \
-I$(INCBASE)/X11 \
-I$(INCBASE)/X11/fonts \
-I$(INCBASE)/X11/extensions \
-I$(INCBASE)/xorg \
-I$(INCBASE)/pixman-1 \
-I../../os \
-I../../render \
-I../xfree86/common \
-I../xfree86/os-support \
-D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_REENTRANT \
-DGLX_USE_MESA -DXRECORD -D_GNU_SOURCE -DXAPPGROUP \
2012-03-13 09:07:45 +04:00
-DTOGCUP -DSINGLEDEPTH -DXFree86Server \
2012-03-06 23:49:15 +04:00
-DDBE -DEVI -DXVMC -DFONTCACHE -DGCCUSESGAS -DSTATIC_COLOR \
-DAVOID_GLYPHBLT -DFUNCPROTO=15 -DNARROWPROTO -DDDXOSFATALERROR \
-DPART_NET -DDDXTIME -D_HAVE_XALLOC_DECLS \
2012-03-14 04:18:10 +04:00
-DDAMAGE \
2012-03-06 23:49:15 +04:00
-DXFIXES \
-DSMART_SCHEDULE -DSERVER_LOCK -DGLXEXT -DSHAPE -DRENDER -DRANDR \
2012-03-11 03:48:29 +04:00
-DBIGREQS -D_POSIX_SOURCE -D_BSD_SOURCE -DSCREENSAVER \
2012-03-06 23:49:15 +04:00
-DXCMISC -DXTEST -DXTRAP -DXV -DXSYNC -DMITMISC -DPANORAMIX \
-DDPMSExtension -DXvExtension -DXvMCExtension -DXResExtension \
-DMITSHM -DPIXPRIV -DNDEBUG -DDDXOSINIT -DXKB -DXINPUT
2012-03-14 04:18:10 +04:00
#-DDAMAGE
2012-03-06 23:49:15 +04:00
# -pedantic
2012-03-13 09:07:45 +04:00
# -DXCSECURITY -DXF86BIGFONT
2012-03-06 23:49:15 +04:00
# these are defined in xorg-server.h
# -D_XOPEN_SOURCE=500L
# -DX_BYTE_ORDER=X_LITTLE_ENDIAN
# -DSMART_SCHEDULE -DSERVER_LOCK -DGLXEXT -DSHAPE -DRENDER -DRANDR
# -DBIGREQS -D_POSIX_SOURCE -D_BSD_SOURCE -DSCREENSAVER -DXF86BIGFONT
# -DXCMISC -DXTEST -DXTRAP -DXV -DXSYNC -DMITMISC -DPANORAMIX
# -DDPMSExtension -DXvExtension -DXvMCExtension -DXResExtension
# -DMITSHM -DPIXPRIV -DNDEBUG -DDDXOSINIT
# these are not needed I think
# -Dlinux -D__i386__
LDFLAGS = -L$(LIBBASE) -Wl,-rpath,$(LIBBASE)
all: X11rdp
X11rdp: $(OBJS)
$(AR) rvu librdp.a $(OBJS)
ranlib librdp.a
2012-03-14 04:18:10 +04:00
$(CC) $(LDFLAGS) -o X11rdp $(LIBS) $(LIBS) $(LLIBS)
2012-03-06 23:49:15 +04:00
clean:
rm -f $(OBJS) librdp.a
2012-03-14 04:18:10 +04:00
miinitext.o: ../build_dir/xorg-server-1.9.3/mi/miinitext.c Makefile
2012-03-08 09:02:41 +04:00
$(CC) $(CFLAGS) -I../build_dir/xorg-server-1.9.3/Xext -c ../build_dir/xorg-server-1.9.3/mi/miinitext.c
2012-03-06 23:49:15 +04:00
2012-03-11 08:14:58 +04:00
fbcmap.o: ../build_dir/xorg-server-1.9.3/fb/fbcmap.c
$(CC) $(CFLAGS) -c ../build_dir/xorg-server-1.9.3/fb/fbcmap.c
2012-03-13 09:07:45 +04:00
fbcmap_mi.o: ../build_dir/xorg-server-1.9.3/fb/fbcmap_mi.c
$(CC) $(CFLAGS) -c ../build_dir/xorg-server-1.9.3/fb/fbcmap_mi.c