-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (29 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
CPP = g++
CXXFLAGS = -ansi -pedantic -Wall -Werror -Wconversion -std=c++0x -O3
CPPFLAGS = -I.
PROGRAM = HexViewer
SOURCES = Main.cpp \
./HexViewer.cpp \
./StringBuffer/StringBuffer.cpp \
./Style/IStyle.cpp \
./Style/HexDump/HexDump.cpp \
./Style/Hexyl/Hexyl.cpp \
./FileStream/LocalFile/LocalFile.cpp \
./Printer/IPrinter.cpp \
./Printer/DefaultPrinter/DefaultPrinter.cpp \
./DataProcessing/DataProcessing.cpp
OBJECTS = $(SOURCES:.cpp=.o)
$(PROGRAM): $(OBJECTS)
$(CPP) $(CXXFLAGS) $(CPPFLAGS) $(OBJECTS) -o $(PROGRAM)
include depends
depends:
$(CPP) $(CXXFLAGS) $(CPPFLAGS) -MM $(SOURCES) > depends
run:
@./$(PROGRAM)
gdb:
@gdb ./$(PROGRAM) -q
clean:
rm *.o depends $(PROGRAM)
find . -name '*.o' -type f -delete
# head -c 100MB < /dev/urandom > $(file_name)
# time ./$(PROGRAM) $(file_name) > /dev/null