1# sources and intermediate files are separated
2
3AM_CFLAGS = -Wall
4AM_CFLAGS += -Wundef
5AM_CFLAGS += -Wstrict-prototypes
6AM_CFLAGS += -Wno-trigraphs
7AM_CFLAGS += -g -O3
8
9AM_CPPFLAGS = -D__packed__=
10AM_CPPFLAGS += -DIMAGE_APPS_PROC
11AM_CPPFLAGS += -DFEATURE_Q_SINGLE_LINK
12AM_CPPFLAGS += -DFEATURE_Q_NO_SELF_QPTR
13AM_CPPFLAGS += -DFEATURE_LINUX
14AM_CPPFLAGS += -DFEATURE_NATIVELINUX
15AM_CPPFLAGS += -DFEATURE_DSM_DUP_ITEMS
16AM_CPPFLAGS += -D_DEBUG
17AM_CPPFLAGS += -Iinc
18
19c_sources  =src/omx_aac_aenc.cpp
20c_sources +=src/aenc_svr.c
21
22lib_LTLIBRARIES = libOmxAacEnc.la
23libOmxAacEnc_la_SOURCES = $(c_sources)
24libOmxAacEnc_la_CFLAGS = $(AM_CFLAGS) -fPIC
25libOmxAacEnc_la_LDLIBS = -lOmxCore -lstdc++ -lpthread
26libOmxAacEnc_la_LDFLAGS = -shared -version-info $(OMXAUDIO_LIBRARY_VERSION)
27
28bin_PROGRAMS = mm-aenc-omxaac-test
29mm_aenc_omxaac_test_SOURCES = test/omx_aac_enc_test.c
30mm_aenc_omxaac_test_LDADD = -lOmxCore -ldl -lpthread libOmxAacEnc.la
31