zhangzengfei
2022-07-20 c90c3e794bdd95127d0c34ff1d9e8759d18a0445
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
#******************************************************************************
#   The Makefile of Compiling Rules for VOD
#   Created ---------- songxw, 2010-3-30
#******************************************************************************
export PUB_PATH := $(shell pwd)
export CROSS_COMPILE :=
export ASM       := $(CROSS_COMPILE)asm
export AR        := $(CROSS_COMPILE)ar
export CC        := $(CROSS_COMPILE)gcc
export CXX       := $(CROSS_COMPILE)g++
export LD        := $(CROSS_COMPILE)ld
export STRIP     := $(CROSS_COMPILE)strip -s -g
export RM        := rm -fr
export CP        := cp -f
export MKDIR     := mkdir 
 
export CXX_OPTS := -c -g -Wall -O0 -Wno-unused-but-set-variable -fpic
 
#*****************************************
#   Target Definations
#*****************************************
TARGET := librtsplib.a
OBJS := RtspMsg.o  RtspProt.o  str.o  types.o osip_md5.o MD5Calc.o tool.o
 
all: $(TARGET)
 
$(TARGET): $(OBJS)
    @$(AR) -r $@ $^
 
%.o: %.c
    $(CXX) $(CXX_OPTS) -o $@ $<
 
%.o: %.cpp
    $(CXX) $(CXX_OPTS) -o $@ $<
 
.PHONY: clean
clean:
    $(RM) *.o *.lib *.out *.so *.a