forked from AerialX/PSL1GHT
-
Notifications
You must be signed in to change notification settings - Fork 67
/
Makefile
37 lines (31 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
TARGETS := crt libpsl1ght libreality sprx tools
all:
@for dir in $(TARGETS); do \
echo; \
echo Entering Directory $$dir; \
$(MAKE) --no-print-directory -C $$dir; \
echo Leaving Directory $$dir; \
done
clean:
@for dir in $(TARGETS); do \
echo Cleaning $$dir; \
$(MAKE) --no-print-directory -C $$dir clean; \
done
install: install-headers install-rules
@mkdir -p $(PSL1GHT)/host/bin
@for dir in $(TARGETS); do \
echo Installing $$dir; \
$(MAKE) --no-print-directory -C $$dir install; \
done
install-headers:
@mkdir -p $(PSL1GHT)/target/include
@cp -r include/* $(PSL1GHT)/target/include/
install-rules:
@mkdir -p $(PSL1GHT)/host
@cp rules/base.mk rules/ppu.mk rules/spu.mk $(PSL1GHT)/host/
@ln -sf $(PSL1GHT)/host/ppu.mk $(PSL1GHT)/Makefile.base
@mkdir -p $(PS3DEV)/host/ppu/ppu/lib
@#cp rules/lv2.ld $(PS3DEV)/host/ppu/ppu/lib/
@#sed -e 's\$$PSL1GHT\$(PSL1GHT)\' -e 's\$$PS3DEV\$(PS3DEV)\' rules/lv2.ld > $(PS3DEV)/host/ppu/ppu/lib/lv2.ld
@sed "s:\$$PSL1GHT:$(PSL1GHT):;s:\$$PS3DEV:$(PS3DEV):" rules/lv2.ld > $(PS3DEV)/host/ppu/ppu/lib/lv2.ld
.PHONY: all clean install install-headers