-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (33 loc) · 922 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
# Course: Síové aplikace a správa sítí
# Project: Projekt - Sniffer CDP a LLDP
# Author: Radim Loskot, [email protected]
# Date: 11. 11. 2011
#
# Universal Makefile which calls script run_make.sh
#
# Usage:
# - make compile project - release version
# - make pack packs all required files to compile this project
# - make clean clean temp compilers files
# - make clean-all clean all compilers files - includes project
# - make clean-outp clean output project files
#
MK_SCRIPT=run_make.sh
all:
chmod +x $(MK_SCRIPT)
./$(MK_SCRIPT)
.PHONY: clean clean-all clean-outp pack test debug release run
pack:
./$(MK_SCRIPT) pack
clean:
./$(MK_SCRIPT) clean
clean-outp:
./$(MK_SCRIPT) clean-outp
clean-all: clean clean-outp
./$(MK_SCRIPT) clean-all
debug:
./$(MK_SCRIPT) -B all CXXOPT=-g3
release:
./$(MK_SCRIPT) -B all CXXOPT=-O3
run:
./$(MK_SCRIPT) run