Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-apps-astreamer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-apps-astreamer
Commits
6e2f0b2d
Commit
6e2f0b2d
authored
Feb 16, 2017
by
Mikhail Karpenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Makefile
parent
bed6a001
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
19 deletions
+28
-19
Makefile
src/Makefile
+28
-19
No files found.
src/Makefile
View file @
6e2f0b2d
AXIS_USABLE_LIBS
=
UCLIBC GLIBC
AXIS_AUTO_DEPEND
=
yes
-include
$(AXIS_TOP_DIR)/tools/build/Rules.axis
INSTALL
?=
install_elinux
INSTALL_PATH
=
$(prefix)
/usr/local
INCDIR
=
$(AXIS_KERNEL_DIR)
/include
PROG
=
str
CXXFLAGS
+=
-Wall
-O2
-I
$(STAGING_DIR_HOST)
/usr/include-uapi
LDFLAGS
+=
-s
-lpthread
-lasound
LDFLAGS
=
-Wl
-s
-L
$(prefix)
/lib
-lpthread
-lasound
CXXFLAGS
=
-Wall
-O2
-I
$(INCDIR
)
SRCS
=
main.cpp streamer.cpp audio.cpp video.cpp socket.cpp rtsp.cpp rtp_stream.cpp helpers.cpp parameters.cpp
STREAMER_OBJS
=
$
(
SRCS:.cpp
=
.o
)
STREAMER_OBJS
=
main.o streamer.o audio.o video.o socket.o rtsp.o rtp_stream.o helpers.o parameters.o
SRCS
=
main.cpp streamer.cpp audio.cpp video.cpp socket.cpp rtsp.cpp rtp_stream.cpp helpers.cpp parameters.cpp
INSTALL
=
install
INSTMODE
=
0755
INSTDOCS
=
0644
OWN
=
-o
root
-g
root
PROG
=
str
all
:
dependency $(PROG)
SYSCONFDIR
=
/etc/
BINDIR
=
/usr/bin/
WWW_PAGES
=
/www/pages
IMAGEDIR
=
$(WWW_PAGES)
/images
clean
:
rm
-f
*
.o
*
.ver
*
.mp
*
~ core
*
$(PROG)
all
:
$(PROG)
$(PROG)
:
$(STREAMER_OBJS)
$(CXX)
$(LDFLAGS)
-o
$@
$(STREAMER_OBJS)
-lpthread
-asound
$(CXX)
$(LDFLAGS)
-o
$@
$(STREAMER_OBJS)
%.o
:
%.cpp
$(CXX)
$(CXXFLAGS)
-c
-o
$@
$<
#install: $(PROG)
install
:
clean $(PROG)
$(INSTALL)
$(PROG)
$(INSTALL_PATH)
/bin/
$(PROG)
install
:
$(PROG)
$(INSTALL)
$(OWN)
-d
$(DESTDIR)$(BINDIR)
$(INSTALL)
-m
$(INSTMODE)
$(OWN)
$(PROGS)
$(DESTDIR)$(BINDIR)
clean
:
rm
-f
*
.o
*
.ver
*
.mp
*
~ core
*
.depend
$(PROG)
depend
:
.depend
.depend
:
$(SRCS)
rm
-f
./.depend
$(CXX)
$(CXXFLAGS)
-MM
$^
>
./.depend
;
configsubs
:
include
.depend
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment