summaryrefslogtreecommitdiff
path: root/vaenc/Makefile
blob: 87f431fc2eeb2ae21de7c0e65b59a2a44eb09a58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
all: va_encode

srcs=va_encode.c h264encode.c mpeg4encode.c h263encode.c vp8encode.c jpegencode.c jpegtables.c mpeg2encode.c va_surface.c codedmeta.c configrc.lex.c configrc.yacc.c ../common/va_display.c ../common/va_display_drm.c ../common/va_display_x11.c ../utils/ssim.c ../utils/psnr.c
objs=va_encode.o h264encode.o mpeg4encode.o h263encode.o vp8encode.o jpegencode.o jpegtables.o mpeg2encode.o va_surface.o codedmeta.o configrc.lex.o configrc.yacc.o ../common/va_display.o ../common/va_display_drm.o ../common/va_display_x11.o ../utils/ssim.o ../utils/psnr.o

headers=va_encode.h
cflags=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE

configrc.yacc.c configrc.yacc.h: ../utils/configrc.yacc.y
	/usr/bin/bison -v -d ../utils/configrc.yacc.y -o configrc.yacc.c

configrc.lex.c: ../utils/configrc.lex.l ../utils/configrc.h
	lex -o configrc.lex.c ../utils/configrc.lex.l

%.o: %.c
	gcc -g -c -o $@ $<  -I../common/ -I../utils/ -I.. -I. $(cflags)

va_encode: $(srcs) $(objs) $(headers)
	gcc -g -Wall -o va_encode $(objs) -lva -lva-x11 -lva-drm -lm  -ll

clean:
	rm -rf va_encode $(objs) *.output configrc.yacc.c configrc.yacc.h configrc.lex.c