Skip to content

Commit

Permalink
Replace all $PSLIGHT with $DEVKITPS3 and PSL1GHT_INC/PSL1GHT_LIB with…
Browse files Browse the repository at this point in the history
… the counterparts. Moved spu_rules and ppu_rules back to host root.
  • Loading branch information
Miigotu authored and zerkman committed Apr 12, 2011
1 parent 782506e commit 577dbb8
Show file tree
Hide file tree
Showing 52 changed files with 238 additions and 238 deletions.
16 changes: 8 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

all:
Expand All @@ -14,12 +14,12 @@ all:
@make -C tools --no-print-directory

install-ctrl:
@[ -d $(PSL1GHT) ] || mkdir -p $(PSL1GHT)
@[ -d $(PSL1GHT)/ppu ] || mkdir -p $(PSL1GHT)/ppu
@[ -d $(PSL1GHT)/spu ] || mkdir -p $(PSL1GHT)/spu
@cp -frv base_rules $(PSL1GHT)
@cp -frv ppu_rules $(PSL1GHT)/ppu
@cp -frv spu_rules $(PSL1GHT)/spu
@[ -d $(DEVKITPS3) ] || mkdir -p $(DEVKITPS3)
@[ -d $(DEVKITPS3)/ppu ] || mkdir -p $(DEVKITPS3)/ppu
@[ -d $(DEVKITPS3)/spu ] || mkdir -p $(DEVKITPS3)/spu
@cp -frv base_rules $(DEVKITPS3)
@cp -frv ppu_rules $(DEVKITPS3)/ppu
@cp -frv spu_rules $(DEVKITPS3)/spu

install-socat:
@make -C tools install-socat --no-print-directory
Expand Down
4 changes: 2 additions & 2 deletions common/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

all:
Expand Down
4 changes: 2 additions & 2 deletions common/libsimdmath/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

all:
Expand Down
14 changes: 7 additions & 7 deletions common/libsimdmath/ppu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/ppu/ppu_rules
include $(DEVKITPS3)/ppu_rules

BUILD := build

Expand Down Expand Up @@ -63,14 +63,14 @@ ppu:
#---------------------------------------------------------------------------------
install-header:
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/ppu/include/simdmath ] || mkdir -p $(PSL1GHT)/ppu/include/simdmath
@cp -frv $(CURDIR)/../common/simdmath.h $(PSL1GHT)/ppu/include/simdmath
@[ -d $(DEVKITPS3)/ppu/include/simdmath ] || mkdir -p $(DEVKITPS3)/ppu/include/simdmath
@cp -frv $(CURDIR)/../common/simdmath.h $(DEVKITPS3)/ppu/include/simdmath

#---------------------------------------------------------------------------------
install: install-header
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/ppu/lib ] || mkdir -p $(PSL1GHT)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(PSL1GHT)/ppu/lib
@[ -d $(DEVKITPS3)/ppu/lib ] || mkdir -p $(DEVKITPS3)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(DEVKITPS3)/ppu/lib

#---------------------------------------------------------------------------------
$(LIBRARY).a: $(OBJS)
Expand Down
14 changes: 7 additions & 7 deletions common/libsimdmath/spu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/spu/spu_rules
include $(DEVKITPS3)/spu_rules

BUILD := build

Expand Down Expand Up @@ -72,14 +72,14 @@ spu:
#---------------------------------------------------------------------------------
install-header:
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/spu/include/simdmath ] || mkdir -p $(PSL1GHT)/spu/include/simdmath
@cp -frv $(CURDIR)/../common/simdmath.h $(PSL1GHT)/spu/include/simdmath
@[ -d $(DEVKITPS3)/spu/include/simdmath ] || mkdir -p $(DEVKITPS3)/spu/include/simdmath
@cp -frv $(CURDIR)/../common/simdmath.h $(DEVKITPS3)/spu/include/simdmath

