[go: up one dir, main page]

Menu

[65d1b3]: / Makefile.in  Maximize  Restore  History

Download this file

248 lines (197 with data), 6.9 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
# $Id$
#
# Makefile.in -- OpenXP autoconf build system
#
# This software is part of the OpenXP project (www.openxp.de).
# Copyright (c) 2000 by the OpenXP Team.
# Created on 2002-01-13 by Claus F"arber <claus@faerber.muc.de>
#
# This is free software; you can redistribute it and/or modify it
# under the terms of the Lesser GNU General Public License (LGPL) as
# published by the Free Software Foundation; either version 2,
# or (at your option) any later version.
#
# The software is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See LGPL
# for more details.
#
# You should have received a copy of the LGPL along with this
# software; see the file lgpl.txt. If not, write to the
# Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
# --- variables -------------------------------------------------------
SHELL = /bin/sh
# --- configuration ---------------------------------------------------
srcdir = @srcdir@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
sbindir = @sbindir@
libexecdir = @libexecdir@
datadir = @datadir@
sysconfdir = @sysconfdir@
sharedstatedir = @sharedstatedir@
localstatedir = @localstatedir@
libdir = @libdir@
includedir = @includedir@
oldincludedir = @oldincludedir@
infodir = @infodir@
mandir = @mandir@
# --- flags -----------------------------------------------------------
UNIT_DIRS = xplib ObjCOM netcall linux
PPC = @PPC@
PPC_FLAGS = @PPCFLAGS@ $(patsubst %,-Fu"./%",$(UNIT_DIRS)) -dAUTOCONF
PPC_LOCAL_FLAGS = $(PPC_FLAGS)
# --- files -----------------------------------------------------------
EXEEXT = @EXEEXT@
OPENXP = openxp@EXEEXT@
RC = ./rc@EXEEXT@
IHS = ./ihs@EXEEXT@
UNITS =
INCLUDES=
RESSOURCE_FILES=$(patsubst openxp-%.rq,openxp-%.res,$(wildcard openxp-*.rq))
HELP_FILES=$(patsubst doc/openxp-%.ihq,openxp-%.hlp,$(wildcard doc/openxp-*.ihq))
# --- abstract targets ------------------------------------------------
all: bin res
bin: $(OPENXP)
bin-win32: openxp-win32.exe
bin-os2: openxp-os2.exe
bin-dos32: openxp-dos.exe
res: $(RESSOURCE_FILES) $(HELP_FILES)
# --- cleaning --------------------------------------------------------
mostlyclean:
rm -f $(OPENXP) openxp-*.res *.dcu *.ppu *.o
rm -f doc/openxp-*.hlp openxp-*.hlp fpc*.txt *.rst
-for d in $(UNIT_DIRS) ; do rm -f $$d/*.dcu $$d/*.ppu $$d/*.o ; done
rm -f strip-stamp
clean: mostlyclean
rm -f $(RC) $(IHS)
distclean: clean
rm -f Makefile config.cache config.status config.h config.inc config.log
maintainer-clean: distclean
rm -f configure
# --- install/uninstall -----------------------------------------------
install: bin res
install -D --mode=755 $(OPENXP) $(bindir)/$(OPENXP)
install -d -D $(datadir)/openxp/
install --mode=644 $(RESSOURCE_FILES) $(HELP_FILES) $(datadir)/openxp/
strip: strip-stamp
strip-stamp: bin
strip --strip-unneeded -R .note -R .comment $(OPENXP)
touch strip-stamp
install-strip:
$(MAKE) strip
$(MAKE) install
# uninstall:
# --- main programme --------------------------------------------------
OPENXP_DEP=openxp.pas $(UNITS) config.inc
openxp$(EXEEXT): $(OPENXP_DEP)
$(PPC) $(PPC_FLAGS) $<
openxp-win32.exe: $(OPENXP_DEP)
$(PPC) -TWin32 $(PPC_FLAGS) $<
openxp-os2.exe: $(OPENXP_DEP)
$(PPC) -TOS2 $(PPC_FLAGS) $<
openxp-dos.exe: $(OPENXP_DEP)
$(PPC) -TGo32v2 $(PPC_FLAGS) $<
config.inc: config.h config.status
( sed -ne "s/^#\(.*\)/{\$$\1}/p" config.h && \
echo "const conf_prefix = '$(prefix)';" && \
echo "const conf_datadir = '$(datadir)';" ) > config.inc
# --- ressources ------------------------------------------------------
openxp-%.res: openxp-%.rq $(RC)
$(RC) $<
rc$(EXEEXT): rc.pas $(UNITS) $(INCLUDES)
$(PPC) $(PPC_LOCAL_FLAGS) $<
# --- in-programme help -----------------------------------------------
ihs$(EXEEXT): ihs.pas $(UNITS) $(INCLUDES)
$(PPC) $(PPC_LOCAL_FLAGS) $<
openxp-%.hlp: doc/openxp-%.ihq $(IHS)
$(IHS) $<
cp doc/openxp-$*.hlp $@
# --- documentation ---------------------------------------------------
DOC_SRC = doc/xpoint.sgm doc/xpoint.dsl doc/xpoint.cat
DOC_HTML= doc/xpoint/book1.html
DOC_PDF = doc/xpoint.pdf
doc: $(DOC_HTML) $(DOC_PDF)
$(DOC_HTML) : $(DOC_SRC)
( cd doc; sgmltools --backend=html -s xpoint.dsl xpoint.sgm )
$(DOC_PDF) : $(DOC_SRC)
( cd doc; sgmltools --backend=pdf -s xpoint.dsl xpoint.sgm )
# --- files list ------------------------------------------------------
MANIFEST.snap:
(for a in $(OPENXP) $(RESSOURCE_FILES) $(HELP_FILES) ; do echo $$a ; done) > MANIFEST.snap
# --- autoconf configuration PASCAL adaptions -------------------------
# config.inc: config.h Makefile
# ( \
# sed -ne "s/^#\(.*\)/{\$$\1}/p" $< && \
# sed -ne "s/^CONF_\([A-Z_-]*\)[ ]*=[ ]*\(.*[^ ]\)/const CONF_\1 = '\2';/p" Makefile \
# ) >$@
# sed \
# -e "s/^[^#].*/\/\/&/" \
# -e "s/^#\(.*\)/{\$$\1}/" \
# -e "s/^\(\/\/[ ]*\)\/[\/\*]/\1 /" \
# -e "s/\*\/[ ]*$$//" \
# -e "s/[ ]*$$//" \
# $< >$@
# --- configuration ---------------------------------------------------
${srcdir}/Makefile: Makefile.in configure
cd ${srcdir} && ./configure
# --- maintainer only -------------------------------------------------
autoconf: ${srcdir}/configure
${srcdir}/configure: configure.ac $(wildcard aclocal.m4)
cd ${srcdir} && autoconf
# ---------------------------------------------------------------------
#
# $Log: Makefile.in,v $
# Revision 1.2.2.5 2003/10/25 17:26:26 cl
# - minor fixes made during Debian packaging of 3.8.13
#
# Revision 1.2.2.4 2003/10/08 20:54:11 cl
# - fixed autoconf for stable branch
#
# Revision 1.2.2.3 2003/09/06 15:22:09 cl
# - added Debian build scripts
#
# Revision 1.15 2003/09/04 12:52:53 cl
# - fixed make debian
#
# Revision 1.14 2003/09/02 17:39:55 cl
# - fixed recreation of debian/changelog on ``make debian''
#
# Revision 1.13 2003/09/02 17:30:33 cl
# - some minor changes
#
# Revision 1.12 2003/08/17 17:54:44 cl
# - added ``make debian''
# - fixed genration of documentation
#
# Revision 1.11 2003/05/15 11:07:43 cl
# - fixed configure.in => configure.ac
#
# Revision 1.10 2003/02/21 19:32:13 cl
# - Moved configure.in to configure.ac
#
# Revision 1.8 2003/01/13 23:34:25 cl
# - autoconf update
#
# Revision 1.7 2003/01/13 16:17:32 cl
# - Makfile update
#
# Revision 1.6 2003/01/13 16:13:29 cl
# - autoconf updates for cross-compilation
#
# Revision 1.5 2003/01/13 15:42:41 cl
# - autoconf update for cross-compilation
#
# Revision 1.4 2002/08/10 18:46:57 cl
# - autoconf: install location now configurable
#
# Revision 1.3 2002/08/10 17:34:54 cl
# - update for autoconf
#
# Revision 1.2 2002/01/13 22:50:15 cl
# - update
#
# Revision 1.1 2002/01/13 21:52:16 cl
# - added a start for autoconf configuration
#