Makefile 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  1. #
  2. # $Id$
  3. # This file is part of the Free Pascal run time library.
  4. # Copyright (c) 1996-98 by Michael van Canneyt
  5. #
  6. # Makefile for the Free Pascal Installation Helpers
  7. #
  8. # See the file COPYING.FPC, included in this distribution,
  9. # for details about the copyright.
  10. #
  11. # This program is distributed in the hope that it will be useful,
  12. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. ##########################################################################
  16. # Config
  17. ##########################################################################
  18. # Test dir if none specified
  19. ifndef BASEINSTALLDIR
  20. BASEINSTALLDIR=/pptest
  21. endif
  22. # TPC
  23. TPC=otpc
  24. # Use UPX ?
  25. UPX=upx
  26. # Zip
  27. ZIP=zip -D9 -r
  28. ##########################################################################
  29. # Defaults
  30. ##########################################################################
  31. # Directory to the base of the CVS tree
  32. CVSBASE=..
  33. CFG=$(CVSBASE)/rtl/cfg
  34. # Temporary path to pack a file
  35. PACKDIR=$(subst \,/,$(TMP))/pp_tmp
  36. # Use new ppc386
  37. PPNEW=$(BASEDIR)/$(CVSBASE)/compiler/ppc386.exe
  38. ##########################################################################
  39. # Include default makefile
  40. ##########################################################################
  41. include $(CFG)/makefile.cfg
  42. # Test dir if none specified
  43. ifndef PACKAGEDIR
  44. PACKAGEDIR=$(BASEDIR)
  45. endif
  46. ##########################################################################
  47. # Default target
  48. ##########################################################################
  49. .PHONY: all basego32 basew32
  50. all:
  51. @echo
  52. @echo Possible targets are:
  53. @echo
  54. @echo basego32, basego32.zip
  55. @echo basew32, basew32.zip
  56. @echo
  57. @exit
  58. clean:
  59. -$(DEL) *.tpu install.exe install.dat
  60. ##########################################################################
  61. # Install
  62. ##########################################################################
  63. install.exe: install.pas
  64. $(TPC) install.pas
  65. ifdef UPX
  66. -$(UPX) install.exe
  67. endif
  68. installgo32: install.exe
  69. $(MKDIR) $(PACKAGEDIR)
  70. $(COPY) install.dos install.dat
  71. $(COPY) install.exe install.dat $(PACKAGEDIR)
  72. $(COPY) readme.txt whatsnew.txt $(PACKAGEDIR)
  73. installw32: install.exe
  74. $(MKDIR) $(PACKAGEDIR)
  75. $(COPY) install.w32 install.dat
  76. $(COPY) install.exe install.dat $(PACKAGEDIR)
  77. $(COPY) readme.txt whatsnew.txt $(PACKAGEDIR)
  78. ##########################################################################
  79. # Basego32.zip
  80. ##########################################################################
  81. basego32:
  82. # readme.txt & whatsnew.txt
  83. $(MKDIR) $(BASEINSTALLDIR)
  84. $(COPY) readme.txt whatsnew.txt $(BASEINSTALLDIR)
  85. # docs
  86. $(MKDIR) $(DOCINSTALLDIR)
  87. $(COPY) doc/* $(DOCINSTALLDIR)
  88. # bingo32 (cwsdpmi,wmemu387.dxe)
  89. $(MKDIR) $(BININSTALLDIR)
  90. $(COPY) bingo32/* $(BININSTALLDIR)
  91. # compiler
  92. make -C $(CVSBASE)/compiler cycle OS_TARGET=go32v2 RELEASE=1
  93. make -C $(CVSBASE)/compiler install OS_TARGET=go32v2
  94. # rtl go32v2
  95. make -C $(CVSBASE)/rtl/dos/go32v2 clean OS_TARGET=go32v2
  96. make -C $(CVSBASE)/rtl/dos/go32v2 install OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
  97. # rtl go32v2 libs
  98. make -C $(CVSBASE)/rtl/dos/go32v2 clean OS_TARGET=go32v2
  99. make -C $(CVSBASE)/rtl/dos/go32v2 libinstall OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
  100. # utils
  101. make -C $(CVSBASE)/rtl/utils clean OS_TARGET=go32v2
  102. make -C $(CVSBASE)/rtl/utils install OS_TARGET=go32v2 RELEASE=1 PP=$(PPNEW)
  103. ifdef UPX
  104. -$(UPX) $(BININSTALLDIR)/*.exe
  105. endif
  106. basego32.zip:
  107. make basego32 BASEINSTALLDIR=$(PACKDIR)
  108. cd $(PACKDIR)
  109. $(ZIP) $(PACKAGEDIR)/basego32.zip *
  110. cd $(BASEDIR)
  111. $(DELTREE) $(PACKDIR)
  112. ##########################################################################
  113. # basew32.zip
  114. ##########################################################################
  115. basew32:
  116. # readme.txt & whatsnew.txt
  117. $(MKDIR) $(BASEINSTALLDIR)
  118. $(COPY) readme.txt whatsnew.txt $(BASEINSTALLDIR)
  119. # docs
  120. $(MKDIR) $(DOCINSTALLDIR)
  121. $(COPY) doc/* $(DOCINSTALLDIR)
  122. # compiler, the - is necessary because the files sometimes differ
  123. -make -C $(CVSBASE)/compiler cycle OS_TARGET=win32 RELEASE=1
  124. make -C $(CVSBASE)/compiler install OS_TARGET=win32
  125. # rtl
  126. make -C $(CVSBASE)/rtl/win32 clean OS_TARGET=win32
  127. make -C $(CVSBASE)/rtl/win32 install OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
  128. # rtl libs
  129. make -C $(CVSBASE)/rtl/win32 clean OS_TARGET=win32
  130. make -C $(CVSBASE)/rtl/win32 libinstall OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
  131. # utils
  132. make -C $(CVSBASE)/rtl/utils clean OS_TARGET=win32
  133. make -C $(CVSBASE)/rtl/utils install OS_TARGET=win32 RELEASE=1 PP=$(PPNEW)
  134. basew32.zip:
  135. make basew32 BASEINSTALLDIR=$(PACKDIR)
  136. $(MKDIR) $(PACKAGEDIR)
  137. # Maybe you need 4dos for it, becuase unix paths with / are used
  138. cd $(PACKDIR)
  139. $(ZIP) $(PACKAGEDIR)/basew32.zip *
  140. cd $(BASEDIR)
  141. $(DELTREE) $(PACKDIR)
  142. #
  143. # $Log$
  144. # Revision 1.1 1998-09-16 16:46:36 peter
  145. # + updates
  146. #
  147. #