#---------------------------------------------------------------------------------
install: install-header
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/spu/lib ] || mkdir -p $(PSL1GHT)/spu/lib
@cp -frv $(CURDIR)/lib/spu/*.a $(PSL1GHT)/spu/lib
@[ -d $(DEVKITPS3)/spu/lib ] || mkdir -p $(DEVKITPS3)/spu/lib
@cp -frv $(CURDIR)/lib/spu/*.a $(DEVKITPS3)/spu/lib

#---------------------------------------------------------------------------------
$(LIBRARY).a: $(OBJS)
Expand Down
4 changes: 2 additions & 2 deletions common/vectormath/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

all:
Expand Down
10 changes: 5 additions & 5 deletions common/vectormath/ppu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

all:

install:
@[ -d $(PSL1GHT)/ppu/include/vectormath ] || mkdir -p $(PSL1GHT)/ppu/include/vectormath
@cp -frv $(CURDIR)/c $(PSL1GHT)/ppu/include/vectormath
@cp -frv $(CURDIR)/cpp $(PSL1GHT)/ppu/include/vectormath
@[ -d $(DEVKITPS3)/ppu/include/vectormath ] || mkdir -p $(DEVKITPS3)/ppu/include/vectormath
@cp -frv $(CURDIR)/c $(DEVKITPS3)/ppu/include/vectormath
@cp -frv $(CURDIR)/cpp $(DEVKITPS3)/ppu/include/vectormath

clean:

Expand Down
10 changes: 5 additions & 5 deletions common/vectormath/spu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

all:

install:
@[ -d $(PSL1GHT)/spu/include/vectormath ] || mkdir -p $(PSL1GHT)/spu/include/vectormath
@cp -frv $(CURDIR)/c $(PSL1GHT)/spu/include/vectormath
@cp -frv $(CURDIR)/cpp $(PSL1GHT)/spu/include/vectormath
@[ -d $(DEVKITPS3)/spu/include/vectormath ] || mkdir -p $(DEVKITPS3)/spu/include/vectormath
@cp -frv $(CURDIR)/c $(DEVKITPS3)/spu/include/vectormath
@cp -frv $(CURDIR)/cpp $(DEVKITPS3)/spu/include/vectormath

clean:

Expand Down
8 changes: 4 additions & 4 deletions ppu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

all:
Expand All @@ -14,8 +14,8 @@ all:
@make -C librsx --no-print-directory

install-headers:
@[ -d $(PSL1GHT)/ppu ] || mkdir -p $(PSL1GHT)/ppu
@cp -frv include $(PSL1GHT)/ppu
@[ -d $(DEVKITPS3)/ppu ] || mkdir -p $(DEVKITPS3)/ppu
@cp -frv include $(DEVKITPS3)/ppu

install: install-headers
@make -C crt install --no-print-directory
Expand Down
10 changes: 5 additions & 5 deletions ppu/crt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/ppu/ppu_rules
include $(DEVKITPS3)/ppu_rules

BUILD := build

Expand Down Expand Up @@ -55,8 +55,8 @@ ppu:
#---------------------------------------------------------------------------------
install:
#---------------------------------------------------------------------------------
@cp -frv $(CURDIR)/ppu/lv2-*.o $(PSL1GHT)/ppu/ppu/lib
@cp -frv $(CURDIR)/lv2.ld $(PSL1GHT)/ppu/ppu/lib
@cp -frv $(CURDIR)/ppu/lv2-*.o $(DEVKITPS3)/ppu/ppu/lib
@cp -frv $(CURDIR)/lv2.ld $(DEVKITPS3)/ppu/ppu/lib

.PHONY: crts ppu install

Expand Down
10 changes: 5 additions & 5 deletions ppu/librsx/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/ppu/ppu_rules
include $(DEVKITPS3)/ppu_rules

BUILD := build

Expand Down Expand Up @@ -58,8 +58,8 @@ ppu:
#---------------------------------------------------------------------------------
install:
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/ppu/lib ] || mkdir -p $(PSL1GHT)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(PSL1GHT)/ppu/lib
@[ -d $(DEVKITPS3)/ppu/lib ] || mkdir -p $(DEVKITPS3)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(DEVKITPS3)/ppu/lib

#---------------------------------------------------------------------------------
$(LIBRARY).a: $(OBJS)
Expand Down
10 changes: 5 additions & 5 deletions ppu/librt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/ppu/ppu_rules
include $(DEVKITPS3)/ppu_rules

BUILD := build

Expand Down Expand Up @@ -59,8 +59,8 @@ ppu:
#---------------------------------------------------------------------------------
install:
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/ppu/lib ] || mkdir -p $(PSL1GHT)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(PSL1GHT)/ppu/lib
@[ -d $(DEVKITPS3)/ppu/lib ] || mkdir -p $(DEVKITPS3)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(DEVKITPS3)/ppu/lib

#---------------------------------------------------------------------------------
$(LIBRARY).a: $(OBJS)
Expand Down
4 changes: 2 additions & 2 deletions ppu/sprx/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

all:
Expand Down
10 changes: 5 additions & 5 deletions ppu/sprx/libaudio/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/ppu/ppu_rules
include $(DEVKITPS3)/ppu_rules

BUILD := build
SOURCES := ../common .
Expand Down Expand Up @@ -71,8 +71,8 @@ ppu:
#---------------------------------------------------------------------------------
install:
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/ppu/lib ] || mkdir -p $(PSL1GHT)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(PSL1GHT)/ppu/lib
@[ -d $(DEVKITPS3)/ppu/lib ] || mkdir -p $(DEVKITPS3)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(DEVKITPS3)/ppu/lib

#---------------------------------------------------------------------------------
$(LIBRARY).a: sprx.o
Expand Down
10 changes: 5 additions & 5 deletions ppu/sprx/libgcm_sys/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/ppu/ppu_rules
include $(DEVKITPS3)/ppu_rules

BUILD := build
SOURCES := ../common .
Expand Down Expand Up @@ -71,8 +71,8 @@ ppu:
#---------------------------------------------------------------------------------
install:
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/ppu/lib ] || mkdir -p $(PSL1GHT)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(PSL1GHT)/ppu/lib
@[ -d $(DEVKITPS3)/ppu/lib ] || mkdir -p $(DEVKITPS3)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(DEVKITPS3)/ppu/lib

#---------------------------------------------------------------------------------
$(LIBRARY).a: sprx.o gcm_wrapper.o
Expand Down
10 changes: 5 additions & 5 deletions ppu/sprx/libgem/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/ppu/ppu_rules
include $(DEVKITPS3)/ppu_rules

BUILD := build
SOURCES := ../common .
Expand Down Expand Up @@ -71,8 +71,8 @@ ppu:
#---------------------------------------------------------------------------------
install:
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/ppu/lib ] || mkdir -p $(PSL1GHT)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(PSL1GHT)/ppu/lib
@[ -d $(DEVKITPS3)/ppu/lib ] || mkdir -p $(DEVKITPS3)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(DEVKITPS3)/ppu/lib

#---------------------------------------------------------------------------------
$(LIBRARY).a: sprx.o
Expand Down
10 changes: 5 additions & 5 deletions ppu/sprx/libio/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#---------------------------------------------------------------------------------
.SUFFIXES:
#---------------------------------------------------------------------------------
ifeq ($(strip $(PSL1GHT)),)
$(error "Please set PSL1GHT in your environment. export PSL1GHT=<path>")
ifeq ($(strip $(DEVKITPS3)),)
$(error "Please set DEVKITPS3 in your environment. export DEVKITPS3=<path>")
endif

include $(PSL1GHT)/ppu/ppu_rules
include $(DEVKITPS3)/ppu_rules

BUILD := build
SOURCES := ../common .
Expand Down Expand Up @@ -71,8 +71,8 @@ ppu:
#---------------------------------------------------------------------------------
install:
#---------------------------------------------------------------------------------
@[ -d $(PSL1GHT)/ppu/lib ] || mkdir -p $(PSL1GHT)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(PSL1GHT)/ppu/lib
@[ -d $(DEVKITPS3)/ppu/lib ] || mkdir -p $(DEVKITPS3)/ppu/lib
@cp -frv $(CURDIR)/lib/ppu/*.a $(DEVKITPS3)/ppu/lib

#---------------------------------------------------------------------------------
$(LIBRARY).a: sprx.o
Expand Down
Loading

0 comments on commit 577dbb8

Please sign in to comment.