| 1 | # Copyright (C) 2016 Daniel Watson |
| 2 | # See the end of the file for license conditions. |
| 3 | # GNU AGPLv3 (or later at your option) |
| 4 | # https://challenge-bot.com/ |
| 5 | |
| 6 | CFLAGS = `pkg-config --cflags opencv` |
| 7 | LIBS = `pkg-config --libs opencv` |
| 8 | |
| 9 | % : %.cpp |
| 10 | g++ $(CFLAGS) $(LIBS) -o $@ $< |
| 11 | |
| 12 | all: opencv-hello-world |
| 13 | |
| 14 | 1: all |
| 15 | ./opencv-hello-world 1 |
| 16 | eog . |
| 17 | |
| 18 | 0: all |
| 19 | ./opencv-hello-world 0 |
| 20 | eog . |
| 21 | |
| 22 | clean: |
| 23 | rm image.png image-grey.png |
| 24 | |
| 25 | # This file is part of challenge-bot. |
| 26 | |
| 27 | # Challenge-bot is free software: you can redistribute it and/or modify |
| 28 | # it under the terms of the GNU Affero General Public License as published by |
| 29 | # the Free Software Foundation, either version 3 of the License, or |
| 30 | # (at your option) any later version. |
| 31 | |
| 32 | # GNU Affero Emacs is distributed in the hope that it will be useful, |
| 33 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 34 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 35 | # GNU Affero General Public License for more details. |
| 36 | |
| 37 | # You should have received a copy of the GNU Affero General Public License |
| 38 | # along with challenge-bot. If not, see <http://www.gnu.org/licenses/>. |