-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·38 lines (32 loc) · 767 Bytes
/
makefile
File metadata and controls
executable file
·38 lines (32 loc) · 767 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
33
34
35
36
37
38
CXX = g++
CXXFLAGS = -Wall -Werror -ansi -pedantic
#CXXFLAGS = -g
OBJECTS =
srcDIR="src"
MAIN = src/rshell.cpp
EXE = rshell
HEADERS = src/shell.h src/parse.h src/connector.h src/command.h src/commandnode.h
CPP =
TAR = rshell.tar
TARLIST = rshell.cpp $(CPP) $(HEADERS) $(DICTLIST) $(EXE)
EXEDIR=bin
#createDIR :=$(bash mkdir -p $(EXEDIR))
all: $(HEADERS) $(MAIN)
#Figure out a better way to do this
mkdir -p $(EXEDIR)
$(CXX) $(CXXFLAGS) -o $(EXEDIR)/$(EXE) $(MAIN)
rshell: $(HEADERS) $(MAIN)
#Figure out a better way to do this
mkdir -p $(EXEDIR)
$(CXX) $(CXXFLAGS) -o $(EXEDIR)/$(EXE) $(MAIN)
run:
make clean
make all
$(EXEDIR)/$(EXE)
clear:
clear
clear
clear
# remove unnecessary files
clean:
rm -rf *~ *.o a.out $(EXEDIR)/* $(EXEDIR) $(EXE)