summaryrefslogtreecommitdiffstats
path: root/g729a/droid-makefile
blob: 3d5442a3e1b603a9d2ca314de1794fe19ed82400 (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
53
54
55
56
57
58
APP := lib$(PROJECT)_$(MARCH).$(EXT)

CFLAGS := $(CFLAGS_LIB) -D__unix__
LDFLAGS := $(LDFLAGS_LIB) -lgcc

all: $(APP)

OBJS = ACELP_CA.o\
	BASIC_OP.o\
	BITS.o\
	COD_LD8A.o\
	COR_FUNC.o\
	DEC_GAIN.o\
	DEC_LAG3.o\
	DEC_LD8A.o\
	DE_ACELP.o\
	DSPFUNC.o\
	FILTER.o\
	GAINPRED.o\
	LPC.o\
	LPCFUNC.o\
	LSPDEC.o\
	LSPGETQ.o\
	OPER_32B.o\
	PITCH_A.o\
	POSTFILT.o\
	POST_PRO.o\
	PRED_LT3.o\
	PRE_PROC.o\
	P_PARITY.o\
	QUA_GAIN.o\
	QUA_LSP.o\
	TAB_LD8A.o\
	TAMING.o\
	UTIL.o

	
$(APP): $(OBJS)
ifeq ($(EXT), a)
	$(AR) rcs $@ $^
else
	$(CC) $(LDFLAGS) -o $@ $^
endif

%.o: %.c
	$(CC) -c $(INCLUDE) $(CFLAGS) $< -o $@
	
install: $(APP)
	cp -f $(APP) ../thirdparties/android/lib

shell:
	$(ANDROID_SDK_ROOT)/tools/adb shell

run:
	$(ANDROID_SDK_ROOT)/tools/adb shell $(LIB_DIR)/$(APP)
	
clean:
	@rm -f $(OBJS) $(APP)
OpenPOWER on IntegriCloud