aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: d8f92b8b5f67540a4afe80cf749f704831731740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 $@ $<