-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 803 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 803 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
30
31
32
# TERMINAL FILE FINDER (MAKEFILE) #
# ONLY WORK ON LINUX #
CC = g++ # C++ COMPILER
c17 = -std=c++17 # COMPILE STANDARD
main = src/main.cpp # MAIN FILE
file = src/file.cpp
util = src/util.cpp
conf = src/conf.cpp
ui = src/ui.cpp
lib = $(file) $(util) $(conf) $(ui) # UTILITY FILES BUFFER
output = tff # COMPLIED FILE
exe = ./tff # EXECUTE COMMAND
delete = rm # DELETE COMMAND FOR LINUX
.PHONY: run clean install uninstall
run: $(main) $(lib) # COMPILE IF 'main' AND 'lib' BUFFERS EXIST
$(CC) $(c17) $(main) $(lib) -o $(output)
clean: $(output) # DELETE COMPILED FILE IF COMPILED
$(delete) $(output)
install: $(output) # INSTALL THE APPLICATION IF COMPILED FILE EXIST
$(exe) -install
uninstall: $(output) # UNINSTALL THE APPLICATION IF COMPILED FILE EXIST
$(exe) -uninstall
# MADE BY @hanilr #