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