Makefile 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #****************************************************************************
  2. # Makefile for Free Component Library
  3. # Copyright (c) 1998 by the Free Pascal Development Team
  4. #****************************************************************************
  5. #####################################################################
  6. # Start of configurable section
  7. #####################################################################
  8. # What compiler do you want to use :
  9. # !! If you specify a path, specify an absolute path !!
  10. #PP=/pas/fpk/curver/ppc386
  11. PP=ppc386
  12. # What is your OS ?
  13. # Possible choices : linux win32 go32v2 go32v1 os2
  14. #OS_SRC=linux
  15. #OS_SRC=win32
  16. #OS_SRC=go32v1
  17. OS_SRC=go32v2
  18. #OS_SRC=os2
  19. # Where do you want to install the units ?
  20. UNITINSTALLDIR=/usr/lib/ppc/0.99.6/fcl
  21. # UNITINSTALLDIR=\pp\units\fcl
  22. # set target processor type
  23. CPU=i386
  24. # CPU=m68k
  25. # Where is the ppumove program ? (set only if you want to make libs)
  26. # Don't specify a relative path.
  27. PPUMOVE=ppumove
  28. # Set any options you wish to give to the compiler
  29. OPT=
  30. #######################################################################
  31. # End of configurable section.
  32. # Do not edit after this line.
  33. #######################################################################
  34. # Where are we ?
  35. BASEDIR=$(shell pwd)
  36. ifeq ($(findstring :,$(BASEDIR)),)
  37. inlinux=1
  38. endif
  39. ifeq ($(strip $(BASEDIR)),'')
  40. inlinux=
  41. BASEDIR:=.
  42. endif
  43. # Check operating system.
  44. ifeq ($(OS_SRC),linux)
  45. DOS=NO
  46. else
  47. DOS=YES
  48. # also redirect the standard error to the redir file
  49. ifdef REDIR
  50. PP:=redir -eo $(PP)
  51. # set the verbosity to max
  52. OPT:=$(OPT) -va
  53. endif
  54. endif
  55. # Check copy delete commands.
  56. # You need cp from GNU to handle / as directory separator
  57. COPY=cp -p
  58. DEL=rm
  59. # To install programs
  60. ifndef INSTALL
  61. ifeq ($(DOS),YES)
  62. INSTALL=cp
  63. else
  64. INSTALL=install
  65. endif
  66. endif
  67. # To make a directory.
  68. ifndef MKDIR
  69. ifeq ($(DOS),YES)
  70. MKDIR=mkdir
  71. else
  72. MKDIR=install -m 755 -d
  73. endif
  74. endif
  75. # add target processor define to command line options
  76. OPT:=$(OPT) -d$(CPU)
  77. # Variables to export
  78. export OS_SRC DOS SEP PP OPT REDIR COPY DEL LIBINSTALLDIR INSTALL MKDIR \
  79. REFPATH CPU PPUMOVE UNITINSTALLDIR
  80. .PHONY: native all linux win32 os2 go32v2 clean install
  81. native: $(OS_SRC)
  82. all: linux go32v2 win32 os2
  83. go32v2:
  84. $(MAKE) -C go32v2
  85. linux:
  86. $(MAKE) -C linux
  87. os2:
  88. $(MAKE) -C os2
  89. win32:
  90. $(MAKE) -C win32
  91. clean:
  92. $(MAKE) -C inc clean
  93. $(MAKE) -C i386 clean
  94. $(MAKE) -C go32v2 clean
  95. $(MAKE) -C linux clean
  96. $(MAKE) -C os2 clean
  97. $(MAKE) -C win32 clean
  98. install:
  99. $(MAKE) -C $(OS_SRC) install