aboutsummaryrefslogtreecommitdiff
path: root/plugins/spunull/Makefile
blob: fcfec80ef73618b160b3f263deef1c4a2534dab7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
include ../../config.mak

TARGET = spunull.so
WD = $(shell pwd)
PLUGINDIR = $(shell basename $(WD))

all: ../../config.mak $(TARGET)

$(TARGET): spunull.c
	$(CC) $(CFLAGS) -shared -fPIC -ggdb -O2 -o $@ $^
	ln -fs $(PLUGINDIR)/$(TARGET) ../

clean:
	$(RM) $(TARGET)

../../config.mak:
	@echo "Please run ./configure before running make!"
	@exit 1