-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (26 loc) · 887 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (26 loc) · 887 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
# Makefile for Writing Make Files Example
# *****************************************************
# Variables to control Makefile operation
CXX = g++
CXXFLAGS = -std=c++11 -Wall -g
# ****************************************************
# Targets needed to bring the executable up to date
ifeq ($(OS), Windows_NT)
all: decode-file.exe
decode-file.exe: decode-file.o base64.o
$(CXX) $(CXXFLAGS) -o decode-file.exe decode-file.o base64.o
decode-file.o: decode-file.cpp base64.hpp
$(CXX) $(CXXFLAGS) -c decode-file.cpp
base64.o: base64.cpp base64.hpp
clean:
del *.obj *.exe *.o *.out
else
all: decode-file.out
decode-file.out: decode-file.o base64.o
$(CXX) $(CXXFLAGS) -o decode-file.out decode-file.o base64.o
decode-file.o: decode-file.cpp base64.hpp
$(CXX) $(CXXFLAGS) -c decode-file.cpp
base64.o: base64.cpp base64.hpp
clean:
rm --force *.obj *.exe *.o *.out
endif