OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-3.0/] [packages/] [io/] [usb/] [slave/] [current/] [host/] [Makefile.am] - Blame information for rev 786

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.