-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
23 lines (20 loc) · 883 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
# Use C++ as the programming language
CXX = clang++
# -Wall shows all warning;
# -g shows all debugging info.
CXXFLAGS = -Wall -g -std=c++98 -stdlib=libc++
# Link main.o and decoder.o
main: main.o decoder.o decoder_helper.o json_writer.o fill_decoder.o line_decoder.o marker_decoder.o
$(CXX) $(CXXFLAGS) -o main main.o decoder.o decoder_helper.o json_writer.o fill_decoder.o line_decoder.o marker_decoder.o
# Compile main.o and decoder.o
main.o: main.cc decoder.hh decoder_helper.hh json_writer.hh fill_decoder.hh line_decoder.hh marker_decoder.hh
$(CXX) $(CXXFLAGS) -c main.cc
decoder.o: decoder_helper.hh decoder.hh fill_decoder.hh line_decoder.hh marker_decoder.hh
decoder_helper.o: decoder_helper.hh
fill_decoder.o: fill_decoder.hh
line_decoder.o: line_decoder.hh
marker_decoder.o: marker_decoder.hh
json_writer.o: json_writer.hh
# Clean unwanted files.
clean:
rm main *.o