-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile.am
43 lines (40 loc) · 1.62 KB
/
Makefile.am
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
AUTOMAKE_OPTIONS = foreign
SUBDIRS = mtcp/src apps/example apps/epproxy #io_engine/lib
install-man:
@echo -e "\e[1;34mPlacing the man pages in the $(prefix)/man/man3/ directory $<\e[0m"
@ mkdir -p $(prefix)/man/
@ mkdir -p $(prefix)/man/man3/
@ cp docs/man/* $(prefix)/man/man3/
@echo -e "\e[1;34mUpdating man pages cache $<\e[0m"
@ mandb > /dev/null 2> /dev/null
uninstall:
@echo -e "\e[1;34mCleaning up... $<\e[0m"
@ rm -rf $(prefix)/mtcp
@ rm -rf $(prefix)/man/man3/mtcp_*
@echo -e "\e[1;34mUpdating man pages cache $<\e[0m"
@ mandb > /dev/null 2> /dev/null
if DPDK
install: all install-man
@echo -e "\e[1;34mPlacing the libraries in the $(prefix)/mtcp/lib directory $<\e[0m"
@ mkdir -p $(prefix)/mtcp/
@ mkdir -p $(prefix)/mtcp/lib
@ mkdir -p $(prefix)/mtcp/bin
@ mkdir -p $(prefix)/mtcp/include
@ cp mtcp/lib/libmtcp.a $(prefix)/mtcp/lib/
@ cp dpdk/lib/* $(prefix)/mtcp/lib/
@ cp -rL dpdk/include/* $(prefix)/mtcp/include/
@ cp mtcp/include/* $(prefix)/mtcp/include/
@echo -e "\e[1;34mPlacing the binaries in the $(prefix)/mtcp/bin directory $<\e[0m"
@ cp `find apps/example/ -type f -executable -perm /a+x` $(prefix)/mtcp/bin/
else
install: all install-man
@echo -e "\e[1;34mPlacing the libraries in the $(prefix)/mtcp/lib directory $<\e[0m"
@ mkdir -p $(prefix)/mtcp/
@ mkdir -p $(prefix)/mtcp/lib
@ mkdir -p $(prefix)/mtcp/bin
@ mkdir -p $(prefix)/mtcp/include
@ cp mtcp/lib/libmtcp.a $(prefix)/mtcp/lib/
@ cp mtcp/include/* $(prefix)/mtcp/include/
@echo -e "\e[1;34mPlacing the binaries in the $(prefix)/mtcp/bin directory $<\e[0m"
@ cp `find apps/example/ -type f -executable -perm /a+x` $(prefix)/mtcp/bin/
endif