-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.full
executable file
·33 lines (24 loc) · 1.07 KB
/
Makefile.full
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
LOCAL_PATH:= $(CURDIR)
#compiler params
LDFLAGS += -L$(LOCAL_PATH)/sdk/lib
INCLUDE += -I$(LOCAL_PATH)/ -I$(LOCAL_PATH)/sdk/include -I$(LOCAL_PATH)/audio/ -I$(LOCAL_PATH)/playlist/ -I$(LOCAL_PATH)/json/ -I/usr/local/include -I/usr/include/SDL2/
CFLAGS += -g -Wall -Wno-deprecated-declarations
CXXFLAGS+= -g
#build test code param
ifndef BUILD_OUT_PATH
BUILD_OUT_PATH=$(LOCAL_PATH)/out
export BUILD_OUT_PATH
endif
BUILD_OUT_BIN_PATH:=$(BUILD_OUT_PATH)/bin
TARGET_NAME:= $(BUILD_OUT_BIN_PATH)/signal_trigger
#collect need compile src
PROJ_SRCS:= $(wildcard $(LOCAL_PATH)/signal_trigger.c $(LOCAL_PATH)/playlist/*.c $(LOCAL_PATH)/audio/*.c $(LOCAL_PATH)/json/*.c)
#PROJ_SRCS+= $(LOCAL_PATH)/audio/audiorec.c
DEPEND_LIB:= -lm -lmibrainsdk -pthread -lavcodec -lavformat -lavutil -lavresample -lswresample -lasound -lSDL2
#$(warning "################$(DEPEND_LIB)#######$(INCLUDE)#######")
all: $(TARGET_NAME)
$(TARGET_NAME): $(PROJ_SRCS)
mkdir -p $(BUILD_OUT_BIN_PATH)
$(CC) $(CFLAGS) $(INCLUDE) $(LDFLAGS) -DALL_EXAMPLE -o $@ $(PROJ_SRCS) $(DEPEND_LIB)
clean:
rm -rf $(BUILD_OUT_PATH)