-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (22 loc) · 728 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (22 loc) · 728 Bytes
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
################################################################
# Project: Chat server using IPK24-CHAT protocol
# File: Makefile
# Author: Adam Ližičiar xlizic00@stud.fit.vutbr.cz
################################################################
COMPILER = g++
COMPILER_FLAGS = -std=c++20 -Wall -Wextra -Werror
PROGRAM_NAME = ipk24chat-server
.PHONY: make run test clean pack
make: src/main.cpp
$(COMPILER) $(COMPILER_FLAGS) src/main.cpp -o $(PROGRAM_NAME)
run: make
./$(PROGRAM_NAME)
test: make
g++ test/test.cpp -o test/runTests -lgtest -lgtest_main
./test/runTests
clean:
rm -f test/runTests
rm -f *.exe *.out *.core *.zip
rm -f $(PROGRAM_NAME)
pack:
zip -r xlizic00.zip filter-out .vscode,$(wildcard *)