Skip to content
Browse files

Merge branch 'master' of github.com:HACKERCHANNEL/PSL1GHT

  • Loading branch information...
2 parents a854c63 + 1f660f3 commit 924bb8149bc2615898a84b41e2327f8fd7721c61 @Parlane Parlane committed Dec 7, 2010
Showing with 6 additions and 3 deletions.
  1. +6 −3 psl1ght/Makefile
View
9 psl1ght/Makefile
@@ -8,12 +8,14 @@ LIBS := $(wildcard libs/lib*)
STUBS := $(SFILES:.S=.o) $(CFILES:.c=.o)
+CGINCLUDE := /usr/include/Cg/cg.h
+
all: $(STUBS)
@ppu-ld -r $(STUBS) -o stub/crt1.o
@make -C tools/raw2h --no-print-directory
@make -C tools/ps3load --no-print-directory
@make -C tools/sprxlinker --no-print-directory
- @make -C tools/vpcomp --no-print-directory
+ @if test -e $(CGINCLUDE); then @make -C tools/vpcomp --no-print-directory; fi
@make -C tools/PS3Py --no-print-directory
@make -f Makefile.lib --no-print-directory
@make -C libc-glue-ppu --no-print-directory
@@ -26,7 +28,7 @@ clean:
@make -C tools/raw2h clean --no-print-directory
@make -C tools/ps3load clean --no-print-directory
@make -C tools/sprxlinker clean --no-print-directory
- @make -C tools/vpcomp clean --no-print-directory
+ @if test -e $(CGINCLUDE); then @make -C tools/vpcomp clean --no-print-directory; fi
@make -C tools/PS3Py clean --no-print-directory
@make -f Makefile.lib clean --no-print-directory
@make -C libc-glue-ppu clean --no-print-directory
@@ -39,7 +41,8 @@ install: all
@cp linker.x libpsl1ght.a libc-glue-ppu/libc-glue-ppu.a stub/crt1.o sprx/*/*.a libs/*/*.a $(PSL1GHT)/lib/
@cp -r include $(PSL1GHT)/
@cp Makefile.base $(PSL1GHT)/
- @cp tools/raw2h/raw2h tools/ps3load/ps3load tools/sprxlinker/sprxlinker tools/vpcomp/vpcomp $(PSL1GHT)/bin/
+ @cp tools/raw2h/raw2h tools/ps3load/ps3load tools/sprxlinker/sprxlinker $(PSL1GHT)/bin/
+ @if test -e $(CGINCLUDE); then @cp tools/vpcomp/vpcomp $(PSL1GHT)/bin/; fi
@cp tools/PS3Py/fself.py $(PSL1GHT)/bin/
@cp tools/PS3Py/Struct.py $(PSL1GHT)/bin/
@cp tools/PS3Py/sfo.py $(PSL1GHT)/bin/

0 comments on commit 924bb81

Please sign in to comment.
Something went wrong with that request. Please try again.