New compilation method

This commit is contained in:
Thulinma 2011-04-18 16:29:48 +02:00
parent bf0b976999
commit 42befc2498
8 changed files with 21 additions and 20 deletions

View file

@ -2,7 +2,9 @@ SRC = main.cpp ../util/ddv_socket.cpp ../util/flv_tag.cpp
OBJ = $(SRC:.cpp=.o)
OUT = DDV_Buffer
INCLUDES =
CCFLAGS = -Wall -Wextra -funsigned-char -g
DEBUG = 4
OPTIMIZE = -g
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG)
CC = $(CROSS)g++
LD = $(CROSS)ld
AR = $(CROSS)ar

View file

@ -2,7 +2,9 @@ SRC = main.cpp ../util/ddv_socket.cpp ../util/http_parser.cpp ../util/flv_tag.cp
OBJ = $(SRC:.cpp=.o)
OUT = DDV_Conn_HTTP
INCLUDES =
CCFLAGS = -Wall -Wextra -funsigned-char -g
DEBUG = 4
OPTIMIZE = -g
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG)
CC = $(CROSS)g++
LD = $(CROSS)ld
AR = $(CROSS)ar

View file

@ -1,14 +1,6 @@
/// \file Connector_HTTP/main.cpp
/// Contains the main code for the HTTP Connector
/// Sets the global debugging level.
// debugging level 0 = nothing
// debugging level 1 = critical errors
// debugging level 2 = errors
// debugging level 3 = status information
// debugging level 4 = extremely verbose status information
#define DEBUG 4
#include <iostream>
#include <queue>
#include <cstdlib>

View file

@ -2,7 +2,9 @@ SRC = main.cpp ../util/ddv_socket.cpp
OBJ = $(SRC:.cpp=.o)
OUT = DDV_Conn_RAW
INCLUDES =
CCFLAGS = -Wall -Wextra -funsigned-char -g
DEBUG = 4
OPTIMIZE = -g
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG)
CC = $(CROSS)g++
LD = $(CROSS)ld
AR = $(CROSS)ar

View file

@ -3,7 +3,9 @@ OBJ = $(SRC:.cpp=.o)
OUT = DDV_Conn_RTMP
INCLUDES =
STATIC =
CCFLAGS = -Wall -Wextra -funsigned-char -g
DEBUG = 4
OPTIMIZE = -g
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG)
CC = $(CROSS)g++
LD = $(CROSS)ld
AR = $(CROSS)ar

View file

@ -1,13 +1,6 @@
/// \file Connector_RTMP/main.cpp
/// Contains the main code for the RTMP Connector
//debugging level 0 = nothing
//debugging level 1 = critical errors
//debugging level 2 = errors
//debugging level 3 = status information
//debugging level 4 = extremely verbose status information
#define DEBUG 4
#include <iostream>
#include <cstdlib>
#include <cstdio>

View file

@ -2,7 +2,9 @@ SRC = main.cpp ../sockets/sw_base.cpp ../sockets/sw_inet.cpp ../sockets/sw_unix.
OBJ = $(SRC:.cpp=.o)
OUT = Connector_RTSP
INCLUDES = -I/usr/local/include/jthread/
CCFLAGS = -Wall -Wextra -funsigned-char -g
DEBUG = 4
OPTIMIZE = -g
CCFLAGS = -Wall -Wextra -funsigned-char $(OPTIMIZE) -DDEBUG=$(DEBUG)
CC = $(CROSS)g++
LD = $(CROSS)ld
AR = $(CROSS)ar

View file

@ -12,6 +12,12 @@ client-clean:
cd Connector_RAW; $(MAKE) clean
cd Buffer; $(MAKE) clean
clean: client-clean
client-release: client-clean
cd Connector_HTTP; $(MAKE) DEBUG=0 OPTIMIZE=-O2
cd Connector_RTMP; $(MAKE) DEBUG=0 OPTIMIZE=-O2
cd Connector_RAW; $(MAKE) DEBUG=0 OPTIMIZE=-O2
cd Buffer; $(MAKE) DEBUG=0 OPTIMIZE=-O2
release: client-release
client-install: client-clean client
cd Connector_RTMP; $(MAKE) install
cd Connector_HTTP; $(MAKE) install