-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (56 loc) · 1.37 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
#/* -----------------------------------------------------------------------------
#
#FILE: xxx.CPP or xxx.HPP
#
#DESCRIPTION: A brief description of this source code file ...
#
#COMPILER: Linux g++ compiler
#NOTES: Put other information here ...
#
#MODIFICATION HISTORY:
#
#Author Date Version
#--------------- ---------- --------------
#Shawn Ray 2017-03-12 Version 1.0 started Project
#Shawn Ray 2017-03-19 Version 1.1 worked on variable usage for makes
#Shawn Ray 2017-03-19 Version 1.2
#Shawn Ray 2017-03-20 Version 1.3
#Shawn Ray 2017-03-30 Version 1.4 added clean targets
#----------------------------------------------------------------------------- */
CC = g++
OUTPUT = matrix_math
CXXFLAGS = -pedantic -std=c++11 -Wall -g
OBJS = matrix_math.o #non-classes
LIBS = #libraries
DEPS = Matrix.o #classes = DEPS
#
#
#
#
#
all: $(OUTPUT)
$(OUTPUT): $(OBJS) $(DEPS)
$(CC) $(CCXXFLAGS) $(OBJS) $(DEPS) -o $(OUTPUT) $(LIBS)
#
#
#
#
#
#
Matrix.o : Matrix.cpp Matrix.h
$(CC) $(CXXFLAGS) -c Matrix.cpp $(LIBS)
#
#
#
clean:
rm -f $(OUTPUT)
rm -f *.o
#
reset
@echo Make clean, removed object and executable files ...
@echo Contents in this Directory ...
ls -lt
#
#
#
#