notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backport check for Thumb instructions from configure script
[pcsx_rearmed.git]
/
plugins
/
spunull
/
Makefile
diff --git
a/plugins/spunull/Makefile
b/plugins/spunull/Makefile
index
7371522
..
fcfec80
100644
(file)
--- a/
plugins/spunull/Makefile
+++ b/
plugins/spunull/Makefile
@@
-1,9
+1,18
@@
-CC = $(CROSS_COMPILE)gcc
+include ../../config.mak
-all: spunull.so
+TARGET = spunull.so
+WD = $(shell pwd)
+PLUGINDIR = $(shell basename $(WD))
-spunull.so: spunull.c
+all: ../../config.mak $(TARGET)
+
+$(TARGET): spunull.c
$(CC) $(CFLAGS) -shared -fPIC -ggdb -O2 -o $@ $^
$(CC) $(CFLAGS) -shared -fPIC -ggdb -O2 -o $@ $^
+ ln -fs $(PLUGINDIR)/$(TARGET) ../
clean:
clean:
- $(RM) spunull.so
+ $(RM) $(TARGET)
+
+../../config.mak:
+ @echo "Please run ./configure before running make!"
+ @exit 1