X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=plugins%2Fspunull%2FMakefile;h=fcfec80ef73618b160b3f263deef1c4a2534dab7;hp=7371522597a54041c78e06d81afe03221f89c50f;hb=c2502333b2e56e520bb9ecc2f931a639eee415d7;hpb=ee78346e30720ddb3f4c97b6598bdc6dc7257f98 diff --git a/plugins/spunull/Makefile b/plugins/spunull/Makefile index 73715225..fcfec80e 100644 --- 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 $@ $^ + ln -fs $(PLUGINDIR)/$(TARGET) ../ clean: - $(RM) spunull.so + $(RM) $(TARGET) + +../../config.mak: + @echo "Please run ./configure before running make!" + @exit 1