This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
61 lines (53 loc) · 1.45 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Tested on Mac OS X 10.8.2 (12C60)
# Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
# Target: x86_64-apple-darwin12.2.0 Thread model: posix
# GNU Make 3.81 for i386-apple-darwin11.3.0
# GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)
CXX=clang++
CXXFLAGS=-std=c++11 -stdlib=libc++ -O3
CXXDEBUGFLAGS=-Weverything -std=c++11 -stdlib=libc++ -g -O0
all: spellchecker.out wordgenerator.out
debug: spellcheckerdbg.out wordgeneratordbg.out
spellchecker.out:
$(CXX) $(CXXFLAGS) spellchecker.cpp -o spellchecker.out
wordgenerator.out:
$(CXX) $(CXXFLAGS) wordgenerator.cpp -o wordgenerator.out
spellcheckerdbg.out:
$(CXX) $(CXXDEBUGFLAGS) spellchecker.cpp -o spellcheckerdbg.out
wordgeneratordbg.out:
$(CXX) $(CXXDEBUGFLAGS) wordgenerator.cpp -o wordgeneratordbg.out
.PHONY: clean
.SILENT: clean
clean:
if [ -a spellchecker.out ]; \
then \
rm spellchecker.out; \
fi; \
if [ -a wordgenerator.out ]; \
then \
rm wordgenerator.out; \
fi; \
if [ -a spellcheckerdbg.out ]; \
then \
rm spellcheckerdbg.out; \
fi; \
if [ -a wordgeneratordbg.out ]; \
then \
rm wordgeneratordbg.out; \
fi; \
if [ -a spellcheckerdbg.out.dSYM ]; \
then \
rm -r spellcheckerdbg.out.dSYM; \
fi; \
if [ -a wordgeneratordbg.out.dSYM ]; \
then \
rm -r wordgeneratordbg.out.dSYM; \
fi; \
if [ -a verificationresults.txt ]; \
then \
rm verificationresults.txt; \
fi; \
if [ -a wordsgenerated.txt ]; \
then \
rm wordsgenerated.txt; \
fi;