Makefile.riscos 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. # Project: zlib_1_03
  2. # Patched for zlib 1.1.2 rw@shadow.org.uk 19980430
  3. # test works out-of-the-box, installs `somewhere' on demand
  4. # Toolflags:
  5. CCflags = -c -depend !Depend -IC: -g -throwback -DRISCOS -fah
  6. C++flags = -c -depend !Depend -IC: -throwback
  7. Linkflags = -aif -c++ -o $@
  8. ObjAsmflags = -throwback -NoCache -depend !Depend
  9. CMHGflags =
  10. LibFileflags = -c -l -o $@
  11. Squeezeflags = -o $@
  12. # change the line below to where _you_ want the library installed.
  13. libdest = lib:zlib
  14. # Final targets:
  15. @.lib: @.o.adler32 @.o.compress @.o.crc32 @.o.deflate @.o.gzio \
  16. @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil @.o.trees \
  17. @.o.uncompr @.o.zutil
  18. LibFile $(LibFileflags) @.o.adler32 @.o.compress @.o.crc32 @.o.deflate \
  19. @.o.gzio @.o.infblock @.o.infcodes @.o.inffast @.o.inflate @.o.inftrees @.o.infutil \
  20. @.o.trees @.o.uncompr @.o.zutil
  21. test: @.minigzip @.example @.lib
  22. @copy @.lib @.libc A~C~DF~L~N~P~Q~RS~TV
  23. @echo running tests: hang on.
  24. @/@.minigzip -f -9 libc
  25. @/@.minigzip -d libc-gz
  26. @/@.minigzip -f -1 libc
  27. @/@.minigzip -d libc-gz
  28. @/@.minigzip -h -9 libc
  29. @/@.minigzip -d libc-gz
  30. @/@.minigzip -h -1 libc
  31. @/@.minigzip -d libc-gz
  32. @/@.minigzip -9 libc
  33. @/@.minigzip -d libc-gz
  34. @/@.minigzip -1 libc
  35. @/@.minigzip -d libc-gz
  36. @diff @.lib @.libc
  37. @echo that should have reported '@.lib and @.libc identical' if you have diff.
  38. @/@.example @.fred @.fred
  39. @echo that will have given lots of hello!'s.
  40. @.minigzip: @.o.minigzip @.lib C:o.Stubs
  41. Link $(Linkflags) @.o.minigzip @.lib C:o.Stubs
  42. @.example: @.o.example @.lib C:o.Stubs
  43. Link $(Linkflags) @.o.example @.lib C:o.Stubs
  44. install: @.lib
  45. cdir $(libdest)
  46. cdir $(libdest).h
  47. @copy @.h.zlib $(libdest).h.zlib A~C~DF~L~N~P~Q~RS~TV
  48. @copy @.h.zconf $(libdest).h.zconf A~C~DF~L~N~P~Q~RS~TV
  49. @copy @.lib $(libdest).lib A~C~DF~L~N~P~Q~RS~TV
  50. @echo okay, installed zlib in $(libdest)
  51. clean:; remove @.minigzip
  52. remove @.example
  53. remove @.libc
  54. -wipe @.o.* F~r~cV
  55. remove @.fred
  56. # User-editable dependencies:
  57. .c.o:
  58. cc $(ccflags) -o $@ $<
  59. # Static dependencies:
  60. # Dynamic dependencies:
  61. o.example: c.example
  62. o.example: h.zlib
  63. o.example: h.zconf
  64. o.minigzip: c.minigzip
  65. o.minigzip: h.zlib
  66. o.minigzip: h.zconf
  67. o.adler32: c.adler32
  68. o.adler32: h.zlib
  69. o.adler32: h.zconf
  70. o.compress: c.compress
  71. o.compress: h.zlib
  72. o.compress: h.zconf
  73. o.crc32: c.crc32
  74. o.crc32: h.zlib
  75. o.crc32: h.zconf
  76. o.deflate: c.deflate
  77. o.deflate: h.deflate
  78. o.deflate: h.zutil
  79. o.deflate: h.zlib
  80. o.deflate: h.zconf
  81. o.gzio: c.gzio
  82. o.gzio: h.zutil
  83. o.gzio: h.zlib
  84. o.gzio: h.zconf
  85. o.infblock: c.infblock
  86. o.infblock: h.zutil
  87. o.infblock: h.zlib
  88. o.infblock: h.zconf
  89. o.infblock: h.infblock
  90. o.infblock: h.inftrees
  91. o.infblock: h.infcodes
  92. o.infblock: h.infutil
  93. o.infcodes: c.infcodes
  94. o.infcodes: h.zutil
  95. o.infcodes: h.zlib
  96. o.infcodes: h.zconf
  97. o.infcodes: h.inftrees
  98. o.infcodes: h.infblock
  99. o.infcodes: h.infcodes
  100. o.infcodes: h.infutil
  101. o.infcodes: h.inffast
  102. o.inffast: c.inffast
  103. o.inffast: h.zutil
  104. o.inffast: h.zlib
  105. o.inffast: h.zconf
  106. o.inffast: h.inftrees
  107. o.inffast: h.infblock
  108. o.inffast: h.infcodes
  109. o.inffast: h.infutil
  110. o.inffast: h.inffast
  111. o.inflate: c.inflate
  112. o.inflate: h.zutil
  113. o.inflate: h.zlib
  114. o.inflate: h.zconf
  115. o.inflate: h.infblock
  116. o.inftrees: c.inftrees
  117. o.inftrees: h.zutil
  118. o.inftrees: h.zlib
  119. o.inftrees: h.zconf
  120. o.inftrees: h.inftrees
  121. o.inftrees: h.inffixed
  122. o.infutil: c.infutil
  123. o.infutil: h.zutil
  124. o.infutil: h.zlib
  125. o.infutil: h.zconf
  126. o.infutil: h.infblock
  127. o.infutil: h.inftrees
  128. o.infutil: h.infcodes
  129. o.infutil: h.infutil
  130. o.trees: c.trees
  131. o.trees: h.deflate
  132. o.trees: h.zutil
  133. o.trees: h.zlib
  134. o.trees: h.zconf
  135. o.trees: h.trees
  136. o.uncompr: c.uncompr
  137. o.uncompr: h.zlib
  138. o.uncompr: h.zconf
  139. o.zutil: c.zutil
  140. o.zutil: h.zutil
  141. o.zutil: h.zlib
  142. o.zutil: h.zconf