This repository was archived by the owner on Sep 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
84 lines (60 loc) · 1.34 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# MIT License
#
# Copyright (c) 2020 Ferhat Geçdoğan All Rights Reserved.
# Distributed under the terms of the MIT License.
#
#
# PATHS
SRCLIBDIREC = ./Library/
SRCSYNTAXDIREC = ./src/Syntax/
SRCDIREC = ./src/
PREFIX = /bin/
INCLUDEDIR = ./include/src/
CFLAGS = -c -Wall -I$(INCLUDEDIR)
GCC = gcc
GPP = g++
COMP = g++ -c
HECOMP = g++ -c -Wall $< -std=gnu++17 -o
# CLEAN
CLEANALL = scrilt
CLEAN = *.o
HEADERFILE = CommandFunc.o GetNameFunction.o FileFunction.o RunFunction.o \
Log.o History.o Template.o Configuration.o
ifeq ($(OS),Windows_NT)
echo Windows_NT is not supported!
#CLEAN := del $(CLEAN)
#CLEANALL := del $(CLEANALL)
else
CLEAN := rm -f $(CLEAN)
CLEANALL := rm -f $(CLEANALL)
endif
all: headersfile main clean
allp: headersfile mainc clean
removeall: uninstall cleanall
runall: all run
gra: runall git
git:
git add .
git commit -a
git push origin master
push:
git push origin master
nall: cleanall
headersfile: $(HEADERFILE)
%.o: $(SRCSYNTAXDIREC)%.cpp
$(GPP) $(CFLAGS) -c $< -o $@
main: $(SRCDIREC)Scrift.cpp
$(GPP) $< $(HEADERFILE) -o scrilt
echo Scrilt building successfully!
mainc: $(SRCDIREC)Scrift.cpp
$(GPP) $< $(HEADERFILE) -o /bin/scrilt
echo Scrilt building successfully in Bin Directory!
uninstall:
rm -f /bin/scrilt
run:
./scrilt
clean:
$(CLEAN)
cleanall:
echo Cleaning build directory!
$(CLEANALL)