Advertisement
CrashOveride

iQue SDK PRDefs

Feb 23rd, 2020
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. #
  2. # Commondefs for BB player source tree
  3. #
  4. # Makefiles which include this should first define PRDEPTH or BBDEPTH
  5. # to be the relative path from their parent directory.
  6.  
  7. include $(ROOT)/usr/include/make/commondefs
  8.  
  9. #
  10. # Use $(MAKE) $(MAKEARGS) instead of $(MAKEF) so that make -n works
  11. # This gets around the fact that $(MAKE) works and $(MAKEF) does not.
  12. # MAKEARGS is based directly on $(MAKEF) in commondefs.
  13. #
  14. MAKEARGS = VCFLAGS="$(VCFLAGS)" VFFLAGS="$(VFFLAGS)" \
  15. VPFLAGS="$(VPFLAGS)" VMKDEPFLAGS="$(VMKDEPFLAGS)"
  16.  
  17. # make sure 'default' does not hit these rules
  18. defaultrule: default
  19.  
  20. #
  21. # Compile tree for RCP 1.0 or RCP 2.0
  22. #
  23. #GCDEFS = $(HW_FLAGS)
  24. #GCDEFS = $(HW_FLAGS) -B -Wab,-r4300_mul
  25. __GCC__=1
  26. ifdef __GCC__
  27. CC=mips-linux-gcc -mno-abicalls -fno-pic -I/usr/lib/gcc-lib/mips-linux/egcs-2.91.66/include/ -mcpu=4300
  28. AS=mips-linux-gcc -x assembler-with-cpp -fno-pic -c -mcpu=4300 -Wa,--strip-local-absolute
  29. LD=/usr/mips-linux/bin/ld
  30. SIZE=mips-linux-size
  31. NAWK=awk
  32. WOFF=
  33. MKDEPOPT=
  34. GCDEFS = -DBBPLAYER
  35. #CVERSION=-ansi
  36. CVERSION=
  37. else
  38. GCDEFS = $(HW_FLAGS) -Wab,-r4300_mul
  39. endif
  40.  
  41. #
  42. # VCS compiler options
  43. #
  44. VCSOPTS = $(GVCSOPTS) $(LVCSOPTS) $(VVCSOPTS)
  45. #GVCSOPTS = +acc -V -M -Mupdate -Mmakep=pmake \
  46. -CC "-mips2 -Wab,-big_got -Wab,-dwalign" -lgl -limage \
  47. -P $(PRDEPTH)/rdpsim/pli/pli.tab $(ROOT)/usr/lib/PR/libpli.a
  48. GVCSOPTS = +acc -V -M -Mupdate \
  49. -P $(PRDEPTH)/rdpsim/pli/pli.tab $(ROOT)/usr/lib/PR/libpli.a
  50.  
  51. SHELL = /bin/sh
  52.  
  53. FLT2C = $(ROOT)/usr/sbin/flt2c
  54. IC = $(ROOT)/usr/sbin/ic
  55. #ifdef __GCC__
  56. MAKEROM = $(GCCDIR)/mipse/bin/mild
  57. #else
  58. MAKEROM = $(ROOT)/usr/sbin/makerom
  59. #endif
  60. MIDIPARSE = $(ROOT)/usr/sbin/midiparse
  61. MIDICVT = $(ROOT)/usr/sbin/midicvt
  62. MIDICOMP = $(ROOT)/usr/sbin/midicomp
  63. SBC = $(ROOT)/usr/sbin/sbc
  64. NLD = $(ROOT)/usr/sbin/nld
  65. RGB2C = $(ROOT)/usr/sbin/rgb2c
  66. MKSPRITE = $(ROOT)/usr/sbin/mksprite
  67. MKISPRITE = $(ROOT)/usr/sbin/mkisprite
  68. TABLEDESIGN = $(ROOT)/usr/sbin/tabledesign
  69. VADPCM_ENC = $(ROOT)/usr/sbin/vadpcm_enc
  70. RSPASM = $(ROOT)/usr/sbin/rspasm
  71. BUILDTASK = $(ROOT)/usr/sbin/buildtask
  72. RSP2ELF = $(ROOT)/usr/sbin/rsp2elf
  73.  
  74. DATA2RDRAM = $(PRDEPTH)/tools/data/data2rdram
  75. RDRAM2DATA = $(PRDEPTH)/tools/data/rdram2data
  76. TMEMFMT = $(PRDEPTH)/tools/tmemfmt/tmemfmt
  77.  
  78. ECS2VL = $(PRDEPTH)/rdpsim/tools/ecs2vl
  79. ECSGEN = $(PRDEPTH)/rdpsim/tools/ecs_gen
  80. MERRG = $(PRDEPTH)/rdpsim/tools/merrg
  81. RMVCOM = $(PRDEPTH)/rdpsim/tools/remove_comments
  82. TAB2VMEM= $(PRDEPTH)/rdpsim/tools/tab2vmem
  83. TAB2WVS = $(PRDEPTH)/rdpsim/tools/tab2wvs
  84. VSIG = $(PRDEPTH)/rdpsim/tools/vsig
  85. XNET = $(PRDEPTH)/rdpsim/tools/xnet
  86.  
  87. ASYIN = /ecad/ecs/ecs_2.4/bin/asyin
  88. MAKEINI = /ecad/ecs/ecs_2.4/bin/makeini
  89.  
  90. #VCSDIR = /ecad/vcs/vcs_2.2/sgi
  91. VCSDIR = /ecad/vcs
  92. VCS = $(VCSDIR)/bin/vcs
  93.  
  94. LOG_RESULT = \
  95. @echo -n "!!! $(*:T) of" `basename \`pwd\``": "; \
  96. grep "number of errors" $*.out
  97.  
  98. LOG_ERROR = $(LOG_RESULT)
  99. HOST_CC += -DBBPLAYER
  100. HOST_CCF = $(HOST_CC) -D_LANGUAGE_C
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement