-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
executable file
·80 lines (63 loc) · 2.12 KB
/
Makefile
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# object building.
ifeq ($(ARM), 1)
CC=arm-none-linux-gnueabi-gcc
AR=arm-none-linux-gnueabi-ar
else
CC=gcc
AR=ar
endif
TARGET= libvpcodec.so
CODEOBJECT = AML_HWEncoder.o enc_api.o gxvenclib_fast.o rate_control_gx_fast.o parser.o libvpcodec.o \
# rate_control_m8_fasth.o m8venclib_fast.o dump.o m8venclib.o rate_control_m8.o noise_reduction.o fill_buffer.o pred_neon_asm.o
libvpcodec.so: $(CODEOBJECT)
$(CC) $(CFLAGS) $(CODEOBJECT) -o $(TARGET)
AML_HWEncoder.o: AML_HWEncoder.cpp include/AML_HWEncoder.h
$(CC) $(CFLAGS) -c $<
enc_api.o: enc_api.cpp enc_api.h
$(CC) $(CFLAGS) -c $<
#fill_buffer.o: enc/common/fill_buffer.cpp
# $(CC) $(CFLAGS) -c $<
#
#rate_control_m8_fasth.o: .enc/m8_enc_fast/rate_control_m8_fastcpp .enc/m8_enc_fast/rate_control_m8_fasth
# $(CC) $(CFLAGS) -c $<
#
#m8venclib_fast.o: enc/m8_enc_fast/m8venclib_fast.cpp enc/m8_enc_fast/m8venclib_fast.h
# $(CC) $(CFLAGS) -c $<
#
#dump.o: enc/m8_enc/dump.cpp enc/m8_enc/dump.h
# $(CC) $(CFLAGS) -c $<
#
#m8venclib.o: enc/m8_enc/m8venclib.cpp enc/m8_enc/m8venclib.h
# $(CC) $(CFLAGS) -c $<
#
#rate_control_m8.o: enc/m8_enc/rate_control_m8.cpp enc/m8_enc/rate_control_m8.h
# $(CC) $(CFLAGS) -c $<
#
#noise_reduction.o: enc/m8_enc/noise_reduction.cpp enc/m8_enc/noise_reduction.h
# $(CC) $(CFLAGS) -c $<
#
gxvenclib_fast.o: enc/gx_enc_fast/gxvenclib_fast.cpp enc/gx_enc_fast/gxvenclib_fast.h
$(CC) $(CFLAGS) -c $<
rate_control_gx_fast.o: enc/gx_enc_fast/rate_control_gx_fast.cpp enc/gx_enc_fast/rate_control_gx_fast.h
$(CC) $(CFLAGS) -c $<
parser.o: enc/gx_enc_fast/parser.cpp enc/gx_enc_fast/parser.h
$(CC) $(CFLAGS) -c $<
pred.o: enc/intra_search/pred.cpp enc/intra_search/pred.h
$(CC) $(CFLAGS) -c $<
#pred_neon_asm.o: enc/intra_search/pred_neon_asm.s
# $(CC) $(CFLAGS) -c $<
libvpcodec.o: libvpcodec.cpp include/vpcodec_1_0.h
$(CC) $(CFLAGS) -c $<
LDFLAGS += -lm -lrt
ifeq ($(ARM), 1)
CFLAGS+=-DARM
else
CFLAGS+=-O2
endif
ifeq ($(REAP), 1)
CFLAGS+=-DREAP_MODE
endif
CFLAGS+= -Wall -g -ftree-vectorize -ffast-math -Iinclude -shared -fPIC
clean:
-rm -f *.o
-rm -f $(TARGET)