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