updated makefile
This commit is contained in:
parent
fa898e2d79
commit
30c043d087
23
Makefile
23
Makefile
|
@ -1,16 +1,19 @@
|
|||
default: imageviewer smooth edgedetect
|
||||
CC = g++
|
||||
CCFLAGS = -std=c++14 -Wall
|
||||
|
||||
imageviewer: folder src/Bild.cpp src/ImageViewer.cpp
|
||||
clang++ -o build/imageviewer src/Bild.cpp src/ImageViewer.cpp -I include -std=c++14 -Weverything -Wno-c++98-compat
|
||||
all: bin/imageviewer bin/smooth bin/edgedetect
|
||||
|
||||
smooth: folder src/Bild.cpp src/Smooth.cpp
|
||||
clang++ -o build/smooth src/Bild.cpp src/Smooth.cpp -I include -std=c++14 -Weverything -Wno-c++98-compat
|
||||
imageviewer: bin/imageviewer
|
||||
smooth: bin/smooth
|
||||
edgedetect: bin/edgedetect
|
||||
|
||||
edgedetect: folder src/Bild.cpp src/EdgeDetect.cpp
|
||||
clang++ -o build/edetect src/Bild.cpp src/EdgeDetect.cpp -I include -std=c++14 -Weverything -Wno-c++98-compat
|
||||
%.o: src/%.cpp include/bild.hpp
|
||||
@mkdir -p $(@D)
|
||||
$(CC) -Iinclude -c $< -o $@ $(CCFLAGS)
|
||||
|
||||
folder:
|
||||
mkdir -p build
|
||||
bin/%: %.o bild.o
|
||||
@mkdir -p $(@D)
|
||||
$(CC) $^ -o $@
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
@rm -rf bin
|
8795
res/f14_modified.ascii.pgm
Normal file
8795
res/f14_modified.ascii.pgm
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,4 +1,4 @@
|
|||
#include "Bild.hpp"
|
||||
#include "bild.hpp"
|
||||
|
||||
#include <iostream>
|
||||
#include <sstream>
|
|
@ -2,7 +2,7 @@
|
|||
* Reads a PGM file and performs edge detection, then writes the result to disk
|
||||
*/
|
||||
#include <iostream>
|
||||
#include "Bild.hpp"
|
||||
#include "bild.hpp"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
* Displays a given PGM image in the console using ASCII characters
|
||||
*/
|
||||
#include <iostream>
|
||||
#include "Bild.hpp"
|
||||
#include "bild.hpp"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
|
@ -2,7 +2,7 @@
|
|||
* Reads a PGM image and smooths it by some amount, then writes it back to disk
|
||||
*/
|
||||
#include <iostream>
|
||||
#include "Bild.hpp"
|
||||
#include "bild.hpp"
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
Loading…
Reference in a new issue