diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-08-02 22:27:41 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-08-02 22:27:41 +0200 |
commit | 633a5f208350c7b9ad0974d31add2dc17acbe16a (patch) | |
tree | 5df722fc3fa6c82ffb572d96d055618458464b77 /Makefile |
Initial
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d8f92b8 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CXX = g++ +CXXFLAGS = -Wall -Wextra -std=c++11 -O2 -g -fwrapv +LDFLAGS = -llept -ltesseract + +.PHONY: all clean + +all: shot + +clean: + rm -f shot *.o + + +shot: $(patsubst %.cpp,%.o,$(wildcard *.cpp)) + $(CXX) -o $@ $^ $(LDFLAGS) + +%.o: %.cpp $(wildcard *.h) + $(CXX) $(CXXFLAGS) -c -o $@ $< |