Mercurial > ecos
annotate packages/io/usb/slave/current/host/Makefile.am @ 3292:7f8e529b4d82 default tip
Fix FREESCALE_EDMA_NBYTES_MLOFFYES_MLOFF() so it works with negative offsets.
| author | vae |
|---|---|
| date | Wed, 29 Apr 2015 23:31:48 +0000 |
| parents | 74dbf4c3f2e1 |
| children |
| rev | line source |
|---|---|
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
1 ## Process this file with automake to produce Makefile.in |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
2 ## ===================================================================== |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
3 ## |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
4 ## Makefile.am |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
5 ## |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
6 ## Build support for the eCos USB host-side |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
7 ## |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
8 ## |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
9 ## ===================================================================== |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
10 ## ####ECOSGPLCOPYRIGHTBEGIN#### |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
11 ## ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
12 ## This file is part of eCos, the Embedded Configurable Operating System. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
13 ## Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
14 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
15 ## eCos is free software; you can redistribute it and/or modify it under |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
16 ## the terms of the GNU General Public License as published by the Free |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
17 ## Software Foundation; either version 2 or (at your option) any later |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
18 ## version. |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
19 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
20 ## eCos is distributed in the hope that it will be useful, but WITHOUT |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
21 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
22 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
23 ## for more details. |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
24 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
25 ## You should have received a copy of the GNU General Public License |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
26 ## along with eCos; if not, write to the Free Software Foundation, Inc., |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
27 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
28 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
29 ## As a special exception, if other files instantiate templates or use |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
30 ## macros or inline functions from this file, or you compile this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
31 ## and link it with other works to produce a work based on this file, |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
32 ## this file does not by itself cause the resulting work to be covered by |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
33 ## the GNU General Public License. However the source code for this file |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
34 ## must still be made available in accordance with section (3) of the GNU |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
35 ## General Public License v2. |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
36 ## |
|
2729
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
37 ## This exception does not invalidate any other reasons why a work based |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
38 ## on this file might be covered by the GNU General Public License. |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
39 ## ------------------------------------------- |
|
74dbf4c3f2e1
Update all copyright banners to reflect FSF ownership; fix and improve licence text.
jlarmour
parents:
2528
diff
changeset
|
40 ## ####ECOSGPLCOPYRIGHTEND#### |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
41 ## ===================================================================== |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
42 #######DESCRIPTIONBEGIN#### |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
43 ## |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
44 ## Author(s): bartv |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
45 ## Contact(s): bartv |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
46 ## Date: 2002/01/10 |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
47 ## Version: 0.01 |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
48 ## |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
49 ######DESCRIPTIONEND#### |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
50 ## ===================================================================== |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
51 |
| 2528 | 52 AUTOMAKE_OPTIONS = 1.10 foreign |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
53 |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
54 ## Only some platforms are supported. Having the configure script throw |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
55 ## an error when attempting to configure on an unsupported platform |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
56 ## would be a mistake, since that would prevent any configury from |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
57 ## the toplevel on unsupported platforms. Instead an automake conditional |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
58 ## is used, leading to null makefiles on unsupported platforms. |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
59 |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
60 AM_CFLAGS = @ecos_CFLAGS@ -DUSBHOST_VERSION=\"@VERSION@\" -DPKGVERSION=\"@PACKAGE_VERSION@\" -DUSBAUXDIR=\"$(libexecdir)/ecos/@PACKAGE_INSTALL@\" |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
61 AM_CXXFLAGS = @ecos_CXXFLAGS@ |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
62 INCLUDES = @ecos_INCLUDES@ |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
63 LIBS = @ecos_LIBS@ @ecos_LDADD@ |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
64 |
| 2528 | 65 if SUPPORTED |
| 66 | |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
67 ## The USB testing support consists of two programs, usbhost and |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
68 ## usbchmod, and a number of Tcl scripts. usbhost is executable by the |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
69 ## user so it should get installed in bindir, appropriately prefixed |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
70 ## and with a symbolic link installed as per e.g. tclsh (it is known |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
71 ## that this code is Linux-specific so the use of symbolic links is |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
72 ## not a problem). usbchmod is not directly executable so it should |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
73 ## get installed in or below libexec. The Tcl scripts are architecture |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
74 ## independent so should probably be installed below $(datadir), but |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
75 ## for now putting them in the same directory as usbchmod will do |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
76 ## fine. |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
77 |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
78 noinst_PROGRAMS = usbhost |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
79 usbhost_SOURCES = usbhost.c |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
80 usbhost_DEPENDENCIES = ../tests/protocol.h ../tests/common.c |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
81 usbhost_LDADD = -lpthread |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
82 |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
83 usbauxdir = $(libexecdir)/ecos/@PACKAGE_INSTALL@ |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
84 usbaux_PROGRAMS = usbchmod |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
85 usbaux_DATA = usbhost.tcl list.tcl verbose.tcl |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
86 usbchmod_SOURCES = usbchmod.c |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
87 |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
88 ## Two special operations are required during installation. |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
89 ## 1) usbhost needs to be installed suitably versioned, e.g. as |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
90 ## usbhost_current, and with a symbolic link from usbhost to |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
91 ## the new executable. |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
92 ## 2) usbchmod needs to be suid root |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
93 install-exec-hook: |
|
880
2de825c0df6c
Fix obscure "make install" problem, $(bindir) may not exist yet so
bartv
parents:
283
diff
changeset
|
94 $(mkinstalldirs) $(bindir) |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
95 $(INSTALL_PROGRAM) usbhost $(bindir)/usbhost_@PACKAGE_VERSION@ |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
96 rm -f $(bindir)/usbhost |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
97 $(LN_S) $(bindir)/usbhost_@PACKAGE_VERSION@ $(bindir)/usbhost |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
98 |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
99 install-data-hook: |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
100 chown root $(usbauxdir)/usbchmod |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
101 chmod u+s $(usbauxdir)/usbchmod |
|
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
102 |
|
283
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
103 else |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
104 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
105 ## When automake scans for hooks it does not take conditionals fully |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
106 ## into account. If the conditional is not satisfied the generated |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
107 ## makefile will still try to invoke the hook, so dummy hooks are needed. |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
108 install-exec-hook: |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
109 echo Nothing to be done for this platform |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
110 |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
111 install-data-hook: |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
112 echo Nothing to be done for this platform |
|
f58bc1b2c2bc
Reorganization of the host-side autoconfiscation support, and a couple
bartv
parents:
213
diff
changeset
|
113 |
|
213
3a5832bf0564
Merge from eCos master repository on 2002-05-31-16:13:14-BST
jlarmour
parents:
diff
changeset
|
114 endif |
