forked from ashwing920/rtspserver
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 775 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (23 loc) · 775 Bytes
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
CC = arm-none-linux-gnueabi-gcc
CPP = arm-none-linux-gnueabi-g++
STRIP = arm-none-linux-gnueabi-strip
AR = arm-none-linux-gnueabi-ar
SRCDIRS =./ \
./h264 \
./h264/linux_lib
INCLUDES := $(foreach dir,$(SRCDIRS),-I$(dir))
SRCCS = $(foreach dir,$(SRCDIRS),$(wildcard $(dir)/*.c))
OBJ := $(SRCCS:%.c=%.o)
#CFLAGS = -Wall -O0 -g -static
CFLAGS = -static
CFLAGS := $(CFLAGS) $(INCLUDES)
CFLAGS += -D__OS_LINUX
LIBS += -pthread -L. ./h264/libv4lconvert.a -lm -lrt ./h264/linux_lib/libcedarv_osal.a ./h264/linux_lib/libcedarxalloc.a ./h264/linux_lib/libh264enc.a ./h264/linux_lib/libcedarv.a
TARGET = rtspserver
all: $(TARGET)
$(TARGET): $(OBJ)
$(CPP) $(CFLAGS) -o $@ $^ $(LIBS)
# mv enc_dec_test test
clean:
@rm -f $(TARGET)
@rm -f $(OBJ)