Browse files

Added a check for the cg compiler.

  • Loading branch information...
1 parent 8d07706 commit 1f660f3cb45dc7b452da974c2ae5be2766102b88 Dan Peori committed Dec 6, 2010
Showing with 6 additions and 3 deletions.
  1. +6 −3 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/ $(PSL1GHT)/bin/
@cp tools/PS3Py/ $(PSL1GHT)/bin/
@cp tools/PS3Py/ $(PSL1GHT)/bin/

0 comments on commit 1f660f3

Please sign in to comment.