1 |
1026 |
ivang |
# Makefile.in generated by automake 1.6.2 from Makefile.am.
|
2 |
|
|
# @configure_input@
|
3 |
|
|
|
4 |
|
|
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002
|
5 |
|
|
# Free Software Foundation, Inc.
|
6 |
|
|
# This Makefile.in is free software; the Free Software Foundation
|
7 |
|
|
# gives unlimited permission to copy and/or distribute it,
|
8 |
|
|
# with or without modifications, as long as this notice is preserved.
|
9 |
|
|
|
10 |
|
|
# This program is distributed in the hope that it will be useful,
|
11 |
|
|
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
12 |
|
|
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
13 |
|
|
# PARTICULAR PURPOSE.
|
14 |
|
|
|
15 |
|
|
@SET_MAKE@
|
16 |
|
|
|
17 |
|
|
#
|
18 |
|
|
# Makefile.am,v 1.9 2002/03/28 00:49:32 joel Exp
|
19 |
|
|
#
|
20 |
|
|
SHELL = @SHELL@
|
21 |
|
|
|
22 |
|
|
srcdir = @srcdir@
|
23 |
|
|
top_srcdir = @top_srcdir@
|
24 |
|
|
VPATH = @srcdir@
|
25 |
|
|
prefix = @prefix@
|
26 |
|
|
exec_prefix = @exec_prefix@
|
27 |
|
|
|
28 |
|
|
bindir = @bindir@
|
29 |
|
|
sbindir = @sbindir@
|
30 |
|
|
libexecdir = @libexecdir@
|
31 |
|
|
datadir = @datadir@
|
32 |
|
|
sysconfdir = @sysconfdir@
|
33 |
|
|
sharedstatedir = @sharedstatedir@
|
34 |
|
|
localstatedir = @localstatedir@
|
35 |
|
|
libdir = @libdir@
|
36 |
|
|
infodir = @infodir@
|
37 |
|
|
mandir = @mandir@
|
38 |
|
|
includedir = @includedir@
|
39 |
|
|
oldincludedir = /usr/include
|
40 |
|
|
pkgdatadir = $(datadir)/@PACKAGE@
|
41 |
|
|
pkglibdir = $(libdir)/@PACKAGE@
|
42 |
|
|
pkgincludedir = $(includedir)/@PACKAGE@
|
43 |
|
|
top_builddir = ..
|
44 |
|
|
|
45 |
|
|
ACLOCAL = @ACLOCAL@
|
46 |
|
|
AUTOCONF = @AUTOCONF@
|
47 |
|
|
AUTOMAKE = @AUTOMAKE@
|
48 |
|
|
AUTOHEADER = @AUTOHEADER@
|
49 |
|
|
|
50 |
|
|
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
51 |
|
|
INSTALL = @INSTALL@
|
52 |
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
53 |
|
|
INSTALL_DATA = @INSTALL_DATA@
|
54 |
|
|
install_sh_DATA = $(install_sh) -c -m 644
|
55 |
|
|
install_sh_PROGRAM = $(install_sh) -c
|
56 |
|
|
install_sh_SCRIPT = $(install_sh) -c
|
57 |
|
|
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
58 |
|
|
INSTALL_HEADER = $(INSTALL_DATA)
|
59 |
|
|
transform = @program_transform_name@
|
60 |
|
|
NORMAL_INSTALL = :
|
61 |
|
|
PRE_INSTALL = :
|
62 |
|
|
POST_INSTALL = :
|
63 |
|
|
NORMAL_UNINSTALL = :
|
64 |
|
|
PRE_UNINSTALL = :
|
65 |
|
|
POST_UNINSTALL = :
|
66 |
|
|
host_alias = @host_alias@
|
67 |
|
|
host_triplet = @host@
|
68 |
|
|
|
69 |
|
|
EXEEXT = @EXEEXT@
|
70 |
|
|
OBJEXT = @OBJEXT@
|
71 |
|
|
PATH_SEPARATOR = @PATH_SEPARATOR@
|
72 |
|
|
AMTAR = @AMTAR@
|
73 |
|
|
AWK = @AWK@
|
74 |
|
|
BARE_CPU_CFLAGS = @BARE_CPU_CFLAGS@
|
75 |
|
|
BARE_CPU_MODEL = @BARE_CPU_MODEL@
|
76 |
|
|
|
77 |
|
|
CC = @CC@ $(GCCSPECS)
|
78 |
|
|
CPP = @CPP@ $(GCCSPECS)
|
79 |
|
|
DEPDIR = @DEPDIR@
|
80 |
|
|
ENDIF = @ENDIF@
|
81 |
|
|
GCCSED = @GCCSED@
|
82 |
|
|
GCC_SPECS = @GCC_SPECS@
|
83 |
|
|
HAS_NETWORKING = @HAS_NETWORKING@
|
84 |
|
|
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
85 |
|
|
MAINT = @MAINT@
|
86 |
|
|
MAKE = @MAKE@
|
87 |
|
|
PACKAGE = @PACKAGE@
|
88 |
|
|
PACKHEX = @PACKHEX@
|
89 |
|
|
PROJECT_INCLUDE = @PROJECT_INCLUDE@
|
90 |
|
|
PROJECT_RELEASE = @PROJECT_RELEASE@
|
91 |
|
|
PROJECT_ROOT = @PROJECT_ROOT@
|
92 |
|
|
PROJECT_TOPdir = @PROJECT_TOPdir@
|
93 |
|
|
RTEMS_BSP = @RTEMS_BSP@
|
94 |
|
|
RTEMS_BSP_SPECS = @RTEMS_BSP_SPECS@
|
95 |
|
|
RTEMS_CPU = @RTEMS_CPU@
|
96 |
|
|
RTEMS_HAS_NETWORKING = @RTEMS_HAS_NETWORKING@
|
97 |
|
|
RTEMS_HOST = @RTEMS_HOST@
|
98 |
|
|
RTEMS_ROOT = @RTEMS_ROOT@
|
99 |
|
|
RTEMS_TOPdir = @RTEMS_TOPdir@
|
100 |
|
|
STRIP = @STRIP@
|
101 |
|
|
VERSION = @VERSION@
|
102 |
|
|
am__include = @am__include@
|
103 |
|
|
am__quote = @am__quote@
|
104 |
|
|
bsplibdir = @bsplibdir@
|
105 |
|
|
install_sh = @install_sh@
|
106 |
|
|
|
107 |
|
|
include_libchipdir = $(includedir)/libchip
|
108 |
|
|
|
109 |
|
|
LIBNAME = libserialio
|
110 |
|
|
LIB = $(ARCH)/$(LIBNAME).a
|
111 |
|
|
|
112 |
|
|
C_FILES = mc68681.c mc68681_baud.c mc68681_reg.c mc68681_reg2.c \
|
113 |
|
|
mc68681_reg4.c mc68681_reg8.c ns16550.c z85c30.c z85c30_reg.c serprobe.c \
|
114 |
|
|
termios_baud2index.c termios_baud2num.c
|
115 |
|
|
|
116 |
|
|
C_O_FILES = $(C_FILES:%.c=$(ARCH)/%.o)
|
117 |
|
|
|
118 |
|
|
noinst_HEADERS = mc68681_p.h ns16550_p.h z85c30_p.h
|
119 |
|
|
include_libchip_HEADERS = mc68681.h ns16550.h z85c30.h serial.h sersupp.h
|
120 |
|
|
|
121 |
|
|
OBJS = $(C_O_FILES)
|
122 |
|
|
|
123 |
|
|
@RTEMS_USE_GCC_TRUE@CFLAGS_DEFAULT = -g -Wall
|
124 |
|
|
@RTEMS_USE_GCC_TRUE@GCCSPECS = $(GCC_SPECS) $(RTEMS_BSP_SPECS)
|
125 |
|
|
|
126 |
|
|
DEFS = @DEFS@
|
127 |
|
|
|
128 |
|
|
CPPFLAGS = @CPPFLAGS@ $(CPU_DEFINES) \
|
129 |
|
|
$(DEFINES) $(XCPPFLAGS) $(CPPFLAGS_GCC)
|
130 |
|
|
|
131 |
|
|
CFLAGS = $(CFLAGS_DEFAULT) $(CPU_CFLAGS) $(XCFLAGS)
|
132 |
|
|
CXXFLAGS = $(CFLAGS_DEFAULT) $(CPU_CFLAGS) $(XCXXFLAGS)
|
133 |
|
|
ASFLAGS = $(CPU_ASFLAGS) $(CPU_CFLAGS) $(XASFLAGS)
|
134 |
|
|
|
135 |
|
|
LINK_LIBS = $(LD_LIBS)
|
136 |
|
|
|
137 |
|
|
# when debugging, optimize flag: typically empty
|
138 |
|
|
# some compilers do allow optimization with their "-g"
|
139 |
|
|
CFLAGS_DEBUG_OPTIMIZE_V = -g
|
140 |
|
|
CXXFLAGS_DEBUG_OPTIMIZE_V = -g
|
141 |
|
|
LDFLAGS_DEBUG_V =
|
142 |
|
|
|
143 |
|
|
# profile flag; use gprof(1)
|
144 |
|
|
CFLAGS_PROFILE_V = -pg
|
145 |
|
|
CXXFLAGS_PROFILE_V = -pg
|
146 |
|
|
LDFLAGS_PROFILE_V =
|
147 |
|
|
|
148 |
|
|
# List of library paths without -L
|
149 |
|
|
LD_PATHS = $(PROJECT_RELEASE)/lib
|
150 |
|
|
|
151 |
|
|
# ld flag for incomplete link
|
152 |
|
|
LDFLAGS_INCOMPLETE = -r
|
153 |
|
|
|
154 |
|
|
# ld flags for profiling, debugging
|
155 |
|
|
LDFLAGS = $(LDFLAGS_PROFILE) $(LDFLAGS_DEBUG) $(LD_PATHS:%=-L %)
|
156 |
|
|
|
157 |
|
|
|
158 |
|
|
#
|
159 |
|
|
# Client compiler and support tools
|
160 |
|
|
#
|
161 |
|
|
|
162 |
|
|
#
|
163 |
|
|
# How to compile stuff into ${ARCH} subdirectory
|
164 |
|
|
#
|
165 |
|
|
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
|
166 |
|
|
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
167 |
|
|
|
168 |
|
|
CCLD = $(CC)
|
169 |
|
|
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
|
170 |
|
|
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
171 |
|
|
|
172 |
|
|
|
173 |
|
|
CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
|
174 |
|
|
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
|
175 |
|
|
|
176 |
|
|
CXXLD = $(CXX)
|
177 |
|
|
CXXLINK = $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
|
178 |
|
|
$(AM_LDFLAGS) $(LDFLAGS) -o $@
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
AS = $(CC)
|
182 |
|
|
ASCOMPILE = $(AS) $(AM_ASFLAGS) $(ASFLAGS)
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
# Dependency files for use by gmake
|
186 |
|
|
# NOTE: we don't put them into $(ARCH)
|
187 |
|
|
# so that 'make clean' doesn't blow it away
|
188 |
|
|
DEPEND = Depends-${ARCH}
|
189 |
|
|
|
190 |
|
|
CLEAN_DEPEND = $(DEPEND).tmp
|
191 |
|
|
CLOBBER_DEPEND = $(DEPEND)
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
# spell out all the LINK_FILE's, rather than using -lbsp, so
|
195 |
|
|
# that $(LINK_FILES) can be a dependency
|
196 |
|
|
LINK_OBJS = \
|
197 |
|
|
$(OBJS) \
|
198 |
|
|
$(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel)
|
199 |
|
|
|
200 |
|
|
|
201 |
|
|
LINK_FILES = \
|
202 |
|
|
$(START_FILE) \
|
203 |
|
|
$(OBJS) \
|
204 |
|
|
$(MANAGERS_NOT_WANTED:%=$(PROJECT_RELEASE)/lib/no-%$(LIB_VARIANT).rel)
|
205 |
|
|
|
206 |
|
|
|
207 |
|
|
VARIANT = OPTIMIZE
|
208 |
|
|
|
209 |
|
|
VARIANT_OPTIMIZE_V = OPTIMIZE
|
210 |
|
|
VARIANT_DEBUG_V = DEBUG
|
211 |
|
|
VARIANT_PROFILE_V = PROFILE
|
212 |
|
|
VARIANT_optimize_V = OPTIMIZE
|
213 |
|
|
VARIANT_debug_V = DEBUG
|
214 |
|
|
VARIANT_profile_V = PROFILE
|
215 |
|
|
|
216 |
|
|
VARIANT_V = $(VARIANT_$(VARIANT)_V)
|
217 |
|
|
|
218 |
|
|
ARCH_OPTIMIZE_V = o-optimize
|
219 |
|
|
ARCH_DEBUG_V = o-debug
|
220 |
|
|
ARCH_PROFILE_V = o-profile
|
221 |
|
|
|
222 |
|
|
ARCH__V = $(ARCH_OPTIMIZE_V)
|
223 |
|
|
ARCH = $(ARCH_$(VARIANT_V)_V)
|
224 |
|
|
|
225 |
|
|
LIBSUFFIX_OPTIMIZE_V =
|
226 |
|
|
LIBSUFFIX_DEBUG_V = _g
|
227 |
|
|
LIBSUFFIX_PROFILE_V = _p
|
228 |
|
|
LIBSUFFIX__V = $(LIBSUFFIX_OPTIMIZE_V)
|
229 |
|
|
|
230 |
|
|
LIB_VARIANT = $(LIBSUFFIX_$(VARIANT_V)_V)
|
231 |
|
|
LIBSUFFIX_VA = $(LIB_VARIANT).a
|
232 |
|
|
|
233 |
|
|
CFLAGS__V = $(CFLAGS_OPTIMIZE_V)
|
234 |
|
|
|
235 |
|
|
@RTEMS_USE_GCC_TRUE@RTEMS_CFLAGS_OPTIMIZE_V =
|
236 |
|
|
@RTEMS_USE_GCC_TRUE@RTEMS_CFLAGS_DEBUG_V = -qrtems_debug -Wno-unused
|
237 |
|
|
@RTEMS_USE_GCC_TRUE@RTEMS_CFLAGS_PROFILE_V =
|
238 |
|
|
|
239 |
|
|
RTEMS_CFLAGS__V = $(RTEMS_CFLAGS_OPTIMIZE_V)
|
240 |
|
|
CXX = @CXX@ $(GCCSPECS)
|
241 |
|
|
|
242 |
|
|
LD = @LD@
|
243 |
|
|
OBJCOPY = @OBJCOPY@
|
244 |
|
|
NM = @NM@
|
245 |
|
|
SIZE = @SIZE@
|
246 |
|
|
|
247 |
|
|
AM_CPPFLAGS = $(RTEMS_CPPFLAGS)
|
248 |
|
|
|
249 |
|
|
|
250 |
|
|
#
|
251 |
|
|
# Add local stuff here using +=
|
252 |
|
|
#
|
253 |
|
|
AM_CFLAGS = $(RTEMS_CFLAGS_$(VARIANT_V)_V) $(CFLAGS_$(VARIANT_V)_V) $(LIBC_DEFINES)
|
254 |
|
|
AM_CXXFLAGS = $(RTEMS_CFLAGS_$(VARIANT_V)_V) $(CFLAGS_$(VARIANT_V)_V)
|
255 |
|
|
|
256 |
|
|
AR = @AR@
|
257 |
|
|
RANLIB = @RANLIB@
|
258 |
|
|
|
259 |
|
|
ARFLAGS = ruv
|
260 |
|
|
|
261 |
|
|
TMPINSTALL_FILES = $(PROJECT_RELEASE)/lib $(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a
|
262 |
|
|
|
263 |
|
|
PREINSTALL_FILES = $(PROJECT_INCLUDE)/libchip \
|
264 |
|
|
$(include_libchip_HEADERS:%=$(PROJECT_INCLUDE)/libchip/%)
|
265 |
|
|
|
266 |
|
|
|
267 |
|
|
DOC_FILES = README.mc68681 README.ns16550 README.xr88681 README.z85c30 \
|
268 |
|
|
STATUS
|
269 |
|
|
|
270 |
|
|
|
271 |
|
|
EXTRA_DIST = $(C_FILES) $(DOC_FILES)
|
272 |
|
|
|
273 |
|
|
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
|
274 |
|
|
subdir = serial
|
275 |
|
|
mkinstalldirs = $(SHELL) $(top_srcdir)/../../../mkinstalldirs
|
276 |
|
|
CONFIG_CLEAN_FILES =
|
277 |
|
|
DIST_SOURCES =
|
278 |
|
|
HEADERS = $(include_libchip_HEADERS) $(noinst_HEADERS)
|
279 |
|
|
|
280 |
|
|
DIST_COMMON = README $(include_libchip_HEADERS) $(noinst_HEADERS) \
|
281 |
|
|
Makefile.am Makefile.in
|
282 |
|
|
all: all-am
|
283 |
|
|
|
284 |
|
|
.SUFFIXES:
|
285 |
|
|
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/../../../automake/compile.am $(top_srcdir)/../../../automake/lib.am $(top_srcdir)/../../../automake/local.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
286 |
|
|
cd $(top_srcdir) && \
|
287 |
|
|
$(AUTOMAKE) --foreign serial/Makefile
|
288 |
|
|
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
|
289 |
|
|
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
|
290 |
|
|
uninstall-info-am:
|
291 |
|
|
include_libchipHEADERS_INSTALL = $(INSTALL_HEADER)
|
292 |
|
|
install-include_libchipHEADERS: $(include_libchip_HEADERS)
|
293 |
|
|
@$(NORMAL_INSTALL)
|
294 |
|
|
$(mkinstalldirs) $(DESTDIR)$(include_libchipdir)
|
295 |
|
|
@list='$(include_libchip_HEADERS)'; for p in $$list; do \
|
296 |
|
|
if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
|
297 |
|
|
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
298 |
|
|
echo " $(include_libchipHEADERS_INSTALL) $$d$$p $(DESTDIR)$(include_libchipdir)/$$f"; \
|
299 |
|
|
$(include_libchipHEADERS_INSTALL) $$d$$p $(DESTDIR)$(include_libchipdir)/$$f; \
|
300 |
|
|
done
|
301 |
|
|
|
302 |
|
|
uninstall-include_libchipHEADERS:
|
303 |
|
|
@$(NORMAL_UNINSTALL)
|
304 |
|
|
@list='$(include_libchip_HEADERS)'; for p in $$list; do \
|
305 |
|
|
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
306 |
|
|
echo " rm -f $(DESTDIR)$(include_libchipdir)/$$f"; \
|
307 |
|
|
rm -f $(DESTDIR)$(include_libchipdir)/$$f; \
|
308 |
|
|
done
|
309 |
|
|
|
310 |
|
|
ETAGS = etags
|
311 |
|
|
ETAGSFLAGS =
|
312 |
|
|
|
313 |
|
|
tags: TAGS
|
314 |
|
|
|
315 |
|
|
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
|
316 |
|
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
317 |
|
|
unique=`for i in $$list; do \
|
318 |
|
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
319 |
|
|
done | \
|
320 |
|
|
$(AWK) ' { files[$$0] = 1; } \
|
321 |
|
|
END { for (i in files) print i; }'`; \
|
322 |
|
|
mkid -fID $$unique
|
323 |
|
|
|
324 |
|
|
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
|
325 |
|
|
$(TAGS_FILES) $(LISP)
|
326 |
|
|
tags=; \
|
327 |
|
|
here=`pwd`; \
|
328 |
|
|
list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
|
329 |
|
|
unique=`for i in $$list; do \
|
330 |
|
|
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
|
331 |
|
|
done | \
|
332 |
|
|
$(AWK) ' { files[$$0] = 1; } \
|
333 |
|
|
END { for (i in files) print i; }'`; \
|
334 |
|
|
test -z "$(ETAGS_ARGS)$$tags$$unique" \
|
335 |
|
|
|| $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
|
336 |
|
|
$$tags $$unique
|
337 |
|
|
|
338 |
|
|
GTAGS:
|
339 |
|
|
here=`$(am__cd) $(top_builddir) && pwd` \
|
340 |
|
|
&& cd $(top_srcdir) \
|
341 |
|
|
&& gtags -i $(GTAGS_ARGS) $$here
|
342 |
|
|
|
343 |
|
|
distclean-tags:
|
344 |
|
|
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
|
345 |
|
|
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
346 |
|
|
|
347 |
|
|
top_distdir = ..
|
348 |
|
|
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
|
349 |
|
|
|
350 |
|
|
distdir: $(DISTFILES)
|
351 |
|
|
@list='$(DISTFILES)'; for file in $$list; do \
|
352 |
|
|
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
353 |
|
|
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
354 |
|
|
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
355 |
|
|
dir="/$$dir"; \
|
356 |
|
|
$(mkinstalldirs) "$(distdir)$$dir"; \
|
357 |
|
|
else \
|
358 |
|
|
dir=''; \
|
359 |
|
|
fi; \
|
360 |
|
|
if test -d $$d/$$file; then \
|
361 |
|
|
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
362 |
|
|
cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
363 |
|
|
fi; \
|
364 |
|
|
cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
365 |
|
|
else \
|
366 |
|
|
test -f $(distdir)/$$file \
|
367 |
|
|
|| cp -p $$d/$$file $(distdir)/$$file \
|
368 |
|
|
|| exit 1; \
|
369 |
|
|
fi; \
|
370 |
|
|
done
|
371 |
|
|
check-am: all-am
|
372 |
|
|
check: check-am
|
373 |
|
|
all-am: Makefile $(HEADERS) all-local
|
374 |
|
|
|
375 |
|
|
installdirs:
|
376 |
|
|
$(mkinstalldirs) $(DESTDIR)$(include_libchipdir)
|
377 |
|
|
|
378 |
|
|
install: install-am
|
379 |
|
|
install-exec: install-exec-am
|
380 |
|
|
install-data: install-data-am
|
381 |
|
|
uninstall: uninstall-am
|
382 |
|
|
|
383 |
|
|
install-am: all-am
|
384 |
|
|
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
385 |
|
|
|
386 |
|
|
installcheck: installcheck-am
|
387 |
|
|
install-strip:
|
388 |
|
|
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
389 |
|
|
INSTALL_STRIP_FLAG=-s \
|
390 |
|
|
`test -z '$(STRIP)' || \
|
391 |
|
|
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
392 |
|
|
mostlyclean-generic:
|
393 |
|
|
|
394 |
|
|
clean-generic:
|
395 |
|
|
|
396 |
|
|
distclean-generic:
|
397 |
|
|
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
398 |
|
|
|
399 |
|
|
maintainer-clean-generic:
|
400 |
|
|
@echo "This command is intended for maintainers to use"
|
401 |
|
|
@echo "it deletes files that may require special tools to rebuild."
|
402 |
|
|
clean: clean-am
|
403 |
|
|
|
404 |
|
|
clean-am: clean-generic clean-local mostlyclean-am
|
405 |
|
|
|
406 |
|
|
distclean: distclean-am
|
407 |
|
|
|
408 |
|
|
distclean-am: clean-am distclean-generic distclean-local distclean-tags
|
409 |
|
|
|
410 |
|
|
dvi: dvi-am
|
411 |
|
|
|
412 |
|
|
dvi-am:
|
413 |
|
|
|
414 |
|
|
info: info-am
|
415 |
|
|
|
416 |
|
|
info-am:
|
417 |
|
|
|
418 |
|
|
install-data-am: install-include_libchipHEADERS
|
419 |
|
|
|
420 |
|
|
install-exec-am:
|
421 |
|
|
|
422 |
|
|
install-info: install-info-am
|
423 |
|
|
|
424 |
|
|
install-man:
|
425 |
|
|
|
426 |
|
|
installcheck-am:
|
427 |
|
|
|
428 |
|
|
maintainer-clean: maintainer-clean-am
|
429 |
|
|
|
430 |
|
|
maintainer-clean-am: distclean-am maintainer-clean-generic
|
431 |
|
|
|
432 |
|
|
mostlyclean: mostlyclean-am
|
433 |
|
|
|
434 |
|
|
mostlyclean-am: mostlyclean-generic
|
435 |
|
|
|
436 |
|
|
uninstall-am: uninstall-include_libchipHEADERS uninstall-info-am
|
437 |
|
|
|
438 |
|
|
.PHONY: GTAGS all all-am all-local check check-am clean clean-generic \
|
439 |
|
|
clean-local distclean distclean-generic distclean-local \
|
440 |
|
|
distclean-tags distdir dvi dvi-am info info-am install \
|
441 |
|
|
install-am install-data install-data-am install-exec \
|
442 |
|
|
install-exec-am install-include_libchipHEADERS install-info \
|
443 |
|
|
install-info-am install-man install-strip installcheck \
|
444 |
|
|
installcheck-am installdirs maintainer-clean \
|
445 |
|
|
maintainer-clean-generic mostlyclean mostlyclean-generic tags \
|
446 |
|
|
uninstall uninstall-am uninstall-include_libchipHEADERS \
|
447 |
|
|
uninstall-info-am
|
448 |
|
|
|
449 |
|
|
|
450 |
|
|
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
|
451 |
|
|
@RTEMS_USE_GCC_FALSE@include $(CONFIG.CC)
|
452 |
|
|
|
453 |
|
|
${ARCH}/%.o: %.c
|
454 |
|
|
test -d $(ARCH) || mkdir $(ARCH)
|
455 |
|
|
${COMPILE} -o $@ -c $<
|
456 |
|
|
|
457 |
|
|
${ARCH}/%.o: %.cc
|
458 |
|
|
test -d $(ARCH) || mkdir $(ARCH)
|
459 |
|
|
${CXXCOMPILE} -o $@ -c $<
|
460 |
|
|
|
461 |
|
|
${ARCH}/%.o: %.cpp
|
462 |
|
|
test -d $(ARCH) || mkdir $(ARCH)
|
463 |
|
|
${CXXCOMPILE} -o $@ -c $<
|
464 |
|
|
|
465 |
|
|
${ARCH}/%.o: %.cxx
|
466 |
|
|
test -d $(ARCH) || mkdir $(ARCH)
|
467 |
|
|
${CXXCOMPILE} -o $@ -c $<
|
468 |
|
|
|
469 |
|
|
${ARCH}/%.o: %.C
|
470 |
|
|
test -d $(ARCH) || mkdir $(ARCH)
|
471 |
|
|
${CXXCOMPILE} -o $@ -c $<
|
472 |
|
|
|
473 |
|
|
${ARCH}/%.o: %.S
|
474 |
|
|
test -d $(ARCH) || mkdir $(ARCH)
|
475 |
|
|
${ASCOMPILE} -DASM -o $@ -c $<
|
476 |
|
|
|
477 |
|
|
# Make foo.rel from foo.o
|
478 |
|
|
${ARCH}/%.rel: ${ARCH}/%.o
|
479 |
|
|
test -d $(ARCH) || mkdir $(ARCH)
|
480 |
|
|
${make-rel}
|
481 |
|
|
|
482 |
|
|
# We deliberately don't have anything depend on the
|
483 |
|
|
# $(DEPEND) file; otherwise it will get rebuilt even
|
484 |
|
|
# on 'make clean'
|
485 |
|
|
#
|
486 |
|
|
|
487 |
|
|
depend-am: $(C_FILES) $(CC_FILES) $(S_FILES)
|
488 |
|
|
$(COMPILE) -M $^ | \
|
489 |
|
|
sed -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
|
490 |
|
|
-e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp
|
491 |
|
|
mv $(DEPEND).tmp $(DEPEND)
|
492 |
|
|
depend: depend-am
|
493 |
|
|
|
494 |
|
|
# pull in dependencies if they exist
|
495 |
|
|
ifeq (${DEPEND},$(wildcard ${DEPEND}))
|
496 |
|
|
include ${DEPEND}
|
497 |
|
|
@ENDIF@
|
498 |
|
|
|
499 |
|
|
@RTEMS_USE_GCC_TRUE@define make-rel
|
500 |
|
|
@RTEMS_USE_GCC_TRUE@ $(LINK) -qnolinkcmds -nostdlib -Wl,-r $(XLDFLAGS) $^
|
501 |
|
|
@RTEMS_USE_GCC_TRUE@endef
|
502 |
|
|
@RTEMS_USE_GCC_FALSE@define make-rel
|
503 |
|
|
@RTEMS_USE_GCC_FALSE@ $(LINK) $(XLDFLAGS) $^
|
504 |
|
|
@RTEMS_USE_GCC_FALSE@endef
|
505 |
|
|
|
506 |
|
|
define make-library
|
507 |
|
|
test -d $(ARCH) || mkdir $(ARCH)
|
508 |
|
|
$(RM) $@
|
509 |
|
|
$(AR) $(ARFLAGS) $@ $^
|
510 |
|
|
$(RANLIB) $@
|
511 |
|
|
endef
|
512 |
|
|
|
513 |
|
|
$(PROJECT_RELEASE)/lib:
|
514 |
|
|
@$(mkinstalldirs) $@
|
515 |
|
|
|
516 |
|
|
.PRECIOUS: $(LIB)
|
517 |
|
|
|
518 |
|
|
$(PROJECT_INCLUDE)/libchip:
|
519 |
|
|
@$(mkinstalldirs) $@
|
520 |
|
|
$(PROJECT_INCLUDE)/libchip/%.h: %.h
|
521 |
|
|
$(INSTALL_DATA) $< $@
|
522 |
|
|
|
523 |
|
|
$(LIB): $(OBJS)
|
524 |
|
|
$(make-library)
|
525 |
|
|
|
526 |
|
|
$(PROJECT_RELEASE)/lib/$(LIBNAME)$(LIB_VARIANT).a: $(LIB)
|
527 |
|
|
$(INSTALL_DATA) $< $@
|
528 |
|
|
|
529 |
|
|
all-local: $(ARCH) $(PREINSTALL_FILES) $(TMPINSTALL_FILES)
|
530 |
|
|
|
531 |
|
|
debug:
|
532 |
|
|
@echo
|
533 |
|
|
@echo "\"make debug\" is obsolete, instead use:"
|
534 |
|
|
@echo " make VARIANT=DEBUG"
|
535 |
|
|
@echo
|
536 |
|
|
|
537 |
|
|
.PHONY: debug
|
538 |
|
|
|
539 |
|
|
profile:
|
540 |
|
|
@echo
|
541 |
|
|
@echo "\"make profile\" is obsolete, instead use:"
|
542 |
|
|
@echo " make VARIANT=PROFILE"
|
543 |
|
|
@echo
|
544 |
|
|
|
545 |
|
|
.PHONY: profile
|
546 |
|
|
|
547 |
|
|
preinstall-am: $(PREINSTALL_FILES)
|
548 |
|
|
preinstall: preinstall-am
|
549 |
|
|
.PHONY: preinstall preinstall-am
|
550 |
|
|
|
551 |
|
|
depend-am:
|
552 |
|
|
depend: depend-am
|
553 |
|
|
.PHONY: depend depend-am
|
554 |
|
|
|
555 |
|
|
${ARCH}:
|
556 |
|
|
mkdir ${ARCH}
|
557 |
|
|
|
558 |
|
|
clean-local:
|
559 |
|
|
$(RM) -r o-optimize o-debug o-profile $(CLEANDIRS)
|
560 |
|
|
$(RM) Depends-o-optimize.tmp Depends-o-debug.tmp Depends-o-profile.tmp
|
561 |
|
|
|
562 |
|
|
distclean-local:
|
563 |
|
|
$(RM) Depends-o-optimize Depends-o-debug Depends-o-profile
|
564 |
|
|
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
565 |
|
|
# Otherwise a system limit (for SysV at least) may be exceeded.
|
566 |
|
|
.NOEXPORT:
|