summaryrefslogtreecommitdiffstats
path: root/xorg/server/module/Makefile
blob: 329322be7469603a610273680f601514c260a1c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

OBJS = rdpDraw.o rdpPri.o rdpGC.o rdpFillSpans.o rdpSetSpans.o rdpPutImage.o \
rdpCopyArea.o rdpCopyPlane.o rdpPolyPoint.o rdpPolylines.o rdpPolySegment.o \
rdpPolyRectangle.o rdpPolyArc.o rdpFillPolygon.o rdpPolyFillRect.o \
rdpPolyFillArc.o rdpPolyText8.o rdpPolyText16.o rdpImageText8.o \
rdpImageText16.o rdpImageGlyphBlt.o rdpPolyGlyphBlt.o rdpPushPixels.o \
rdpCursor.o rdpMain.o rdpRandR.o rdpMisc.o rdpReg.o \
rdpComposite.o rdpGlyphs.o rdpPixmap.o rdpInput.o rdpClientCon.o rdpCapture.o \
rdpTrapezoids.o rdpXv.o

;OBJS += i420_to_rgb32_x86_sse2.o yv12_to_rgb32_x86_sse2.o yuy2_to_rgb32_x86_sse2.o uyvy_to_rgb32_x86_sse2.o
;OBJS += i420_to_rgb32_amd64_sse2.o yv12_to_rgb32_amd64_sse2.o yuy2_to_rgb32_amd64_sse2.o uyvy_to_rgb32_amd64_sse2.o

CFLAGS = -g -O2 -Wall -fPIC -I/usr/include/xorg -I/usr/include/pixman-1 \
-I../../../common

LDFLAGS =

LIBS =

all: libxorgxrdp.so

libxorgxrdp.so: $(OBJS) Makefile
	$(CC) -shared -o libxorgxrdp.so $(LDFLAGS) $(OBJS) $(LIBS)

clean:
	rm -f $(OBJS) libxorgxrdp.so

i420_to_rgb32_x86_sse2.o: x86/i420_to_rgb32_x86_sse2.asm
	yasm -f elf32 -g dwarf2 x86/i420_to_rgb32_x86_sse2.asm

yv12_to_rgb32_x86_sse2.o: x86/yv12_to_rgb32_x86_sse2.asm
	yasm -f elf32 -g dwarf2 x86/yv12_to_rgb32_x86_sse2.asm

yuy2_to_rgb32_x86_sse2.o: x86/yuy2_to_rgb32_x86_sse2.asm
	yasm -f elf32 -g dwarf2 x86/yuy2_to_rgb32_x86_sse2.asm

uyvy_to_rgb32_x86_sse2.o: x86/uyvy_to_rgb32_x86_sse2.asm
	yasm -f elf32 -g dwarf2 x86/uyvy_to_rgb32_x86_sse2.asm

i420_to_rgb32_amd64_sse2.o: amd64/i420_to_rgb32_amd64_sse2.asm
	yasm -f elf64 -g dwarf2 amd64/i420_to_rgb32_amd64_sse2.asm

yv12_to_rgb32_amd64_sse2.o: amd64/yv12_to_rgb32_amd64_sse2.asm
	yasm -f elf64 -g dwarf2 amd64/yv12_to_rgb32_amd64_sse2.asm

yuy2_to_rgb32_amd64_sse2.o: amd64/yuy2_to_rgb32_amd64_sse2.asm
	yasm -f elf64 -g dwarf2 amd64/yuy2_to_rgb32_amd64_sse2.asm

uyvy_to_rgb32_amd64_sse2.o: amd64/uyvy_to_rgb32_amd64_sse2.asm
	yasm -f elf64 -g dwarf2 amd64/uyvy_to_rgb32_amd64_sse2.asm