-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
37 lines (37 loc) · 1.21 KB
/
makefile
File metadata and controls
37 lines (37 loc) · 1.21 KB
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
# Copyright 2021, Pejman Taslimi
# You may distribute under the terms of either the GNU General Public
# License or the Artistic License, as specified in the MYLICENSE file.
#
# FILENAME :
# DESCRIPTION :
#
# Author : Mani Tasl
# Date : Jun 2021.
#
#
LIBS=-lpcap -lpthread -LFTXUI/lib -lcomponent -lscreen -ldom -L.
# LIBS=-lboost_regex -lpcap
LIBCAP=-lcaptureFuncs
INC=-IFTXUI/include -I.
CXXFLAG=-std=c++17
all: toggle capture truncate libcaptureFuncs.a captureFuncs.o captureFuncsMain capui
code01: code01.cpp
$(CXX) $(CXXFLAG) -o $@ $@.cpp $(LIBS)
code02: code02.cpp
$(CXX) $(CXXFLAG) -o $@ $@.cpp $(LIBS)
capture: capture.cpp
$(CXX) $(CXXFLAG) -o $@ $@.cpp $(LIBS)
truncate: truncate.cpp
$(CXX) $(CXXFLAG) -o $@ $@.cpp $(LIBS)
toggle: toggle.cpp
$(CXX) $(CXXFLAG) -o $@ $@.cpp $(INC) $(LIBS)
capui: capui.cpp capui.h
$(CXX) $(CXXFLAG) -o $@ $@.cpp $(INC) $(LIBS) $(LIBCAP)
captureFuncsMain: captureFuncsMain.cpp
$(CXX) $(CXXFLAG) -o $@ $@.cpp $(INC) $(LIBS) $(LIBCAP)
captureFuncs: captureFuncs.cpp
$(CXX) $(CXXFLAG) -c $@ $@.cpp $(INC) $(LIBS)
libcaptureFuncs.a: captureFuncs.o
ar rcs $@ captureFuncs.o
clean:
rm capture truncate toggle capui libcaptureFuncs.a captureFuncsMain captureFuncs.o