File: INSTALL.openusb.in

package info (click to toggle)
libopenusb 1.1.11-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,588 kB
  • ctags: 1,441
  • sloc: ansic: 11,713; sh: 11,218; xml: 1,766; makefile: 136
file content (62 lines) | stat: -rw-r--r-- 2,169 bytes parent folder | download | duplicates (4)
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
The content of this file has been out-of-date. Please check with the REAME file instead.


Simple install procedure
========================

  % gzip -cd openusb-@LIBOPENUSB_VERSION@.tar.gz | tar xvf -  # unpack the sources
  % cd openusb-@LIBOPENUSB_VERSION@                           # change to the toplevel directory
  % ./configure                             # run the `configure' script
  % make                                    # build openusb
  [ Become root if necessary ]
  % make install                            # install openusb

The Nitty-Gritty
================

The 'configure' script can be given a number of options to enable
and disable various features. For a complete list, type:

  ./configure --help

A few of the more important ones:

*  --prefix=PREFIX         install architecture-independent files in PREFIX
                           [ Defaults to /usr/local ]

*  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                           [ Defaults to the value given to --prefix ]

Options can be given to the compiler and linker by setting
environment variables before running configure. A few of the more
important ones:

 CC       : The C compiler to use
 CPPFLAGS : Flags for the C preprocesser such as -I and -D
 CFLAGS   : C compiler flags

The most important use of this is to set the
optimization/debugging flags. For instance, to compile with no
debugging information at all, run configure as:

 CFLAGS=-O2 ./configure           # Bourne compatible shells (sh/bash/zsh)

or,

 setenv CFLAGS -O2 ; ./configure  # csh and variants


Installation directories
========================

The location of the installed files is determined by the --prefix
and --exec-prefix options given to configure. There are also more
detailed flags to control individual directories. However, the
use of these flags is not tested.

A shell script openusb-config is created during the configure
process, and installed in the bin/ directory
($exec_prefix/bin). This is used to determine the location of openusb
when building applications.  If you move openusb after installation,
it will be necessary to edit this file.