-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (34 loc) · 1010 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
35
36
37
38
39
40
41
42
43
44
45
46
47
# /**
# * @file Makefile
# * @author Andrej Nano (xnanoa00)
# * @date 2018-10-01
# * @version 0.1
# *
# * @brief ISA 2018, Export DNS informací pomocí protokolu Syslog
# *
# * @desc Cílem projektu je vytvořit aplikaci, která bude umět zpracovávat data protokolu DNS (Domain Name System) a vybrané statistiky exportovat pomocí protokolu Syslog na centrální logovací server.
# */
# Distribution archive name
TARNAME = xnanoa00
# Executable file name
EXEC = dns-export
# Source c++ files
SRC_FILES := $(wildcard src/*.cc)
# Optimization level
OPTIMIZE = -O2
# Compiling flags
CXXFLAGS = -std=c++11 -Wall -Wextra -lpcap -lpthread -D__FAVOR_BSD
# -----------------------------
all: build
.PHONY: clean run pack test
build: src/$(EXEC).cc
g++ $(CXXFLAGS) $(SRC_FILES) -o $(EXEC)
clean:
rm $(TARNAME).tar
# TODO: add all required files
pack:
tar $(TARNAME).tar $(SRC_FILES) Makefile
run:
make -B && ./$(EXEC)
test:
make -B && python3 ./tests/run.py