-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (41 loc) · 962 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
48
# Install the 'make' utility
# sudo yum install make
#
# Install the gcc compiler suite and associated libraries
# sudo yum install gcc
#
# Install the g++ compiler for C++
# sudo yum install gcc-c++
#
#
# The format of each recipe is:
# <recipe_name>: <dependency 1> <dependency 2> ....
# <command to build recipe_name using <dependency 1> <dependency 2> and so on
#
# One key reminder is the line with the command must start
# with a "tab" character. Spaces are not sufficient
#
#
# Run 'make all' from the command line to build all three programs
#
all: qadmin qtool qworker
#
#
#
clean:
rm qadmin qtool qworker
#
# Run 'make qadmin' to build the qadmin tool
#
qadmin: qadmin.cpp
g++ -std=c++17 qadmin.cpp -o qadmin
#
# Run 'make qtool' to build the qadmin tool
#
qtool: qtool.cpp
g++ -std=c++17 qtool.cpp -o qtool
#
# Run 'make qworker' to build the qadmin tool
#
qworker: qworker.cpp jobs.cpp jobs.h
g++ -std=c++17 qworker.cpp jobs.cpp -o qworker