Commit 7006ae20 authored by Julius Plenz's avatar Julius Plenz

Restructure Makefile

parent bc787ab4
default:
default: all
all: cachestats cachedel nocache.so
cachestats: cachestats.c
gcc -Wall -o cachestats cachestats.c
cachedel: cachedel.c
gcc -Wall -o cachedel cachedel.c
nocache.o: nocache.c
gcc -Wall -fPIC -c -o nocache.o nocache.c
fcntl_helpers.o: fcntl_helpers.c
gcc -Wall -fPIC -c -o fcntl_helpers.o fcntl_helpers.c
gcc -Wall -shared -Wl,-soname,nocache.so.1 -ldl -o nocache.so nocache.o fcntl_helpers.o
nocache.so: nocache.o fcntl_helpers.o
gcc -Wall -shared -Wl,-soname,nocache.so -ldl -o nocache.so nocache.o fcntl_helpers.o
install: all
install -m 0644 nocache.so /usr/local/lib
install -m 0755 nocache.global /usr/local/bin/nocache
clean:
rm -f cachestats cachedel fcntl_helpers.o nocache.o nocache.so
#!/bin/sh
export LD_PRELOAD="/usr/local/lib/nocache.so"
exec "$@"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment