-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 893 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#############################################################################
# Makefile for building: webrtc_pull_rtsp
#############################################################################
ARCH ?= x86
MAKEFILE = Makefile
CXX = g++
CXXFLAGS = -pipe -g -Wall -W -fPIC -std=gnu++11 -fno-rtti -fpermissive -fno-threadsafe-statics -fno-exceptions
INCPATH = -I.
DEL_FILE = rm -f
LINK = g++
LFLAGS =
LIBS = -L./lib/$(ARCH) -lWebRTCEmbeddedSDK -ldl -lpthread -lrt -lm
####### Files
OBJECTS = main.o
TARGET = webrtc_pull_rtsp
####### Build rules
$(TARGET): $(OBJECTS)
$(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(LIBS)
all: Makefile $(TARGET)
clean:
$(DEL_FILE) $(OBJECTS)
$(DEL_FILE) $(TARGET)
####### Compile
main.o: main.cpp sdkapi.h
$(CXX) -c $(CXXFLAGS) $(INCPATH) -o main.o main.cpp