-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
78 lines (61 loc) · 2.89 KB
/
Makefile
File metadata and controls
78 lines (61 loc) · 2.89 KB
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
# Make File
#><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
#><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
#
# /*$$$$$ /$$ /$$$$$$ /$$
# /$$__ $$ | $$ /$$__ $$|__/
#| $$ \__/ /$$$$$$ | $$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ | $$ \__/ /$$ /$$$$$$/$$$$
#| $$$$$$ /$$__ $$| $$__ $$ /$$__ $$ /$$__ $$ /$$__ $$| $$$$$$ | $$| $$_ $$_ $$
# \____ $$| $$ \ $$| $$ \ $$| $$$$$$$$| $$ \__/| $$ \ $$ \____ $$| $$| $$ \ $$ \ $$
# /$$ \ $$| $$ | $$| $$ | $$| $$_____/| $$ | $$ | $$ /$$ \ $$| $$| $$ | $$ | $$
#| $$$$$$/| $$$$$$$/| $$ | $$| $$$$$$$| $$ | $$$$$$/| $$$$$$/| $$| $$ | $$ | $$
# \______/ | $$____/ |__/ |__/ \_______/|__/ \______/ \______/ |__/|__/ |__/ |__/
# | $$
# | $$
# |_*/
#><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
#><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
#######################################################################################
# #
# File : Makefile (GNU LINUX makefile) #
# Author : Biplab Ghosh #
# Creation date : May 19, 2006 #
# #
#######################################################################################
#!/bin/sh
#local source dir:
SRCDIR= .
#Directory path of source:
BASEDIR= .
#C++ compilers and flags:
CPP = g++
OPTIONS = -o
CPPFLAGS = -c -O2 -std=c++11
#executable target:
NAME=lang
#Destination of the final binary file:
DEST=$(BASEDIR)/$(NAME)
#SHELL commands:
RM= /bin/rm -f
MV= /bin/mv -f
#Source files:
CPPFILES = $(SRCDIR)/main.cpp
#Object files:
OFILES = $(CPPFILES:.cpp=.o)
.cpp.o :
$(CPP) $(CPPFLAGS) $<
$(NAME): $(OFILES)
$(CPP) $(OFILES) $(OPTIONS) $(DEST)
#Prompt : Compilation Done
@tput enacs; tput smacs; tput bold; echo "lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk"; echo -n "x"; tput rmacs; \
echo -n " Compilation Done "; \
tput smacs; echo "x"; echo "mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj";tput rmacs;tput sgr0
# enacs = Enable alternate character set
# smacs = Begin alternate character set
# rmacs = End alternate character set
# bold = Begin double intensity mode
# sgr0 = Turn off all attributes
clean:
$(RM) $(OFILES) *.gch
allclean:
$(RM) $(OFILES) $(DEST)