-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·43 lines (31 loc) · 818 Bytes
/
Makefile
File metadata and controls
executable file
·43 lines (31 loc) · 818 Bytes
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
35
36
37
38
39
40
41
42
43
CXX = g++
CXXFLAGS = -O2
INCPATH = -I
DIR_SRC = ./src/
DIR_INC = ./include/
DIR_BUILD = ./build/
DIR_LIB = ./lib/
DIR_BIN = ./bin/
LINK = g++
LFLAGS =
# LIBS = -L/usr/lib/i386-linux-gnu -lpthread
LIBS = -lpthread -I/usr/local/ssl/include/ -lssl -lcrypto -ldl -L/usr/local/ssl/lib -L$(DIR_LIB) -lx264 -I$(DIR_INC)
INSTALL_FILE = install -m 777 -p
objects :=$(wildcard ${DIR_SRC}*.cpp)
objects +=$(wildcard ${DIR_SRC}*.c)
cur_dir := $(shell pwd)
host_name := $(shell whoami)
host_type := $(shell arch)
#模式规则
# %.o: %.cpp %.c
# $(CXX) -c $(CXXFLAGS) -o $@ $<
.PHONY: all clean
all = RTSP
$(all): $(objects)
@echo $(objects)
$(CXX) $(LFLAGS) -o $@ $^ $(LIBS)
mv $(all) $(DIR_BIN)
clean:
-rm -f $(all) *.d *.o
install:
-$(INSTALL_FILE) RTSP ~/Desktop