-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
52 lines (30 loc) · 662 Bytes
/
Copy pathMakefile
File metadata and controls
52 lines (30 loc) · 662 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
########################################
##
## Makefile
## LINUX compilation
##
##############################################
#FLAGS
C++FLAG = -g -std=c++11 -Wall
#Math Library
MATH_LIBS = -lm
EXEC_DIR=.
#Rule for .cc files
# .SUFFIXES : .cc.o
.cc.o:
g++ $(C++FLAG) $(INCLUDES) -c $< -o $@
#Including
INCLUDES= -I.
LIBS_ALL = -L/usr/lib -L/usr/local/lib $(MATH_LIBS)
#ZEROTH PROGRAM
ALL_OBJ0=test_hash_map.o
PROGRAM_0=test_hash_map
$(PROGRAM_0): $(ALL_OBJ0)
g++ $(C++FLAG) -o $(EXEC_DIR)/$@ $(ALL_OBJ0) $(INCLUDES) $(LIBS_ALL)
#Compiling all
all:
make $(PROGRAM_0)
#Clean obj files
clean:
(rm -f *.o; rm -f $(PROGRAM_0))
(: