Skip to content

Instantly share code, notes, and snippets.

@sainisanjay
Forked from kevinhughes27/Makefile
Created February 17, 2018 13:43
Show Gist options
  • Save sainisanjay/e15bf163c58a1cc8c3eb271d142edaa2 to your computer and use it in GitHub Desktop.
Save sainisanjay/e15bf163c58a1cc8c3eb271d142edaa2 to your computer and use it in GitHub Desktop.
g++ Makefile for OpenCV Project
CC = g++
CFLAGS = -g -Wall
SRCS = HelloWorld.cpp
PROG = HelloWorld
OPENCV = `pkg-config opencv --cflags --libs`
LIBS = $(OPENCV)
$(PROG):$(SRCS)
$(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(LIBS)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment