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
Show 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
PROG
=
str
AXIS_AUTO_DEPEND
=
yes
CXXFLAGS
+=
-Wall
-O2
-I
$(STAGING_DIR_HOST)
/usr/include-uapi
-include
$(AXIS_TOP_DIR)/tools/build/Rules.axis
LDFLAGS
+=
-s
-lpthread
-lasound
INSTALL
?=
install_elinux
INSTALL_PATH
=
$(prefix)
/usr/local
INCDIR
=
$(AXIS_KERNEL_DIR)
/include
LDFLAGS
=
-Wl
-s
-L
$(prefix)
/lib
-lpthread
-lasound
CXXFLAGS
=
-Wall
-O2
-I
$(INCDIR)
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
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
)
PROG
=
str
INSTALL
=
install
all
:
dependency $(PROG)
INSTMODE
=
0755
INSTDOCS
=
0644
OWN
=
-o
root
-g
root
clean
:
SYSCONFDIR
=
/etc/
rm
-f
*
.o
*
.ver
*
.mp
*
~ core
*
$(PROG)
BINDIR
=
/usr/bin/
WWW_PAGES
=
/www/pages
IMAGEDIR
=
$(WWW_PAGES)
/images
all
:
$(PROG)
$(PROG)
:
$(STREAMER_OBJS)
$(PROG)
:
$(STREAMER_OBJS)
$(CXX)
$(LDFLAGS)
-o
$@
$(STREAMER_OBJS)
-lpthread
-asound
$(CXX)
$(LDFLAGS)
-o
$@
$(STREAMER_OBJS)
%.o
:
%.cpp
%.o
:
%.cpp
$(CXX)
$(CXXFLAGS)
-c
-o
$@
$<
$(CXX)
$(CXXFLAGS)
-c
-o
$@
$<
#install: $(PROG)
install
:
$(PROG)
install
:
clean $(PROG)
$(INSTALL)
$(OWN)
-d
$(DESTDIR)$(BINDIR)
$(INSTALL)
$(PROG)
$(INSTALL_PATH)
/bin/
$(PROG)
$(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