| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- #
- # Makefile generated by fpcmake v0.99.13 on 1999-12-19 16:02
- #
- defaultrule: all
- #####################################################################
- # Autodetect OS (Linux or Dos or Windows NT)
- # define inlinux when running under linux
- # define inWinNT when running under WinNT
- #####################################################################
- # We need only / in the path
- override PATH:=$(subst \,/,$(PATH))
- # Search for PWD and determine also if we are under linux
- PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(subst ;, ,$(PATH)))))
- ifeq ($(PWD),)
- PWD:=$(strip $(wildcard $(addsuffix /pwd,$(subst :, ,$(PATH)))))
- ifeq ($(PWD),)
- nopwd:
- @echo You need the GNU utils package to use this Makefile!
- @echo Get ftp://ftp.freepascal.org/pub/fpc/dist/go32v2/utilgo32.zip
- @exit
- else
- inlinux=1
- endif
- else
- PWD:=$(firstword $(PWD))
- endif
- # Detect NT - NT sets OS to Windows_NT
- ifndef inlinux
- ifeq ($(OS),Windows_NT)
- inWinNT=1
- endif
- endif
- # Detect OS/2 - OS/2 has OS2_SHELL defined
- ifndef inlinux
- ifndef inWinNT
- ifdef OS2_SHELL
- inOS2=1
- endif
- endif
- endif
- # The extension of executables
- ifdef inlinux
- EXEEXT=
- else
- EXEEXT=.exe
- endif
- # The path which is search separated by spaces
- ifdef inlinux
- SEARCHPATH=$(subst :, ,$(PATH))
- else
- SEARCHPATH=$(subst ;, ,$(PATH))
- endif
- #####################################################################
- # FPC version/target Detection
- #####################################################################
- # What compiler to use ?
- ifndef FPC
- # Compatibility with old makefiles
- ifdef PP
- export FPC=$(PP)
- else
- ifdef inOS2
- export FPC=ppos2$(EXEEXT)
- else
- export FPC=ppc386$(EXEEXT)
- endif
- endif
- endif
- # Target OS
- ifndef OS_TARGET
- export OS_TARGET:=$(shell $(FPC) -iTO)
- endif
- # Source OS
- ifndef OS_SOURCE
- export OS_SOURCE:=$(shell $(FPC) -iSO)
- endif
- # Target CPU
- ifndef CPU_TARGET
- export CPU_TARGET:=$(shell $(FPC) -iTP)
- endif
- # Source CPU
- ifndef CPU_SOURCE
- export CPU_SOURCE:=$(shell $(FPC) -iSP)
- endif
- # FPC version
- ifndef FPC_VERSION
- export FPC_VERSION:=$(shell $(FPC) -iV)
- endif
- #####################################################################
- # Default Settings
- #####################################################################
- # Release ? Then force OPT and don't use extra opts via commandline
- ifndef REDIRFILE
- REDIRFILE=log
- endif
- ifdef RELEASE
- override OPT:=-Xs -OG2p3 -n
- endif
- # Verbose settings (warning,note,info)
- ifdef VERBOSE
- override OPT+=-vwni
- endif
- ifdef REDIR
- ifndef inlinux
- override FPC=redir -eo $(FPC)
- endif
- # set the verbosity to max
- override OPT+=-va
- override REDIR:= >> $(REDIRFILE)
- endif
- #####################################################################
- # User Settings
- #####################################################################
- # Targets
- # Clean
- # Install
- ZIPTARGET=install
- # Defaults
- # Directories
- ifndef PACKAGEDIR
- PACKAGEDIR=$(FPCDIR)/packages
- endif
- ifndef COMPONENTDIR
- COMPONENTDIR=$(FPCDIR)/components
- endif
- # Packages
- # Libraries
- #####################################################################
- # Standard rules
- #####################################################################
- #####################################################################
- # Package depends
- #####################################################################
- ifneq ($(wildcard $(RTLDIR)),)
- ifeq ($(wildcard $(RTLDIR)/$(FPCMADE)),)
- override COMPILEPACKAGES+=rtl
- rtl_package:
- $(MAKE) -C $(RTLDIR) all
- endif
- endif
- .PHONY: rtl_package
- #####################################################################
- # Users rules
- #####################################################################
- all:
- $(MAKE) -C $(OS_TARGET) all
|