OBJECTS = DemHist convexhull delaunay distrans drawing edge facedetect ffilldemo fitellipse kalman kmeans laplace minarea morphology motempl pyramid_segmentation squares

all: $(OBJECTS)

clean:
	rm -f $(OBJECTS)

DemHist: DemHist.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

convexhull: convexhull.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

delaunay: delaunay.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

distrans: distrans.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

drawing: drawing.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

edge: edge.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

facedetect: facedetect.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui cvaux`

ffilldemo: ffilldemo.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

fitellipse: fitellipse.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

kalman: kalman.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

kmeans: kmeans.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

laplace: laplace.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

minarea: minarea.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

morphology: morphology.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

motempl: motempl.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

pyramid_segmentation: pyramid_segmentation.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

squares: squares.c
	$(CXX) $^ -o $@ `opencv-config --cxxflags --libs highgui`

