X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=Makefile;h=c822bb12fd0dd6a981d9def108308cd884072b0b;hp=28a0c79e99dbaef77af1a66bee560aef5c68036c;hb=ee78346e30720ddb3f4c97b6598bdc6dc7257f98;hpb=83a79d01995051a2778784887d086689ff815667 diff --git a/Makefile b/Makefile index 28a0c79e..c822bb12 100644 --- a/Makefile +++ b/Makefile @@ -84,14 +84,18 @@ frontend/revision.h: FORCE $(TARGET): $(OBJS) $(CC) -o $@ $^ $(LDFLAGS) -Wl,-Map=$@.map -spunull.so: plugins/spunull/spunull.c - $(CC) $(CFLAGS) -shared -fPIC -ggdb -O2 -o $@ $^ +PLUGINS = plugins/spunull/spunull.so plugins/gpu_unai/gpuPCSX4ALL.so \ + plugins/gpu-gles/gpuGLES.so -plugins/gpu-gles/gpuGLES.so: - make -C plugins/gpu-gles/ +$(PLUGINS): + make -C $(dir $@) clean: - $(RM) $(TARGET) $(OBJS) + $(RM) $(TARGET) $(OBJS) $(TARGET).map + +clean_plugins: + for dir in $(PLUGINS) ; do \ + $(MAKE) -C $$(dirname $$dir) clean; done # ----------- release ----------- @@ -99,7 +103,7 @@ PND_MAKE ?= $(HOME)/dev/pnd/src/pandora-libraries/testdata/scripts/pnd_make.sh VER ?= $(shell git describe --abbrev=0 master) -rel: pcsx spunull.so plugins/gpu-gles/gpuGLES.so \ +rel: pcsx $(PLUGINS) \ pandora/pcsx.sh pandora/pcsx.pxml pandora/pcsx.png \ pandora/picorestore pandora/readme.txt skin COPYING rm -rf out