Fix RTSP compile issues and add howto for running it correctly

pkg-config is wonderful, but .pc suppliers just have to write correct files...
This commit is contained in:
Lekensteyn 2012-03-08 00:06:42 +01:00
parent 1b357f1f1b
commit 93edbf0fb9
2 changed files with 25 additions and 21 deletions

View file

@ -1,21 +1,21 @@
SRC = main.cpp ../util/socket.cpp ../util/http_parser.cpp ../util/flv_tag.cpp ../util/amf.cpp
SRC = main.cpp ../util/socket.cpp ../util/http_parser.cpp ../util/flv_tag.cpp ../util/amf.cpp ../util/util.cpp
OBJ = $(SRC:.cpp=.o)
OUT = Connector_RTSP
INCLUDES =
INCLUDES = $(shell pkg-config --cflags jrtplib)
DEBUG = 4
OPTIMIZE = -g
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG)
CC = $(CROSS)g++
LD = $(CROSS)ld
AR = $(CROSS)ar
LIBS = -ljthread -lpthread -ljrtp
LIBS = $(shell pkg-config --libs jrtplib)
.SUFFIXES: .cpp
.PHONY: clean default
default: $(OUT)
.cpp.o:
$(CC) $(INCLUDES) $(CCFLAGS) $(LIBS) -c $< -o $@
$(OUT): $(OBJ)
$(CC) $(LIBS) -o $(OUT) $(OBJ)
$(CC) -o $(OUT) $(OBJ) $(LIBS)
clean:
rm -rf $(OBJ) $(OUT) Makefile.bak *~
run-test: $(OUT)