diff options
author | notaz | 2012-05-01 00:39:05 +0300 |
---|---|---|
committer | notaz | 2012-05-27 20:11:00 +0300 |
commit | dd4d5a35678c8ff7f9a7c0ac42be354671534f96 (patch) | |
tree | fa3b4edac9a112bd15fb78c16f5992b080871211 /plugins/spunull | |
parent | b105cf4f5e168fdce54c6011533df76d196a917b (diff) | |
download | pcsx_rearmed-dd4d5a35678c8ff7f9a7c0ac42be354671534f96.tar.gz pcsx_rearmed-dd4d5a35678c8ff7f9a7c0ac42be354671534f96.tar.bz2 pcsx_rearmed-dd4d5a35678c8ff7f9a7c0ac42be354671534f96.zip |
automatically build plugins
Diffstat (limited to 'plugins/spunull')
-rw-r--r-- | plugins/spunull/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/spunull/Makefile b/plugins/spunull/Makefile index eb81cab..dcd25ea 100644 --- a/plugins/spunull/Makefile +++ b/plugins/spunull/Makefile @@ -1,12 +1,20 @@ -all: ../../config.mak spunull.so - include ../../config.mak -spunull.so: spunull.c +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) spunull.so + $(RM) $(TARGET) ../../config.mak: @echo "Please run ./configure before running make!" |