Skip to content

Instantly share code, notes, and snippets.

View JosephRedfern's full-sized avatar

Joseph Redfern JosephRedfern

View GitHub Profile
@dutc
dutc / Makefile
Last active July 23, 2018 23:08
Making LD_PRELOAD/LD_AUDIT modules with Python
.PHONY: all clean test
PYTHON_CONFIG = python3-config
CC = gcc -std=gnu11
CFLAGS = `$(PYTHON_CONFIG) --cflags`
INCLUDES = `$(PYTHON_CONFIG) --includes`
LIBS = `$(PYTHON_CONFIG) --libs`
LD_PATH = `$(PYTHON_CONFIG) --prefix`/lib