blob: dcd25eac5c66bb33e5b3c6bc354447380a61d2a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
include ../../config.mak
ifneq "$(ARCH)" "arm"
EXT = .$(ARCH)
endif
TARGET = spunull.so$(EXT)
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
|