~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to docs/dynlibex/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
 
7
7
# Compiler
8
8
 
9
 
override PATH:=$(patsubst %/,%,$(subst \,/,$(PATH)))
10
 
ifneq ($(findstring darwin,$(OSTYPE)),)
11
 
inUnix=1 #darwin
12
 
SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
13
 
else
14
 
ifeq ($(findstring ;,$(PATH)),)
15
 
inUnix=1
16
 
SEARCHPATH:=$(filter-out .,$(subst :, ,$(PATH)))
17
 
else
18
 
SEARCHPATH:=$(subst ;, ,$(PATH))
19
 
endif
20
 
endif
21
 
SEARCHPATH+=$(patsubst %/,%,$(subst \,/,$(dir $(MAKE))))
22
 
PWD:=$(strip $(wildcard $(addsuffix /pwd.exe,$(SEARCHPATH))))
23
 
ifeq ($(PWD),)
24
 
PWD:=$(strip $(wildcard $(addsuffix /pwd,$(SEARCHPATH))))
25
 
ifeq ($(PWD),)
26
 
$(error You need the GNU utils package to use this Makefile)
27
 
else
28
 
PWD:=$(firstword $(PWD))
29
 
SRCEXEEXT=
30
 
endif
31
 
else
32
 
PWD:=$(firstword $(PWD))
33
 
SRCEXEEXT=.exe
34
 
endif
35
 
ifndef inUnix
36
 
ifeq ($(OS),Windows_NT)
37
 
inWinNT=1
38
 
else
39
 
ifdef OS2_SHELL
40
 
inOS2=1
41
 
endif
42
 
endif
43
 
else
44
 
ifneq ($(findstring cygdrive,$(PATH)),)
45
 
inCygWin=1
46
 
endif
47
 
endif
48
 
ifdef inUnix
49
 
SRCBATCHEXT=.sh
50
 
else
51
 
ifdef inOS2
52
 
SRCBATCHEXT=.cmd
53
 
else
54
 
SRCBATCHEXT=.bat
55
 
endif
56
 
endif
57
 
ifdef inUnix
58
 
PATHSEP=/
59
 
else
60
 
PATHSEP:=$(subst /,\,/)
61
 
ifdef inCygWin
62
 
PATHSEP=/
63
 
endif
64
 
endif
65
 
ifdef PWD
66
 
BASEDIR:=$(subst \,/,$(shell $(PWD)))
67
 
ifdef inCygWin
68
 
ifneq ($(findstring /cygdrive/,$(BASEDIR)),)
69
 
BASENODIR:=$(patsubst /cygdrive%,%,$(BASEDIR))
70
 
BASEDRIVE:=$(firstword $(subst /, ,$(BASENODIR)))
71
 
BASEDIR:=$(subst /cygdrive/$(BASEDRIVE)/,$(BASEDRIVE):/,$(BASEDIR))
72
 
endif
73
 
endif
74
 
else
75
 
BASEDIR=.
76
 
endif
77
 
ifdef inOS2
78
 
ifndef ECHO
79
 
ECHO:=$(strip $(wildcard $(addsuffix /gecho$(SRCEXEEXT),$(SEARCHPATH))))
80
 
ifeq ($(ECHO),)
81
 
ECHO:=$(strip $(wildcard $(addsuffix /echo$(SRCEXEEXT),$(SEARCHPATH))))
82
 
ifeq ($(ECHO),)
83
 
ECHO=echo
84
 
else
85
 
ECHO:=$(firstword $(ECHO))
86
 
endif
87
 
else
88
 
ECHO:=$(firstword $(ECHO))
89
 
endif
90
 
endif
91
 
export ECHO
92
 
endif
93
 
override DEFAULT_FPCDIR=../..
94
9
ifndef FPC
95
10
ifdef PP
96
11
FPC=$(PP)