-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
28 lines (20 loc) · 812 Bytes
/
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
# SRCS=bitpostodec.cpp bitpos.cpp powerof2.cpp printTwosComplement.cpp sortAlgorithms/sort.cpp
# Replace .cpp in SRCS with .o
# OBJS=$(subst .cpp,.o,$(SRCS))
CXX=g++
binaries = bitpostodec bitpos powerof2 printTwosComplement sortAlgorithms/sort
all: $(binaries)
bitpostodec: bitpostodec.cpp
$(CXX) -o bitpostodec bitpostodec.cpp
bitpos: bitpos.cpp
$(CXX) -o bitpos bitpos.cpp
powerof2: powerof2.cpp
$(CXX) -o powerof2 powerof2.cpp
printTwosComplement: printTwosComplement.cpp
$(CXX) -o printTwosComplement printTwosComplement.cpp
# Extra compile options to get the symbol info for stacktrace dumping
# $(CXX) -g -std=c++1y -rdynamic -o sort sort.cpp // For dynarray compilation
sort: sortAlgorithms/sort.cpp
$(CXX) -g -rdynamic -o sortAlgorithms/sort sortAlgorithms/sort.cpp
clean:
rm $(binaries)