Commit | Line | Data |
---|---|---|
1 | include ../../config.mak | |
2 | ||
3 | TARGET = spunull.so | |
4 | WD = $(shell pwd) | |
5 | PLUGINDIR = $(shell basename $(WD)) | |
6 | ||
7 | all: ../../config.mak $(TARGET) | |
8 | ||
9 | $(TARGET): spunull.c | |
10 | $(CC) $(CFLAGS) -shared -fPIC -ggdb -O2 -o $@ $^ | |
11 | ln -fs $(PLUGINDIR)/$(TARGET) ../ | |
12 | ||
13 | clean: | |
14 | $(RM) $(TARGET) | |
15 | ||
16 | ../../config.mak: | |
17 | @echo "Please run ./configure before running make!" | |
18 | @exit 1 |