Commit f14bec39 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Fix installation error and disable optimization in Makefile

parent 594cf1ed
PROG = str PROG = str
CXXFLAGS += -Wall -O2 -std=c++11 -I$(STAGING_DIR_HOST)/usr/include-uapi CXXFLAGS += -Wall -std=c++03 -I$(STAGING_DIR_HOST)/usr/include-uapi
LDFLAGS += -s -lpthread -lasound LDFLAGS += -s -pthread -lasound
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) STREAMER_OBJS = $(SRCS:.cpp=.o)
...@@ -18,14 +18,14 @@ IMAGEDIR = $(WWW_PAGES)/images ...@@ -18,14 +18,14 @@ IMAGEDIR = $(WWW_PAGES)/images
all: $(PROG) all: $(PROG)
$(PROG): $(STREAMER_OBJS) $(PROG): $(STREAMER_OBJS)
$(CXX) $(LDFLAGS) -o $@ $(STREAMER_OBJS) $(CXX) -o $@ $(STREAMER_OBJS) $(LDFLAGS)
%.o: %.cpp %.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $< $(CXX) $(CXXFLAGS) -c -o $@ $<
install: $(PROG) install: $(PROG)
$(INSTALL) $(OWN) -d $(DESTDIR)$(BINDIR) $(INSTALL) $(OWN) -d $(DESTDIR)$(BINDIR)
$(INSTALL) -m $(INSTMODE) $(OWN) $(PROGS) $(DESTDIR)$(BINDIR) $(INSTALL) -m $(INSTMODE) $(OWN) $(PROG) $(DESTDIR)$(BINDIR)
clean: clean:
rm -f *.o *.ver *.mp *~ core* .depend $(PROG) rm -f *.o *.ver *.mp *~ core* .depend $(PROG)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment