Skip to content

Instantly share code, notes, and snippets.

@mmodenesi
mmodenesi / Makefile
Created August 31, 2019 23:40
pybind use case example
INCLUDES = $(shell python3 -m pybind11 --includes)
LIBS = -lpython3.6m
CCFLAGS = -O3 -Wall -shared -std=c++11 -fPIC
CC = g++
MODULE = someclass$(shell python3-config --extension-suffix)
TARGET = program
SOURCES = $(wildcard *.cc)
all: binding build